/* Import Source Sans Pro font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;500;600;700&display=swap');

/* Import Claim Form Styles */
@import url('claim-form.css');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure all form elements, buttons, and inputs use Source Sans Pro */
input, select, textarea, button {
    font-family: 'Source Sans Pro', sans-serif !important;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #FFF5F0; /* Light peach background */
    color: #4A4A4A; /* Grey font color */
    line-height: 1.5;
    font-size: 14px; /* Reduced from default 16px */
}

/* Color Variables */
:root {
    --primary-blue: #4A90E2;
    --dark-navy-blue: #1e3a5f; /* New dark navy blue */
    --light-blue: #87CEEB;
    --primary-green: #7ED321;
    --light-green: #B8E6B8;
    --peach-bg: #FFF5F0;
    --grey-text: #4A4A4A;
    --white: #FFFFFF;
    --light-grey: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 60px; /* Reduced from 70px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; /* Prevent content leakage */
    transition: left 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 15px */
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 16px; /* Reduced from 18px */
    color: var(--dark-navy-blue);
    cursor: pointer;
    padding: 6px; /* Reduced from 8px */
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--light-grey);
    color: var(--dark-navy-blue);
}

.logo {
    font-size: 20px; /* Reduced from 24px */
    font-weight: 600;
    color: var(--dark-navy-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px; /* Reduced from 40px */
    width: auto;
    object-fit: contain;
}

.header-title-desktop {
    display: none; /* Hidden by default */
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-navy-blue);
    margin-left: 10px; /* Space between logo and title */
}

@media (min-width: 769px) {
    .header-title-desktop {
        display: block; /* Show on desktop */
    }
}

/* Header-right styling */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced from 20px */
}

/* Notification Permission Banner Styles */
.notification-permission-banner {
    position: fixed;
    top: 60px; /* Below header */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    animation: slideDown 0.3s ease-out;
}

.notification-permission-banner.permission-denied {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
}

.permission-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.permission-banner-content i {
    font-size: 24px;
    color: white;
}

.permission-banner-text {
    flex: 1;
    min-width: 200px;
}

.permission-banner-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.permission-banner-text p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.btn-enable-notifications,
.btn-enable-notifications-panel {
    background: white;
    color: #4A90E2;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-enable-notifications:hover,
.btn-enable-notifications-panel:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-enable-notifications:active,
.btn-enable-notifications-panel:active {
    transform: translateY(0);
}

.btn-close-banner {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Notification Permission Status in Panel */
.notification-permission-status {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.permission-status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.permission-status-content i {
    font-size: 48px;
    color: #999;
}

.permission-status-text {
    flex: 1;
}

.permission-status-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--grey-text);
}

.permission-status-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.btn-enable-notifications-panel {
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Notification button states */
.notification-btn.notifications-enabled {
    color: #4A90E2;
}

.notification-btn.notifications-enabled::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #7ED321;
    border-radius: 50%;
    border: 2px solid white;
}

.notification-btn.notifications-denied {
    color: #FF6B6B;
    opacity: 0.7;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive styles for notification banner */
@media (max-width: 768px) {
    .notification-permission-banner {
        top: 60px;
        padding: 12px 15px;
    }
    
    .permission-banner-content {
        gap: 10px;
    }
    
    .permission-banner-text {
        min-width: 0;
        flex: 1 1 100%;
    }
    
    .btn-enable-notifications {
        flex: 1;
        min-width: 100px;
    }
    
    .permission-status-content {
        padding: 10px;
    }
    
    .permission-status-content i {
        font-size: 36px;
    }
}

/* Notification Styles */
.notification-container {
    position: relative;
    margin-right: 20px; /* Add space to the right of bell icon to avoid toast notification overlap */
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--grey-text);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.notification-btn:hover {
    background: var(--light-grey);
    color: var(--dark-navy-blue);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(-5deg); }
    60% { transform: rotate(5deg); }
    70% { transform: rotate(-2deg); }
    80% { transform: rotate(2deg); }
    90% { transform: rotate(-1deg); }
}

.notification-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.notification-header {
    background: var(--dark-navy-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-content {
    max-height: 350px;
    overflow-y: auto;
}

.notification-loading,
.notification-empty {
    padding: 30px;
    text-align: center;
    color: var(--grey-text);
}

.notification-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.notification-list {
    padding: 0;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.notification-item:hover {
    background: var(--light-grey);
}

.notification-item.unread {
    background: #f8f9ff;
    border-left: 4px solid var(--dark-navy-blue);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: var(--dark-navy-blue);
    border-radius: 50%;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--grey-text);
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.notification-time {
    color: #999;
    font-size: 12px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
}

.notification-view-btn {
    background-color: var(--dark-navy-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
}

.notification-view-btn:hover {
    background-color: #2d4a6f; /* Slightly darker navy on hover */
}

.notification-mark-read-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
}

.notification-mark-read-btn:hover {
    background-color: #45a049;
}

/* Notification Tabs */
.notification-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-grey);
}

.notification-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-text);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Source Sans Pro', sans-serif;
}

.notification-tab.active {
    color: var(--dark-navy-blue);
    background: white;
    border-bottom: 2px solid var(--dark-navy-blue);
}

.notification-tab:hover {
    background: rgba(33, 150, 243, 0.1);
}

.tab-count {
    background: var(--dark-navy-blue);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 6px;
    min-width: 16px;
    text-align: center;
    display: inline-block;
}

.notification-tab.active .tab-count {
    background: var(--dark-navy-blue);
}

.notification-tab:not(.active) .tab-count {
    background: #ccc;
}

/* Tab Content */
.notification-tab-content {
    display: block;
}

.notification-tab-content:not(.active) {
    display: none;
}

/* Read notification styling */
.notification-item.read {
    background: #f9f9f9;
    opacity: 0.8;
}

.notification-item.read .notification-title {
    color: #999;
}

.notification-item.read .notification-message {
    color: #bbb;
}

/* Slide-out animation */
.notification-item {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.notification-footer {
    padding: 15px 20px;
    background: var(--light-grey);
    border-top: 1px solid var(--border-color);
}

.notification-mark-all {
    background: var(--dark-navy-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
}

.notification-mark-all:hover {
    background: #2d4a6f;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.user-profile:hover {
    background-color: rgba(64, 123, 255, 0.1);
}

.user-avatar {
    width: 32px; /* Reduced from 40px */
    height: 32px; /* Reduced from 40px */
    border-radius: 50%;
    background: var(--dark-navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 500;
    font-size: 14px; /* Added font size */
}

.user-avatar i {
    color: var(--white) !important;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-role,
.user-hospital {
    font-size: 11px;
    color: var(--grey-text);
    font-weight: 400;
    display: none;
}

.profile-arrow {
    font-size: 10px;
    color: var(--grey-text);
    transition: transform 0.2s ease;
}

/* Profile Menu */
.profile-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 280px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    overflow: hidden;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--dark-navy-blue);
    color: var(--white);
}

.profile-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.profile-menu-info h4 {
    margin: 0 0 4px 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.profile-menu-info p {
    margin: 0 0 2px 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 12px;
    opacity: 0.9;
}

.profile-role {
    font-weight: 500;
    opacity: 1;
}

.profile-hospital {
    font-weight: 500;
    opacity: 1;
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.profile-menu-actions {
    padding: 8px 0;
}

.profile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--grey-text);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.profile-menu-item:hover {
    background-color: var(--light-grey);
    color: var(--dark-navy-blue);
}

.profile-menu-item i {
    width: 16px;
    text-align: center;
}

/* Mobile Claim Cards */
.claims-cards-container {
    display: none; /* Hidden by default, shown on mobile */
    gap: 16px;
    margin-top: 20px;
}

.claim-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.claim-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.claim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.claim-id {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 14px;
    color: var(--primary-blue);
    margin: 0;
}

@media (max-width: 768px) {
    .claim-id {
        font-size: 18px;
        font-weight: 700;
    }
}

.claim-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.claim-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.claim-status.submitted {
    background: #dbeafe;
    color: #1e40af;
}

.claim-status.processing {
    background: #e0e7ff;
    color: #3730a3;
}

.claim-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.claim-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.claim-status.archived {
    background: #f3f4f6;
    color: #6b7280;
}

.claim-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.claim-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.claim-detail-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.claim-detail-value {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    color: var(--grey-text);
    font-weight: 400;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px 0;
}

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

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #6b7280;
    font-weight: 500;
}

    .pagination-info {
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
    }

/* Mobile Responsive Styles (≤768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }
    
    .main-content {
        padding: 70px 15px 20px;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
    }
    
    /* Sidebar collapsed by default on mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 220px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    /* Hide overview cards on mobile */
    .overview-cards-container {
        display: none;
    }
    
    /* Show claims cards on mobile - continuous design with no gap */
    .claims-cards-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
    }
    
    .claim-card {
        border-radius: 0;
        margin: 0;
        border: none !important;
        border-left: none !important;
        padding: 24px 16px;
        background-color: white !important;
    }
    
    .claim-card:last-child {
        border-bottom: none;
    }
    
    /* Remove stage-based left border for mobile cards */
    .claim-card.stage-preauth,
    .claim-card.stage-enhancement,
    .claim-card.stage-discharge,
    .claim-card.stage-discharged,
    .claim-card.stage-archived,
    .claim-card.stage-claims {
        border-left: none !important;
    }
    
    /* Hide claims table on mobile */
    .claims-table-container {
        display: none;
    }
    
    /* Hide the entire claims table card on mobile */
    .claims-table-card {
        display: none;
    }
    
    /* Hide table headers on mobile */
    .table thead {
        display: none;
    }
    
    /* Collapse filters by default on mobile */
    .filter-content {
        display: none;
    }
    
    .filter-content.active {
        display: block;
    }
    
    /* Notifications modal - fit screen width */
    .notification-panel {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        top: 70px;
        max-height: calc(100vh - 90px);
    }
    
    /* Increase width of all containers to fit screen */
    .card, .card-body, .card-header {
        width: 100%;
        max-width: 100%;
    }
    
    .container-fluid {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .search-filter-container {
        flex-direction: row; /* Keep search and filter in same row */
        gap: 10px;
    }
    
    .search-section {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    
    .search-container {
        width: 72%; /* Search bar is 20% wider on mobile (60% + 20% = 72%) */
    }
    
    .filter-toggle-btn {
        width: 20%; /* Filter button remains 20% of screen width on mobile */
        justify-content: center;
        height: 55px; /* Exact same height as search bar */
        padding: 0 10px; /* Reduced padding for mobile */
        box-sizing: border-box; /* Ensure consistent height calculation */
    }
    
    /* Hide filter button text on mobile, show only icon */
    .filter-toggle-btn span {
        display: none;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .piano-keys-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .piano-key {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .piano-key span {
        font-size: 12px;
    }
    
    /* Mobile pagination */
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        min-width: 36px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-menu {
        right: 10px;
        width: 260px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 80px 20px 20px;
    }
    
    /* Keep overview cards visible on tablet */
    .overview-cards-container {
        display: flex;
    }
    
    /* Keep table visible on tablet */
    .claims-table-container {
        display: block;
    }
    
    /* Hide cards on tablet */
    .claims-cards-container {
        display: none;
    }
    
    .claim-card {
        padding: 20px;
    }
    
    .claim-id {
        font-size: 16px;
    }
    
    .claim-detail-label {
        font-size: 13px;
    }
    
    .claim-detail-value {
        font-size: 14px;
    }
}

/* Sidebar Overlay - for closing sidebar on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px; /* Updated to match header height */
    width: 220px; /* Reduced from 250px */
    height: calc(100vh - 60px); /* Updated to match header height */
    background: var(--dark-navy-blue);
    box-shadow: var(--shadow);
    z-index: 1000; /* Higher than overlay (998) */
    overflow-y: auto;
    transition: width 0.3s ease, transform 0.3s ease;
}

.sidebar.collapsed {
    width: 60px; /* Reduced from 70px */
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 12px 8px; /* Reduced padding */
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.sidebar.collapsed .sidebar-menu i {
    margin-right: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0; /* Reduced from 20px */
}

.sidebar-menu li {
    margin-bottom: 3px; /* Reduced from 5px */
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px; /* Reduced from 15px 25px */
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px; /* Added font size */
}

.sidebar-menu a i,
.sidebar-menu a span {
    color: var(--white) !important;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1); /* Light transparent white for hover/active background */
    border-left-color: var(--white);
    color: var(--white);
}

.sidebar-menu i {
    margin-right: 10px; /* Reduced from 12px */
    width: 18px; /* Reduced from 20px */
    text-align: center;
    font-size: 14px; /* Added font size */
}

/* Main Content */
.main-content {
    margin-left: 220px; /* Updated to match sidebar width */
    margin-top: 60px; /* Updated to match header height */
    padding: 20px; /* Reduced from 30px */
    min-height: calc(100vh - 60px); /* Updated to match header height */
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 60px; /* Updated to match collapsed sidebar width */
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--peach-bg);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    margin-bottom: 25px; /* Reduced from 30px */
}

.welcome-message h2 {
    font-size: 20px; /* Reduced from 24px */
    font-weight: 600;
    color: var(--grey-text);
    margin-bottom: 6px; /* Reduced from 8px */
    line-height: 1.3;
}

.welcome-message p {
    font-size: 14px; /* Reduced from 16px */
    font-weight: 500;
    color: var(--primary-blue);
    margin: 0;
}

.login-subtitle {
    color: var(--grey-text);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--grey-text);
}

.form-control {
    width: 100%;
    padding: 10px 0; /* Reduced from 12px */
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 14px; /* Reduced from 16px */
    font-family: 'Source Sans Pro', sans-serif;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--primary-blue);
    box-shadow: none;
}

/* Password input container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-control {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--grey-text);
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

/* Forgot password link */
.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1e3a8a; /* Navy blue background */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; /* Remove all borders */
    font-family: 'Source Sans Pro', sans-serif;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-content i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #ffffff; /* White icons */
}

.toast-message {
    color: #ffffff; /* White text */
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
}

.toast-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff; /* White close button */
    cursor: pointer;
    padding: 8px;
    border-radius: 50%; /* Circular shape */
    transition: all 0.2s ease;
    margin-left: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

/* All toast types use the same navy blue styling */
.toast-success,
.toast-error,
.toast-warning,
.toast-info {
    background: #1e3a8a; /* Navy blue for all types */
    border: none;
}

.toast-success .toast-content i,
.toast-error .toast-content i,
.toast-warning .toast-content i,
.toast-info .toast-content i {
    color: #ffffff; /* White icons for all types */
}

/* Responsive toast */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* Notification Popup Styles */
.notification-popup {
    position: fixed;
    top: 80px; /* Position below header (60px header height + 20px spacing) */
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9998; /* Lower than header (9999) but still above content */
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-badge {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    text-align: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px; /* Reduced from 12px 24px */
    border: none;
    border-radius: 6px; /* Reduced from 8px */
    font-size: 14px; /* Reduced from 16px */
    font-weight: 500;
    font-family: 'Source Sans Pro', sans-serif;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px; /* Reduced from 120px */
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-success {
    background: var(--primary-green);
    color: var(--white);
}

.btn-success:hover {
    background: #6BB61A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--light-grey);
    color: var(--grey-text);
}

.btn-secondary:hover {
    background: #E0E0E0;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    border-radius: 0;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Small delete button for draft claims */
.btn-danger.btn-sm {
    font-size: 11px !important;
    padding: 3px 6px !important;
    min-width: auto;
    height: auto;
    line-height: 1.2;
    background: #dc3545;
    color: white;
}

.btn-danger.btn-sm:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 10px; /* Reduced from 12px */
    box-shadow: var(--shadow);
    padding: 20px; /* Reduced from 25px */
    margin-bottom: 15px; /* Reduced from 20px */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px; /* Reduced from 20px */
    padding-bottom: 12px; /* Reduced from 15px */
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px; /* Reduced from 20px */
    font-weight: 600;
    color: var(--grey-text);
}

.card-body {
    color: var(--grey-text);
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-grey);
    font-weight: 600;
    color: var(--grey-text);
}

.table tbody tr:hover {
    background: var(--light-grey);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-draft {
    background: #FFF3CD;
    color: #856404;
}

.status-registered {
    background: #D1ECF1;
    color: #0C5460;
}

.status-submitted {
    background: #D4EDDA;
    color: #155724;
}

.status-processing {
    background: #E2E3E5;
    color: #383D41;
}

.status-approved {
    background: #D4EDDA;
    color: #155724;
}

.status-rejected {
    background: #F8D7DA;
    color: #721C24;
}

.status-queried {
    background: #FFF3CD;
    color: #856404;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
}

.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 15px; /* Reduced from 20px */
    }
    
    .container {
        padding: 0 12px; /* Reduced from 15px */
    }
}

@media (max-width: 768px) {
    /* Header height increased by 20% (60px -> 72px) */
    .header {
        height: 72px;
        padding: 0 14px;
    }
    
    /* Main content adjusted for new header height */
    .main-content {
        margin-top: 72px;
        margin-left: 0 !important;
        padding: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 0 !important;
    }
    
    /* Sidebar adjusted for new header height */
    .sidebar {
        top: 72px;
        height: calc(100vh - 72px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 220px;
    }
    
    /* On mobile, collapsed means hidden (translateX(-100%)) */
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    /* On mobile, open means visible (translateX(0)) */
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* When toggling from collapsed to open on mobile, ensure it shows */
    .sidebar:not(.collapsed):not(.open) {
        transform: translateX(-100%);
    }
    
    /* Sidebar overlay for mobile */
    .sidebar-overlay {
        top: 72px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    /* Menu toggle icon increased by 15% (16px -> 18px) */
    .sidebar-toggle {
        font-size: 18px;
        padding: 7px;
    }
    
    /* Logo image increased by 15% (28px -> 32px) */
    .logo-img {
        height: 32px;
    }
    
    /* User avatar increased by 15% (32px -> 37px) */
    .user-avatar {
        width: 37px;
        height: 37px;
        font-size: 16px;
    }
    
    /* Notification button icon increased by 15% (20px -> 23px) */
    .notification-btn {
        font-size: 23px;
        padding: 12px;
    }
    
    .user-info {
        gap: 8px;
    }
    
    .user-info span {
        display: none;
    }
    
    .login-card {
        margin: 15px;
        padding: 25px 15px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-3, .col-4, .col-6, .col-8, .col-9, .col-12 {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .card {
        margin-bottom: 12px;
    }
    
    .table-responsive {
        font-size: 13px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    /* Notification panel adjusted for new header height */
    .notification-panel {
        top: 76px;
    }
    
    /* Profile menu adjusted for new header height */
    .profile-menu {
        top: 76px;
    }
}

@media (max-width: 480px) {
    /* Header height increased by 20% (50px -> 60px) */
    .header {
        height: 60px;
        padding: 0 10px;
    }
    
    .main-content {
        margin-top: 60px;
        padding: 8px;
    }
    
    .sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    /* Sidebar overlay for small mobile */
    .sidebar-overlay {
        top: 60px;
    }
    
    /* Menu toggle icon increased by 15% */
    .sidebar-toggle {
        font-size: 18px;
        padding: 7px;
    }
    
    /* Logo image increased by 15% (keeping proportion from 768px) */
    .logo-img {
        height: 30px;
    }
    
    /* User avatar increased by 15% */
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }
    
    /* Notification button icon increased by 15% */
    .notification-btn {
        font-size: 22px;
        padding: 10px;
    }
    
    .login-card {
        margin: 8px;
        padding: 15px 12px;
    }
    
    .welcome-message h2 {
        font-size: 18px;
    }
    
    .welcome-message p {
        font-size: 13px;
    }
    
    .overview-cards-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .overview-card {
        margin-right: 0;
        padding: 8px 10px;
        height: 45px;
    }
    
    .search-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
        height: 45px;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .overview-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .overview-card h3 {
        font-size: 16px;
    }
    
    .overview-card p {
        font-size: 10px;
    }
    
    .status-radio-group,
    .stages-radio-group {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .status-radio,
    .stage-radio {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 8px 6px;
    }
    
    .modern-date-input {
        font-size: 12px;
        padding: 6px 30px 6px 10px;
        height: 36px;
        font-family: 'Source Sans Pro', sans-serif;
        color: var(--grey-font);
    }
    
    .date-icon {
        right: 10px;
        font-size: 12px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Notification panel adjusted for new header height */
    .notification-panel {
        top: 64px;
    }
    
    /* Profile menu adjusted for new header height */
    .profile-menu {
        top: 64px;
    }
}

/* Claim Inbox Specific Styles */

/* Overview Section */
.overview-section {
    margin-bottom: 15px;
}

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

.overview-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--grey-text);
    font-family: 'Source Sans Pro', sans-serif;
}

.overview-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.overview-toggle-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.overview-toggle-btn i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* Overview Cards Container */
.overview-cards-container {
    display: none; /* Collapsed by default */
    gap: 15px;
    justify-content: space-between;
    align-items: stretch;
}

.overview-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 12px 15px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    gap: 10px;
    flex: 1;
}

.overview-card:last-child {
    margin-right: 0;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.overview-icon {
    font-size: 20px;
    color: var(--primary-blue);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.overview-icon.pending {
    color: #FFC107;
}

.overview-icon.approved {
    color: var(--primary-green);
}

.overview-icon.action-needed {
    color: #DC3545;
}

.overview-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.overview-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--grey-text);
    display: inline-block;
}

.overview-card p {
    font-size: 11px;
    color: var(--grey-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Search Section */
.search-section {
    display: flex !important;
    align-items: stretch; /* Ensure both elements stretch to same height */
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    flex-direction: row;
}

/* Ensure Bootstrap doesn't interfere */
.row .col-12 .search-section {
    display: flex !important;
    flex-direction: row !important;
}

.row .col-12 .search-section .search-container {
    display: block !important;
    width: 60% !important;
}

/* Mobile override for search container width */
@media (max-width: 768px) {
    .row .col-12 .search-section .search-container {
        width: 72% !important; /* 20% wider on mobile */
    }
}

.row .col-12 .search-section .filter-toggle-btn {
    display: flex !important;
    width: 20% !important;
    height: 55px !important; /* Force exact height */
}

/* Force exact height for both elements */
.search-input,
.filter-toggle-btn {
    height: 55px !important;
    box-sizing: border-box !important;
    border-width: 2px !important;
}

.search-container {
    position: relative;
    width: 60%; /* Search bar is 60% of screen width */
    flex-shrink: 0;
    display: flex;
    align-items: stretch; /* Ensure search input fills container height */
}

.search-input {
    height: 55px; /* Exact same height as filter button */
    padding: 0 15px 0 45px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--white);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box; /* Ensure consistent height calculation */
    line-height: 1; /* Prevent line-height from affecting height */
    margin: 0; /* Remove any default margins */
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-toggle-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    height: 55px; /* Exact same height as search bar */
    padding: 0 15px;
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue); /* Same border width as search bar */
    width: 20%; /* Filter button is 20% of screen width */
    flex-shrink: 0;
    box-sizing: border-box; /* Ensure consistent height calculation */
    line-height: 1; /* Prevent line-height from affecting height */
    margin: 0; /* Remove any default margins */
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    background: #4a7cff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 123, 255, 0.3);
}

.filter-toggle-btn i:last-child {
    transition: transform 0.2s ease;
}

.filter-toggle-btn.active i:last-child {
    transform: rotate(180deg);
}

/* Filter Content */
.filter-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-top: 0;
}

.stages-section {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-row {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: nowrap; /* Keep in single row */
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.clear-filters-btn {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Search Container */
.search-container {
    position: relative;
}

/* Collapsible Filter Header */
.card-header {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border-bottom: none;
}

.card-header:hover {
    background: transparent;
}

.card-header .card-title {
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-toggle-icon {
    float: right;
    transition: transform 0.3s ease;
}

.filter-content {
    transition: all 0.3s ease;
}

/* Compact Filter Section */
.card-body .row {
    margin-bottom: 8px;
}

/* Clickable Claim Rows */
.claim-row {
    transition: background-color 0.2s ease;
}

.claim-row:hover {
    background-color: rgba(64, 123, 255, 0.05);
}

.card-body .row:last-child {
    margin-bottom: 0;
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--grey-text);
    margin-bottom: 4px;
}

.form-control {
    font-size: 12px;
    padding: 4px 6px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Custom dropdown arrow positioning */
select.form-control {
    padding-right: 20px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: 'Source Sans Pro', sans-serif;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.search-input {
    border: none;
    background: transparent;
    padding-left: 35px;
    font-family: 'Source Sans Pro', sans-serif;
}

.search-input:focus {
    box-shadow: none;
}

/* Modern Date Picker */
.modern-date-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.modern-date-input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    font-size: 13px;
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--grey-font);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 40px;
    box-sizing: border-box;
}

.modern-date-input:hover {
    background-color: rgba(64, 123, 255, 0.05);
    box-shadow: 0 2px 8px rgba(64, 123, 255, 0.1);
}

.modern-date-input:focus {
    outline: none;
    background-color: rgba(64, 123, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(64, 123, 255, 0.1);
}

.modern-date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modern-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 14px;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

/* Hide the default calendar icon when custom icon is shown */
.modern-date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Firefox date input styling */
.modern-date-input::-moz-placeholder {
    color: var(--grey-font);
    opacity: 1;
    font-family: 'Source Sans Pro', sans-serif;
}

.modern-date-input::-webkit-input-placeholder {
    color: var(--grey-font);
    font-family: 'Source Sans Pro', sans-serif;
}

.modern-date-input:-ms-input-placeholder {
    color: var(--grey-font);
    font-family: 'Source Sans Pro', sans-serif;
}

.modern-date-input::-ms-input-placeholder {
    color: var(--grey-font);
    font-family: 'Source Sans Pro', sans-serif;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-text);
    font-size: 14px;
}

.search-input {
    padding-left: 35px !important;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    height: 50px; /* Increased by 10% from ~45px */
    font-size: 14px;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Status Filter Radio Buttons */
.status-filter-container {
    margin-top: 5px;
}

.status-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
}

.status-radio:hover {
    border-bottom-color: var(--primary-blue);
    background: var(--light-grey);
}

.status-radio input[type="radio"] {
    display: none;
}

.status-radio input[type="radio"]:checked + label,
.status-radio:has(input[type="radio"]:checked) {
    border-bottom-color: var(--primary-blue);
    background: var(--primary-blue);
    color: var(--white);
}

.status-radio i {
    font-size: 12px;
}

/* Stages Filter - Switch/Toggle Style (Accordion-like) */
.stages-filter-container {
    margin-bottom: 25px;
}

.piano-keys-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.piano-key {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--grey-text);
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    min-width: 120px;
}

.piano-key:hover {
    background: #f0f4ff;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.15);
}

.piano-key.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.piano-key.active:hover {
    background: #357ABD;
    border-color: #357ABD;
}

.piano-key i {
    font-size: 14px;
}

.piano-key span {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}



/* Results Count */
.results-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--grey-text);
    margin-left: 10px;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background: #E9ECEF;
    color: #6C757D;
}

.status-submitted {
    background: #D1ECF1;
    color: #0C5460;
}

.status-processing {
    background: #FFF3CD;
    color: #856404;
}

.status-approved {
    background: #D4EDDA;
    color: #155724;
}

.status-rejected {
    background: #F8D7DA;
    color: #721C24;
}

.status-queried {
    background: #E2E3E5;
    color: #383D41;
}

/* Form Labels */
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-text);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gap utility */
.gap-2 {
    gap: 8px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Hide ALL loading spinners completely */
.modern-loader,
.table-loading-overlay,
.table-loading-container,
.table-loading-text,
.material-spinner,
.material-spinner .spinner-ring,
.spinner,
.spinner-border,
.spinner-grow,
.fa-spinner,
[class*="spinner"],
[class*="loading-spinner"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border-left-color: var(--primary-green);
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border-left-color: #DC3545;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border-left-color: #FFC107;
}

.alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border-left-color: var(--primary-blue);
}
