*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,sans-serif;background:#0f1117;color:#f0f0f0}.app{display:flex;height:100vh}.sidebar{width:220px;background:#16191f;padding:30px 20px;display:flex;flex-direction:column;gap:40px;border-right:1px solid #2a2d35}.logo{font-size:22px;font-weight:700;color:#fff}.logo span{color:#4f8ef7}nav{display:flex;flex-direction:column;gap:8px}.nav-item{text-decoration:none;color:#9a9a9a;padding:10px 14px;border-radius:8px;font-size:14px}.nav-item:hover{background:#1e222b;color:#fff}.nav-item.active{background:#1e3a6e;color:#4f8ef7;font-weight:600}.main{flex:1;display:flex;flex-direction:column;overflow:hidden}.topbar{padding:20px 30px;background:#16191f;border-bottom:1px solid #2a2d35;display:flex;justify-content:space-between;align-items:center}.topbar h1{font-size:20px;font-weight:600}.topbar-right{display:flex;align-items:center;gap:8px;font-size:13px;color:#9a9a9a}.status-dot{width:8px;height:8px;background:#4caf50;border-radius:50%;display:inline-block}.page{display:none;padding:30px;flex:1;overflow-y:auto}.page.active{display:block}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;margin-top:10px}.stat-card{background:#16191f;border:1px solid #2a2d35;border-radius:12px;padding:24px}.stat-card p{font-size:13px;color:#9a9a9a;margin-bottom:10px}.stat-card h2{font-size:32px;font-weight:700;color:#fff}.chat-box{background:#16191f;border:1px solid #2a2d35;border-radius:12px;padding:20px;height:400px;overflow-y:auto;margin-bottom:16px;display:flex;flex-direction:column;gap:12px}.chat-input{display:flex;gap:10px}.chat-input input{flex:1;padding:12px 16px;border-radius:8px;border:1px solid #2a2d35;background:#16191f;color:#fff;font-size:14px;outline:none}.chat-input input:focus{border-color:#4f8ef7}.chat-input button{padding:12px 24px;background:#4f8ef7;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer}.chat-input button:hover{background:#3a7be0}.chat-message{padding:10px 14px;border-radius:8px;font-size:14px;max-width:80%}.chat-message.user{background:#1e3a6e;color:#fff;align-self:flex-end}.chat-message.azi{background:#1e222b;color:#f0f0f0;align-self:flex-start}
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px 16px; background: #1e222b; color: #9a9a9a; font-weight: 600; border-bottom: 1px solid #2a2d35; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #2a2d35; color: #f0f0f0; }
.data-table tr:hover td { background: #1e222b; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #1e3a6e; color: #4f8ef7; }

.btn-primary { padding: 10px 20px; background: #4f8ef7; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: #3a7be0; }
.btn-secondary { padding: 10px 20px; background: #2a2d35; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-secondary:hover { background: #1e222b; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal.hidden { display: none; }
.modal-box { background: #16191f; border: 1px solid #2a2d35; border-radius: 16px; padding: 30px; width: 400px; display: flex; flex-direction: column; gap: 14px; }
.modal-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.modal-box input { padding: 12px 16px; background: #0f1117; border: 1px solid #2a2d35; border-radius: 8px; color: #fff; font-size: 14px; outline: none; }
.modal-box input:focus { border-color: #4f8ef7; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: #1e3a6e !important; }
.profile-panel { position: fixed; top: 0; right: 0; width: 480px; height: 100vh; background: #16191f; border-left: 1px solid #2a2d35; padding: 30px; overflow-y: auto; z-index: 999; }
.profile-panel.hidden { display: none; }
.profile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.profile-header h2 { font-size: 22px; font-weight: 700; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.profile-card { background: #0f1117; border: 1px solid #2a2d35; border-radius: 10px; padding: 16px; }
.profile-label { font-size: 12px; color: #9a9a9a; margin-bottom: 6px; }
.profile-value { font-size: 15px; font-weight: 600; color: #fff; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; }
.profile-actions button { width: 100%; padding: 14px; font-size: 15px; }

.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: #1e3a6e !important; }
.profile-panel { position: fixed; top: 0; right: 0; width: 480px; height: 100vh; background: #16191f; border-left: 1px solid #2a2d35; padding: 30px; overflow-y: auto; z-index: 999; }
.profile-panel.hidden { display: none; }
.profile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.profile-header h2 { font-size: 22px; font-weight: 700; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.profile-card { background: #0f1117; border: 1px solid #2a2d35; border-radius: 10px; padding: 16px; }
.profile-label { font-size: 12px; color: #9a9a9a; margin-bottom: 6px; }
.profile-value { font-size: 15px; font-weight: 600; color: #fff; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; }
.profile-actions button { width: 100%; padding: 14px; font-size: 15px; }

.pipeline-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; height: calc(100vh - 160px); }
.pipeline-column { min-width: 200px; background: #16191f; border: 1px solid #2a2d35; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pipeline-column-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #2a2d35; }
.pipeline-column-header span { font-weight: 600; font-size: 14px; }
.deal-count { background: #2a2d35; padding: 2px 8px; border-radius: 20px; font-size: 12px; }
.pipeline-cards { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; }
.deal-card { background: #0f1117; border: 1px solid #2a2d35; border-radius: 10px; padding: 14px; cursor: grab; }
.deal-card:active { cursor: grabbing; }
.deal-card.dragging { opacity: 0.5; }
.deal-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.deal-company { font-size: 12px; color: #9a9a9a; margin-bottom: 8px; }
.deal-value { font-size: 13px; color: #4f8ef7; font-weight: 600; }

.pipeline-board::-webkit-scrollbar { height: 6px; }
.pipeline-board::-webkit-scrollbar-track { background: #0f1117; }
.pipeline-board::-webkit-scrollbar-thumb { background: #2a2d35; border-radius: 3px; }
.pipeline-board::-webkit-scrollbar-thumb:hover { background: #4f8ef7; }
.pipeline-column { min-width: 220px; max-width: 220px; }

.profile-notes { margin-bottom: 24px; }
.profile-notes h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.notes-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; max-height: 200px; overflow-y: auto; }
.note-item { background: #0f1117; border: 1px solid #2a2d35; border-radius: 8px; padding: 12px; font-size: 13px; color: #f0f0f0; }
.note-date { font-size: 11px; color: #9a9a9a; margin-top: 6px; }
.notes-input { display: flex; flex-direction: column; gap: 10px; }
.notes-input textarea { padding: 12px; background: #0f1117; border: 1px solid #2a2d35; border-radius: 8px; color: #fff; font-size: 14px; outline: none; resize: none; height: 80px; }
.notes-input textarea:focus { border-color: #4f8ef7; }

#chat-mic { padding: 12px 16px; background: #2a2d35; color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background 0.2s; }
#chat-mic:hover { background: #4f8ef7; }
#chat-mic.listening { background: #f74f4f; animation: pulse 1s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.contacts-section { margin-bottom: 24px; }
.contacts-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.contact-card { background: #0f1117; border: 1px solid #2a2d35; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.contact-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.contact-detail { font-size: 12px; color: #9a9a9a; margin-bottom: 2px; }
.modal-box select { padding: 12px 16px; background: #0f1117; border: 1px solid #2a2d35; border-radius: 8px; color: #fff; font-size: 14px; outline: none; }
/* ============================================================
   UPCOMING APPOINTMENTS DASHBOARD WIDGET
   ============================================================ */

.upcoming-appointments {
  margin-top: 24px;
  background: #1e2a3a;
  border-radius: 12px;
  padding: 24px;
}

.upcoming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.upcoming-header h3 {
  margin: 0;
  font-size: 16px;
}

.upcoming-appt-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #2a2d35;
  font-size: 14px;
}

.upcoming-appt-row:last-child {
  border-bottom: none;
}

.upcoming-appt-date {
  color: #3a8cff;
  font-weight: 600;
  min-width: 80px;
}

.upcoming-appt-time {
  color: #888;
  min-width: 50px;
}

.upcoming-appt-title {
  flex: 1;
  font-weight: 500;
}

.upcoming-appt-lead {
  color: #888;
  font-size: 13px;
}

/* ============================================================
   CALENDAR PAGE
   ============================================================ */

.calendar-layout {
  display: flex;
  gap: 24px;
  height: calc(100vh - 120px);
}

.calendar-left {
  flex: 1;
  background: #1e2a3a;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.calendar-right {
  width: 360px;
  background: #1e2a3a;
  border-radius: 12px;
  padding: 24px;
  overflow-y: auto;
}

.calendar-right h3 {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #3a8cff;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-nav h3 {
  margin: 0;
  font-size: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  flex: 1;
}

.cal-day-header {
  text-align: center;
  font-size: 12px;
  color: #888;
  padding: 8px 0;
  font-weight: 600;
}

.cal-day {
  background: #0f1117;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.cal-day:hover {
  background: #2a2d35;
}

.cal-day.empty {
  background: transparent;
  cursor: default;
  border: none;
}

.cal-day.today .cal-day-num {
  background: #3a8cff;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cal-day.selected {
  border-color: #3a8cff;
  background: #1a2535;
}

.cal-day.has-appts {
  background: #1a2535;
}

.cal-day-num {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 4px;
}

.cal-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.cal-dot {
  width: 6px;
  height: 6px;
  background: #3a8cff;
  border-radius: 50%;
  display: inline-block;
}

.cal-appt-card {
  background: #0f1117;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.cal-appt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cal-appt-time {
  font-size: 13px;
  color: #3a8cff;
  font-weight: 600;
}

.cal-appt-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cal-appt-lead {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.cal-appt-duration {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.cal-appt-notes {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.cal-appt-actions {
  margin-top: 8px;
}

.cal-appt-actions select {
  background: #1e2a3a;
  border: 1px solid #2a2d35;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.appt-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  text-transform: capitalize;
}

.appointment-card {
  background: #0f1117;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.appt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.appt-title {
  font-weight: 600;
  font-size: 14px;
}

.appt-details {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.appt-notes {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.appt-link {
  font-size: 12px;
  color: #3a8cff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}

.appt-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.appt-actions select {
  background: #1e2a3a;
  border: 1px solid #2a2d35;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.btn-danger-sm {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.profile-appointments {
  padding: 16px 24px;
  border-bottom: 1px solid #2a2d35;
}

.profile-appointments h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.no-data {
  color: #666;
  font-size: 13px;
  padding: 8px 0;
}