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

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

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

    .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: 14px;
      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; }

    /* Connected Status Button */
    .sidebar-status {
  display: flex;
  justify-content: center;
  padding: 5px;
  border-top: 10px solid #374151;
  position: absolute;
  bottom: 270px; /* Pushes button 40px above the bottom */
  width: 100%;
  box-sizing: border-box;
}

    .sidebar-status button {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 0px;
  font-weight: bold;
  text-transform: titlecase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

    /* Connected State */
#session-status.connected {
  background-color: #16a34a; /* Green */
  color: #fff;
}

    /* Disconnected State */
#session-status.disconnected {
  background-color: #dc2626; /* Red */
  color: #fff;
}
    /* Hover Effect */
#session-status:hover {
  transform: scale(1.05);
}


    /* Logout Button */
.sidebar-logout {
  display: flex;
  align-items: center;
  padding: 5px;
  position: absolute;
  bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: 0px;
}

.sidebar-logout button {
  display: flex;              /* Align icon and text in a row */
  align-items: center;        /* Vertically center icon & text */
  gap: 8px;                   /* 👈 Adds space between icon and text */
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 1px;
  background-color: transparent;
  color: white;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.sidebar-logout button:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

    /* 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;
    }

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

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

    .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;
    }

    /* Manual Dial Box - Centered */
    .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 Side */
    .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;
    }

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

    /* Call Detail Report Header */
    .call-detail-header {
      background: #fff;
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .call-detail-title {
      font-size: 20px;
      font-weight: 600;
      color: #324152;
    }

    .search-container {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .search-type-selector {
      padding: 8px;
      border: 1px solid #d1d5db;
      border-radius: 4px;
      font-size: 14px;
      background: white;
    }

    .search-input {
      padding: 8px 12px;
      border: 1px solid #d1d5db;
      border-radius: 4px;
      font-size: 14px;
      width: 200px;
    }

    .search-btn {
      padding: 8px 16px;
      background: #2563eb;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
    }

    /* Filter Container */
    .filter-container {
      display: flex;
      align-items: center;
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      margin-bottom: 20px;
      padding: 0 15px;
      height: 60px;
    }

    /* Filter Tabs */
    .filter-tabs {
      display: flex;
      flex: 1;
    }
    
    .filter-tab {
      padding: 12px 20px;
      cursor: pointer;
      font-weight: 600;
      border-bottom: 3px solid transparent;
      transition: all 0.2s;
      color: #555;
      font-size: 14px;
      text-align: center;
      white-space: nowrap;
    }
    
    .filter-tab.active {
      border-bottom: 3px solid #2563eb;
      color: #2563eb;
      background: #f0f7ff;
    }

    .filter-tab:nth-child(1) { background: #e6f4ee; }
    .filter-tab:nth-child(2) { background: #e8f0fe; }
    .filter-tab:nth-child(3) { background: #fef6e6; }
    .filter-tab:nth-child(4) { background: #e6f0fe; }
    .filter-tab:nth-child(5) { background: #f2e6fe; }

    .filter-tab:nth-child(1).active { background: #cce8e0; }
    .filter-tab:nth-child(2).active { background: #d9e6fc; }
    .filter-tab:nth-child(3).active { background: #fceccf; }
    .filter-tab:nth-child(4).active { background: #d9e6fc; }
    .filter-tab:nth-child(5).active { background: #e8d6fd; }

    /* Date Range Filter - Compact */
    .date-filter-compact {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: 15px;
      padding: 8px 12px;
      background: #f8f9fa;
      border-radius: 4px;
      border: 1px solid #e5e7eb;
    }

    .date-filter-compact label {
      font-weight: 600;
      color: #555;
      font-size: 13px;
      white-space: nowrap;
    }

    .date-filter-compact input {
      padding: 6px;
      border: 1px solid #d1d5db;
      border-radius: 4px;
      font-size: 13px;
      width: 120px;
    }

    .go-btn-compact {
      padding: 6px 12px;
      background: #16a34a;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }

    /* Results Table */
    .results-container {
      background: white;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      margin-bottom: 20px;
      overflow-x: auto;
    }

    .results-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
      table-layout: fixed;
    }

    .results-table th {
      background: #f8f9fa;
      padding: 12px 10px;
      text-align: left;
      font-weight: 600;
      color: #555;
      border-bottom: 2px solid #e5e7eb;
    }

    .results-table td {
      padding: 12px 10px;
      border-bottom: 1px solid #e5e7eb;
      word-wrap: break-word;
    }

    .results-table tr:hover {
      background: #f8f9fa;
    }

    .recording-actions {
      display: flex;
      gap: 8px;
    }

    .play-icon, .download-icon {
      cursor: pointer;
      font-size: 16px;
    }

    .play-icon {
      color: #2563eb;
    }

    .download-icon {
      color: #16a34a;
    }

    .call-type-inbound {
      color: #16a34a;
      font-weight: 600;
      background: #e6f4ee;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .call-type-outbound {
      color: #2563eb;
      font-weight: 600;
      background: #e8f0fe;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .call-status-connected {
      color: #16a34a;
      font-weight: 600;
      background: #e6f4ee;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .call-status-disconnected {
      color: #dc2626;
      font-weight: 600;
      background: #fee2e2;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    /* Disposition colors */
    .disposition-completed {
      color: #166534;
      background: #dcfce7;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .disposition-paid {
      color: #166534;
      background: #dcfce7;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }


    .disposition-no-answer {
      color: #9a3412;
      background: #ffedd5;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }


    .disposition-not-answering {
      color: #9a3412;
      background: #ffedd5;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }


    .disposition-busy {
      color: #92400e;
      background: #fef3c7;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .disposition-voicemail {
      color: #1e40af;
      background: #dbeafe;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }
 
    .disposition-ptp {
      color: #1e40af;
      background: #dbeafe;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }


    .disposition-issue-resolved {
      color: #7e22ce;
      background: #e9d5ff;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .disposition-call-back {
      color: #7e22ce;
      background: #e9d5ff;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .disposition-not-paying {
      color: #7e22ce;
      background: #e9d5ff;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .disposition-dispute {
      color: #7e22ce;
      background: #e9d5ff;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .disposition-disconnected {
      color: #7e22ce;
      background: #e9d5ff;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }


    .disposition-ringing {
      color: #7e22ce;
      background: #e9d5ff;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }

    .disposition-want-settelment {
      color: #1e40af;
      background: #dbeafe;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
    }


    /* Set column widths */
    .col-recording { width: 80px; }
    .col-number { width: 120px; }
    .col-type { width: 90px; }
    .col-time { width: 90px; }
    .col-agent { width: 80px; }
    .col-disposition { width: 120px; }
    .col-status { width: 100px; }
    .col-start-time { width: 100px; }
    .col-end-time { width: 100px; }
    .col-call-status { width: 100px; }
    .col-group { width: 120px; }
    .col-duration { width: 90px; }
    .col-ring-time { width: 100px; }
    .col-cust-ring { width: 110px; }
    .col-agent-ring { width: 100px; }
    .col-answer-time { width: 110px; }
    .col-disconnected-by { width: 120px; }
    .col-did { width: 120px; }
    .col-source { width: 100px; }
    .col-summary { width: 150px; }
    .col-remarks { width: 150px; }

    /* Footer */
    .footer {
      text-align: center;
      padding: 20px;
      color: #666;
      font-size: 14px;
      border-top: 1px solid #e5e7eb;
      margin-top: 30px;
    }

    /* Download Button */
    .download-container {
      text-align: center;
      margin: 20px 0;
    }
    
    .download-btn {
      padding: 10px 20px;
      background: #2563eb;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    
    .download-btn:hover {
      background: #1e40af;
    }


.sidebar-item {
    text-decoration: none;   /* removes underline */
}




/.modal-overlay {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 900;
}

.modal {
    display: none;
    position: fixed;
    top:50%; left:50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    padding: 20px 25px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.audio-player {
    width: 100%;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-stop { background-color: #f44336; color:#fff; }
.btn-stop:hover { background-color: #d32f2f; }

.btn-close { background-color: #1976d2; color:#fff; }
.btn-close:hover { background-color: #115293; }

@keyframes fadeIn {
    from {opacity:0; transform: translate(-50%, -45%);}
    to {opacity:1; transform: translate(-50%, -50%);}
}
