body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    color: #333;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .navigation ul li a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar .navigation ul li a:hover,
.sidebar .navigation ul li a.active {
    background-color: #e2e6ea;
}

.sidebar .navigation ul li .badge {
    background-color: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 5px;
}

.sidebar .navigation ul li .badge.badge-red-circle {
    background-color: #dc3545;
    border-radius: 10px;
}

.sidebar .navigation ul li .badge.badge-green-square {
    background-color: #28a745;
    border-radius: 5px;
}

.sidebar .navigation ul li .badge.badge-green-circle {
    background-color: #28a745;
    border-radius: 10px;
}

.sidebar .navigation ul li.has-submenu > a {
    position: relative;
}

.sidebar .navigation ul li.has-submenu > a::after {
    content: '▼';
    font-size: 0.7em;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar .navigation ul .submenu {
    list-style: none;
    padding: 0;
    margin-left: 20px;
    border-left: 2px solid #e2e6ea;
    margin-top: 5px;
    margin-bottom: 10px;
}

.sidebar .navigation ul .submenu li a {
    padding: 8px 15px;
    font-size: 0.9em;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
}

.header {
    background-color: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-area {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.network-inbound-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.network-inbound-list-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.network-inbound-list-header .actions {
    display: flex;
    gap: 10px;
}

.search-input,
.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}

.refresh-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.refresh-button:hover {
    background-color: #0056b3;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

table thead th {
    background-color: #f8f9fa;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
    color: #555;
    font-weight: bold;
    position: relative;
}

table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
    vertical-align: middle;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

.sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #aaa;
    opacity: 0.6;
}

.assign-icon {
    margin-left: 5px;
    color: #007bff; /* Example color for the assign icon */
}

.action-icons {
    font-size: 1.1em;
    color: #007bff;
    cursor: pointer;
    display: flex;
    gap: 10px;
}

.pagination-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #555;
}

.items-per-page-select {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.prev-page,
.next-page {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.prev-page:hover,
.next-page:hover {
    background-color: #e2e6ea;
}

.page-number {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #dc3545; /* Changed to red for alerts */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateY(100%); /* Start off-screen */
    transition: transform 0.5s ease-out;
}

.notification-popup.show {
    transform: translateY(0); /* Slide in */
}

.notification-popup p {
    margin: 0;
    font-size: 1.1em;
}

.notification-popup .close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.notification-popup .close-notification:hover {
    color: #eee;
}

/* Ensure all content sections are hidden by default */
.content-section {
    display: none;
}

.customer-details-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.customer-info-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.customer-info-header .info-row {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.customer-info-header .info-label {
    font-weight: bold;
    color: #555;
    margin-right: 5px;
}

.customer-info-header .info-value {
    color: #333;
}

.customer-details-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.customer-details-tabs .tab-item {
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.customer-details-tabs .tab-item:hover,
.customer-details-tabs .tab-item.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.content-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
}

.calendar-container {
    width: 100%;
    max-width: 900px; /* Adjust as needed */
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #333;
}

.calendar-header button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-header button:hover {
    background-color: #0056b3;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.calendar-weekdays div {
    padding: 10px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    min-height: 80px; /* Make cells larger */
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative; /* For positioning contact count */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background-color: #f0f0f0;
}

.calendar-day.empty-day {
    background-color: #f8f8f8;
    border: 1px dashed #e0e0e0;
    cursor: default;
}

.calendar-day .contact-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #007bff;
    color: white;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
}

.calendar-day.has-contacts {
    background-color: #e6f7ff; /* Light blue for days with contacts */
}

.calendar-day.overdue {
    background-color: #ffe0e0; /* Light red background for overdue days */
    border: 1px solid #ff0000; /* Red border */
    color: #333; /* Keep text color for readability */
}

.calendar-day.overdue .contact-count {
    background-color: #ff0000; /* Red badge for overdue counts */
}

.warning-icon {
    margin-left: 5px;
    font-weight: bold;
    color: #ff0000; /* Ensure warning icon is red */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more specific */
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    color: #333; /* Ensure text color is dark */
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333; /* Ensure paragraph text color is dark */
}

.modal-content .mark-contacted-btn,
.modal-content .reschedule-btn {
    background-color: #28a745; /* Green for contacted */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.modal-content .reschedule-btn {
    background-color: #ffc107; /* Yellow for reschedule */
    color: #333;
}

.modal-content .mark-contacted-btn:hover {
    background-color: #218838;
}

.modal-content .reschedule-btn:hover {
    background-color: #e0a800;
}

.customer-level-select, .case-status-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9em;
}

.customer-level-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.customer-level-cards .card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.customer-level-cards .card:hover {
    transform: translateY(-5px);
}

.customer-level-cards .card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.customer-level-cards .card p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.customer-level-cards .card.level-a {
    border-top: 5px solid #28a745; /* Green */
}

.customer-level-cards .card.level-b {
    border-top: 5px solid #ffc107; /* Yellow */
}

.customer-level-cards .card.level-c {
    border-top: 5px solid #007bff; /* Blue */
}

.page-description {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95em;
}

.page-description p {
    margin: 0 0 10px 0;
}

.page-description p:last-child {
    margin-bottom: 0;
}

#modalCasesList button {
    margin-left: 10px; /* Add some spacing between buttons */
    padding: 8px 15px; /* Ensure buttons have adequate padding */
    border-radius: 5px; /* Consistent border radius for buttons */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mark-contacted-btn {
    background-color: #28a745; /* Green for contacted */
    color: white;
    border: none;
}

.mark-contacted-btn:hover {
    background-color: #218838;
}

.reschedule-btn {
    background-color: #ffc107; /* Yellow for reschedule */
    color: #333;
    border: none;
}

.reschedule-btn:hover {
    background-color: #e0a800;
}