/* ------------------------------
       GLOBAL STYLES
    ------------------------------ */
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #f5f6fa;
    }

    /* ------------------------------
       SIDEBAR
    ------------------------------ */
    .sidebar {
      width: 140px;
      background: #324152;
      color: #fcfcfc;
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      overflow-y: auto;
    }

    .sidebar-menu { padding: 80px 0; }

    .sidebar-item {
      padding: 12px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: all 0.2s;
      border-left: 4px solid transparent;
      font-size: 12px;
      color: #fcfafa;
    }

    .sidebar-item:hover { background: rgba(255,255,255,0.08); color:#fff; }
    .sidebar-item.active {
      background: rgba(67,97,238,0.15);
      border-left-color:#2563eb;
      color:#fcfafa;
    }

    .sidebar-item i { width:20px; text-align:center; font-size:16px; }
    .sidebar-item:hover i { color:#60a5fa; }
    .sidebar-item.active i { color:#2563eb; }




 /* Topbar */
.topbar {
  background: #324152;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  height: 50px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.brand {
  "Ubuntu", sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: #f7fafa;
}


.datetime-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #e5e7eb;
  min-width: 160px;
}

#currentDate {
  font-weight: 500;
  margin-bottom: 2px;
}

#currentTime {
  font-weight: 600;
  font-size: 13px;
}

.manual-dial {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-dial input {
  padding: 6px 10px;
  width: 180px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.manual-dial input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 4px rgba(37, 99, 235, 0.4);
}

.manual-dial button {
  padding: 6px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease-in-out;
}

.manual-dial button:hover {
  background: #1e40af;
}

.manual-dial button i {
  font-size: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 10px;
}

.icon-btn {
  position: relative;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
}

.icon-btn i {
  color: #fff;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-online {
  background: #22c55e;
}

.status-offline {
  background: #ef4444;
}

.status-busy {
  background: #f59e0b;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.username {
  font-size: 14px;
  font-weight: 500;
}
/* Manual Dial Box - Centered in Top Bar */
.manual-dial {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.manual-dial input {
  padding: 6px 10px;
  width: 180px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.manual-dial input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 4px rgba(37, 99, 235, 0.4);
}

.manual-dial button {
  padding: 6px 14px;
  background: #039e77;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease-in-out;
}

.manual-dial button:hover {
  background: #1e40af;
}

.manual-dial button i {
  font-size: 14px;
}

    /* ------------------------------
       RIGHT SIDEBAR
    ------------------------------ */
    .right-sidebar {
      width: 100px;
      background: #f2f5f4;
      border-left: 1px solid #ddd;
      position: fixed;
      top: 60px;
      bottom: 0;
      right: 0;
      padding: 15px 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow-y: auto;
    }

    .right-sidebar .call-status {
      text-align: center;
      margin: 20px 0;
    }

    .right-sidebar .call-status i {
      font-size: 30px;
      background: #22c55e;
      color: #fff;
      padding: 12px;
      border-radius: 50%;
    }

    .right-sidebar .call-status h4 {
      margin: 10px 0 5px;
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }

    .right-sidebar .call-status .count {
      font-size: 18px;
      font-weight: bold;
      color: #000;
    }

    .right-sidebar .action {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 12px 0;
      font-size: 13px;
      color: #444;
      cursor: pointer;
      transition: 0.2s;
    }

    .right-sidebar .action i {
      font-size: 20px;
      margin-bottom: 6px;
      color: #2563eb;
    }

    .right-sidebar .action:hover {
      color: #000;
      transform: translateY(-2px);
    }


    /* ------------------------------
       MAIN WRAPPER
    ------------------------------ */
    .main {
      margin-left: 120px;
      margin-right: 160px;
      margin-top: 10px;
      padding: 10px;
      font-size: 13px;
    }

    /* ------------------------------
       CALL INFO CARD
    ------------------------------ */
    .call-info-card {
      background: #fff;
      border-radius: 8px;
      padding: 15px 20px;
      max-width: 1000px;
      width: 100%;
      margin: 0 auto 20px auto;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      border: 1px solid #e5e7eb;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .call-user {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .call-user .name {
      font-size: 15px;
      font-weight: 600;
      color: #222;
    }

    .call-user .call-type {
      font-size: 13px;
      color: #3b82f6;
    }

    .call-dtmf {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
    }

    .call-dtmf label {
      font-weight: 500;
      color: #555;
    }

    .call-dtmf input {
      padding: 6px 10px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      font-size: 13px;
      width: 120px;
      transition: border-color 0.2s ease-in-out;
    }

    .call-dtmf input:focus {
      outline: none;
      border-color: #2563eb;
      box-shadow: 0 0 3px rgba(37, 99, 235, 0.3);
    }

    /* ------------------------------
       CRM FORM CARD
    ------------------------------ */
    .customer-form .card {
      background: #fff;
      border-radius: 8px;
      padding: 20px;
      max-width: 1000px;
      width: 100%;
      margin: 0 auto 30px auto;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    /* ------------------------------
       CRM FORM TABS
    ------------------------------ */
    .tabs {
      display: flex;
      align-items: center;
      border-bottom: 1px solid #ddd;
      margin-bottom: 15px;
    }

    .tabs button {
      background: none;
      border: none;
      margin-right: 20px;
      padding: 10px 0;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      color: #555;
      position: relative;
    }

    .tabs button.active {
      color: #000;
      font-weight: 600;
    }

    .tabs button.active::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -1px;
      width: 100%;
      height: 2px;
      background: #f8b400;
    }

    .tabs .save-btn {
      margin-left: auto;
      background: #eb9409;
      border: 1px solid #ddd;
      border-radius: 6px;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      color: #eb9409;
    }

    /* ------------------------------
       SECTION TITLES
    ------------------------------ */
    .section-title {
      font-size: 15px;
      font-weight: 600;
      color: #0d47a1;
      margin: 20px 0 10px;
      border-bottom: 1px solid #ddd;
      padding-bottom: 5px;
    }

    /* ------------------------------
       CRM FORM
    ------------------------------ */
    .crm-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-bottom: 30px;
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 25px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
    }

    .form-group label {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 6px;
      color: #222;
    }

    .form-group input {
      padding: 8px 10px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      font-size: 13px;
      background: #fff;
      transition: border-color 0.2s ease-in-out;
    }

    .form-group input:focus {
      outline: none;
      border-color: #2563eb;
      box-shadow: 0 0 3px rgba(37, 99, 235, 0.3);
    }



/* Tabs */
.tabs { display: flex; align-items: center; border-bottom: 1px solid #ddd; margin-bottom: 15px; }
.tabs button { background: none; border: none; margin-right: 20px; padding: 10px 0; font-size: 14px; font-weight: 500; cursor: pointer; color: #555; position: relative; }
.tabs button.active { color: #000; font-weight: 600; }
.tabs button.active::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: #f8b400; }
.tabs .save-btn { margin-left: auto; background: #ebad05; border: 0px solid #ddd; border-radius: 6px; padding: 6px 24px; font-size: 13px; font-weight: 500; cursor: pointer; color: #fafafa; }


/* Section Title */
.section-title { font-size: 15px; font-weight: 600; color: #0d47a1; margin: 20px 0 10px; border-bottom: 1px solid #ddd; padding-bottom: 5px; }


/* Forms */
.crm-form { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #222; }
.form-group input, .remark-box { padding: 8px 2px; border: 1px solid #d1d5db; border-radius: 2px; font-size: 13px; background: #fff; transition: border-color 0.2s ease-in-out; }
.remark-box { width: 100%; height: 100px; resize: none; }


/* Disposition Remark Buttons */
.disposition-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.disposition-buttons button { padding: 8px 14px; border: none; border-radius: 6px; background: #e0e7ff; color: #3730a3; cursor: pointer; font-size: 13px; transition: background 0.2s ease-in-out; }
.disposition-buttons button:hover { background: #c7d2fe; }


/* Hide Sections */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ------------------------------
   MAIN WRAPPER (FIXED)
------------------------------ */
.main {
  margin-left: 140px;  /* match .sidebar width exactly */
  margin-right: 100px; /* match .right-sidebar width exactly */
  padding: 20px;
  font-size: 13px;
  min-height: calc(100vh - 60px);
  background: #f5f6fa;
  box-sizing: border-box;
}

/* Responsive adjustment */
@media (max-width: 992px) {
  .main {
    margin-left: 60px;   /* shrink for smaller sidebar if collapsed */
    margin-right: 60px;  /* adjust right sidebar width */
  }
}

@media (max-width: 768px) {
  .main {
    margin: 60px 0 0 0;  /* no side margins when sidebars hidden */
  }
}

.clock-container {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-left: 15px;
      font-size: 12px;
      line-height: 1.2;
    }
    
    .time-display {
      font-weight: bold;
      font-size: 14px;
    }
    
    .date-display {
      font-size: 11px;
      opacity: 0.9;
    }

.clock-container {
        display: none;
      }

/* Left Side: Brand + DateTime */
.topbar-left {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 280px;
    }

.topbar-left {
        min-width: 200px;
      }

.topbar-left .brand {
        font-size: 18px;
      }
