/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Light Mode (Default) */
:root {
    --primary-color: #063375;
    --primary-light: #3ABEF9;
    --bg-primary: #F9FBFF;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border-color: #E2E8F0;
    --sidebar-bg: #063375;
    --card-shadow: rgba(100, 116, 139, 0.08);
    --card-shadow-hover: rgba(100, 116, 139, 0.15);
    --header-bg: #FFFFFF;
    --input-bg: #FAFBFC;
    --hover-bg: #F9FBFF;
}

/* CSS Variables for Dark Mode */
.dark-mode {
    --primary-color: #063375;
    --primary-light: #3ABEF9;
    --bg-primary: var(--primary-color);
    --bg-secondary: rgba(6, 51, 117, 0.8);
    --bg-tertiary: rgba(6, 51, 117, 0.6);
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --border-color: rgba(6, 51, 117, 0.4);
    --sidebar-bg: var(--primary-color);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow-hover: rgba(0, 0, 0, 0.5);
    --header-bg: rgba(6, 51, 117, 0.8);
    --input-bg: rgba(6, 51, 117, 0.6);
    --hover-bg: rgba(6, 51, 117, 0.6);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* Sidebar - Simple Clean Design */
.sidebar {
    width: 300px;
    background: var(--primary-color);
    color: #FFFFFF;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-right: none;
    transform: translateX(0);
}

/* Desktop: Sidebar visible by default */
@media (min-width: 1025px) {
    .sidebar {
        transform: translateX(0) !important;
        left: 0 !important;
    }
    
    .sidebar.collapsed {
        width: 80px;
    }
}

/* Removed gradient overlay for simplicity */
.sidebar::before {
    display: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(58, 190, 249, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 23, 42, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar.collapsed {
    width: 70px;
    box-shadow: 
        4px 0 20px rgba(6, 51, 117, 0.3),
        2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .nav-section-header span,
.sidebar.collapsed .nav-item span:not(.nav-item-title):not(.nav-item-description) {
    display: none;
}

.sidebar.collapsed .nav-item-content,
.sidebar.collapsed .nav-item-description {
    display: none;
}

.sidebar.collapsed .nav-section-header {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar.collapsed .nav-item {
    padding: 0.6rem 0.5rem;
    justify-content: center;
}

.sidebar.collapsed .nav-arrow {
    display: none;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(58, 190, 249, 0.2), transparent);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-weight: 600;
    font-size: 1.15rem;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.sidebar-logo:hover {
    opacity: 0.9;
}

.sidebar-logo i {
    color: #FFFFFF;
    font-size: 1.2rem;
}

.sidebar-logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: all 0.2s ease;
}

.sidebar-logo:hover .sidebar-logo-image {
    opacity: 0.9;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-toggle::before {
    display: none;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* Sidebar Search - Simple */
.sidebar-search {
    position: relative;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    transition: all 0.3s ease;
}

.sidebar-search.search-focused {
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-search i {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.sidebar-search input:focus + .sidebar-search-clear,
.sidebar-search input:not(:placeholder-shown) + .sidebar-search-clear {
    display: block;
}

.sidebar-search-clear {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-search-clear:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .sidebar-search {
    display: none;
}

.sidebar.collapsed .sidebar-search input {
    display: none;
}

/* Sidebar No Results */
.sidebar-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.sidebar-no-results i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.sidebar-no-results p {
    font-size: 0.875rem;
    margin: 0;
}

/* Sidebar Tooltip */
.sidebar-tooltip {
    position: fixed;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    animation: fadeInTooltip 0.2s ease forwards;
}

/* Sidebar Close Button */
.sidebar-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: scale(1.1);
}

.sidebar-nav {
    padding: 1.25rem 0;
    position: relative;
}

.sidebar-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.nav-section {
    margin-bottom: 0.5rem;
    animation: fadeInLeft 0.5s ease backwards;
}

.nav-section:nth-child(1) { animation-delay: 0.1s; }
.nav-section:nth-child(2) { animation-delay: 0.2s; }
.nav-section:nth-child(3) { animation-delay: 0.3s; }
.nav-section:nth-child(4) { animation-delay: 0.4s; }
.nav-section:nth-child(5) { animation-delay: 0.5s; }
.nav-section:nth-child(6) { animation-delay: 0.6s; }
.nav-section:nth-child(7) { animation-delay: 0.7s; }
.nav-section:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-section-header {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 15px 15px 0;
    margin: 0.25rem 1rem 0.25rem 0;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    user-select: none;
    font-weight: 400;
    overflow: hidden;
}

.nav-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3ABEF9 0%, #063375 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(58, 190, 249, 0.5);
    opacity: 0;
}

.nav-section-header:hover:not(.active) {
    background: rgba(58, 190, 249, 0.05);
    color: rgba(255, 255, 255, 0.85);
    transform: translateX(2px);
}

.nav-section-header:hover:not(.active)::before {
    opacity: 0;
    transform: scaleY(0);
}

.nav-section-header.active {
    background: linear-gradient(90deg, rgba(58, 190, 249, 0.12) 0%, rgba(58, 190, 249, 0.06) 100%);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 2px 8px rgba(58, 190, 249, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(58, 190, 249, 0.6);
    transform: translateX(2px);
    font-weight: 500;
}

.nav-section-header.active::before {
    transform: scaleY(1);
    opacity: 0.4;
    box-shadow: 0 0 8px rgba(58, 190, 249, 0.3);
}

.nav-section-header:hover::after {
    content: 'Double-click to close all';
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: fadeInTooltip 0.3s ease forwards;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.nav-section-header i:first-child {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    margin-right: 0.875rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.nav-section-header:hover:not(.active) i:first-child {
    color: rgba(255, 255, 255, 0.85);
}

.nav-section-header.active i:first-child {
    transform: scale(1.05);
    text-shadow: 0 2px 6px rgba(58, 190, 249, 0.3);
    filter: drop-shadow(0 2px 6px rgba(58, 190, 249, 0.25));
    color: rgba(58, 190, 249, 0.85);
}

.nav-section-header span {
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

.nav-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-section-header.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.08);
    margin: 0.25rem 0.75rem 0.5rem 0;
    border-radius: 0 0 12px 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
    border-left: 2px solid rgba(58, 190, 249, 0.12);
}

.nav-section-content.active {
    max-height: 800px;
    animation: slideDown 0.4s ease;
}

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

/* Nav Item Wrapper for spacing */
.nav-item-wrapper {
    margin: 0.4rem 0.75rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item-wrapper:not(.active-section) {
    opacity: 0.9;
}

.nav-item-wrapper.active-section {
    opacity: 1;
    z-index: 10;
}

.nav-item-wrapper.nav-item-signout {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item-wrapper.nav-item-signout:not(.active-section) {
    opacity: 0.9;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem 0.875rem 3rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 0 12px 12px 0;
    margin: 0;
    position: relative;
    font-weight: 500;
    overflow: hidden;
    min-height: 48px;
}

.nav-item::before {
    display: none;
}

.nav-item::after {
    display: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-weight: 600;
    border-left: 4px solid #FFFFFF;
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    margin-right: 0.875rem;
    transition: all 0.2s ease;
    color: #FFFFFF;
}

.nav-item:hover i {
    color: #FFFFFF;
}

.nav-item.active i {
    color: #FFFFFF;
}

.nav-item span {
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.nav-item:hover span {
    text-shadow: 0 1px 3px rgba(58, 190, 249, 0.25);
}

.nav-item.active span {
    text-shadow: 0 1px 4px rgba(58, 190, 249, 0.3);
}

/* Nav Item Content Structure */
.nav-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.nav-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.nav-item-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item:hover .nav-item-description {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item.active .nav-item-description {
    color: rgba(255, 255, 255, 0.85);
}

/* Additional collapsed sidebar styles are handled above */

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 300px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar.collapsed + .main-wrapper {
    margin-left: 70px;
}

/* Header */
.header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 1px 3px var(--card-shadow);
    z-index: 999;
    height: 60px;
    position: sticky;
    top: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: #64748B;
}

.logo i {
    color: #64748B;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    color: #64748B;
    z-index: 1;
}

.search-bar input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    width: 250px;
    font-size: 0.9rem;
    background: #F9FBFF;
    color: #64748B;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #3ABEF9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58, 190, 249, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    min-width: 0;
}

.header-icons {
    display: flex;
    gap: 1rem;
}

.header-icons i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header-icons i:hover {
    background: var(--hover-bg);
    color: #3ABEF9;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.refresh-btn:hover {
    background: var(--hover-bg);
    color: #3ABEF9;
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(360deg);
}

/* Notification Icon Wrapper */
.notification-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon-wrapper i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-icon-wrapper:hover i {
    background: var(--hover-bg);
    color: #3ABEF9;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #EF4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--header-bg, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: pulse 2s infinite;
}

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

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownSlideDown 0.3s ease;
}

.notification-dropdown.show {
    display: flex;
}

@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
}

.notification-dropdown-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #3ABEF9;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mark-all-read-btn:hover {
    background: rgba(58, 190, 249, 0.1);
}

.notification-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
    background: #F1F5F9;
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

.notification-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.notification-item:hover {
    background: #F8FAFC;
}

.notification-item.unread {
    background: #EFF6FF;
    border-left: 3px solid #3ABEF9;
}

.notification-item.unread:hover {
    background: #DBEAFE;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notification-item-icon.info {
    background: #DBEAFE;
    color: #3ABEF9;
}

.notification-item-icon.success {
    background: #D1FAE5;
    color: #059669;
}

.notification-item-icon.warning {
    background: #FEF3C7;
    color: #D97706;
}

.notification-item-icon.error {
    background: #FEE2E2;
    color: #DC2626;
}

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

.notification-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-item-message {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-item-time {
    font-size: 0.75rem;
    color: #94A3B8;
}

.notification-empty {
    padding: 3rem 1.25rem;
    text-align: center;
    color: #94A3B8;
}

.notification-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.notification-dropdown-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #E2E8F0;
    text-align: center;
    background: #F8FAFC;
}

.view-all-notifications {
    color: #3ABEF9;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-notifications:hover {
    color: #0EA5E9;
    text-decoration: underline;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownSlideDown 0.3s ease;
}

.user-profile-dropdown.show {
    display: flex;
}

.user-profile-dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
}

.dropdown-user-email {
    font-size: 0.85rem;
    color: #64748B;
}

.user-profile-dropdown-body {
    padding: 0.5rem 0;
}

.user-profile-dropdown-body .dropdown-item {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
    text-decoration: none;
}

.user-profile-dropdown-body .dropdown-item:hover {
    background: #F8FAFC;
    color: #063375;
}

.user-profile-dropdown-body .dropdown-item i {
    width: 18px;
    text-align: center;
    color: #64748B;
}

.user-profile-dropdown-body .dropdown-item:hover i {
    color: #3ABEF9;
}

/* Change Password dropdown item - specific color */
.user-profile-dropdown-body .dropdown-item:has(i.fa-key),
.user-profile-dropdown-body .dropdown-item[onclick*="showChangePasswordModal"] {
    color: #063375;
}

.user-profile-dropdown-body .dropdown-item:has(i.fa-key):hover,
.user-profile-dropdown-body .dropdown-item[onclick*="showChangePasswordModal"]:hover {
    background: rgba(6, 51, 117, 0.1);
    color: #052a5a;
}

.user-profile-dropdown-body .dropdown-item:has(i.fa-key) i,
.user-profile-dropdown-body .dropdown-item[onclick*="showChangePasswordModal"] i,
.user-profile-dropdown-body .dropdown-item.change-password-item i {
    color: #063375;
}

.user-profile-dropdown-body .dropdown-item:has(i.fa-key):hover i,
.user-profile-dropdown-body .dropdown-item[onclick*="showChangePasswordModal"]:hover i,
.user-profile-dropdown-body .dropdown-item.change-password-item:hover i {
    color: #052a5a;
}

.user-profile-dropdown-body .dropdown-item.change-password-item {
    color: #063375;
}

.user-profile-dropdown-body .dropdown-item.change-password-item:hover {
    background: rgba(6, 51, 117, 0.1);
    color: #052a5a;
}

.user-profile-dropdown-body .dropdown-item.logout-item {
    color: #DC2626;
}

.user-profile-dropdown-body .dropdown-item.logout-item:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.user-profile-dropdown-body .dropdown-item.logout-item i {
    color: #DC2626;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #E2E8F0;
}

/* Mobile Responsive Styles for Header Dropdowns */
@media (max-width: 768px) {
    /* Notification Dropdown Mobile */
    .notification-dropdown {
        width: calc(100vw - 2rem);
        max-width: 380px;
        right: 1rem;
        left: auto;
        position: fixed;
        top: 60px;
        z-index: 1001;
    }
    
    /* User Profile Dropdown Mobile */
    .user-profile-dropdown {
        width: calc(100vw - 2rem);
        max-width: 280px;
        right: 1rem;
        left: auto;
        position: fixed;
        top: 60px;
        z-index: 1001;
    }
    
    /* Header Icons Mobile */
    .header-icons {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .header-icons i,
    .notification-icon-wrapper,
    .refresh-btn,
    .theme-toggle {
        font-size: 1.1rem;
        padding: 0.4rem;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        touch-action: manipulation;
    }
    
    /* User Profile Mobile */
    .user-profile {
        gap: 0.5rem;
        padding: 0.4rem;
        min-width: auto;
    }
    
    .user-profile .avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .user-profile .user-info {
        display: none;
    }
    
    /* Search Bar Mobile */
    .header-left .search-bar {
        display: none;
    }
    
    /* Header Right Mobile */
    .header-right {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    /* Header Layout Mobile */
    .header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
    }
    
    /* Ensure proper touch targets */
    .notification-icon-wrapper,
    .user-profile {
        -webkit-tap-highlight-color: rgba(58, 190, 249, 0.2);
        tap-highlight-color: rgba(58, 190, 249, 0.2);
    }
}

@media (max-width: 480px) {
    /* Notification Dropdown Small Mobile */
    .notification-dropdown {
        width: calc(100vw - 1rem);
        right: -0.5rem;
        max-height: 70vh;
    }
    
    .notification-dropdown-header {
        padding: 0.75rem 1rem;
    }
    
    .notification-dropdown-header h3 {
        font-size: 0.9rem;
    }
    
    .mark-all-read-btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .notification-item {
        padding: 0.75rem 1rem;
    }
    
    .notification-item-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .notification-item-title {
        font-size: 0.85rem;
    }
    
    .notification-item-message {
        font-size: 0.8rem;
    }
    
    .notification-item-time {
        font-size: 0.7rem;
    }
    
    /* User Profile Dropdown Small Mobile */
    .user-profile-dropdown {
        width: calc(100vw - 1rem);
        right: -0.5rem;
    }
    
    .user-profile-dropdown-header {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-user-name {
        font-size: 0.9rem;
    }
    
    .dropdown-user-email {
        font-size: 0.8rem;
    }
    
    .user-profile-dropdown-body .dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Header Icons Small Mobile */
    .header-icons {
        gap: 0.25rem;
    }
    
    .header-icons i,
    .notification-icon-wrapper,
    .refresh-btn,
    .theme-toggle {
        font-size: 1rem;
        padding: 0.35rem;
        width: 32px;
        height: 32px;
    }
    
    /* Notification Badge Small Mobile */
    .notification-badge {
        font-size: 0.65rem;
        min-width: 16px;
        height: 16px;
        padding: 1px 5px;
        top: 0;
        right: 0;
    }
    
    /* User Profile Small Mobile */
    .user-profile {
        padding: 0.3rem;
    }
    
    .user-profile .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    /* Header Padding Small Mobile */
    .header {
        padding: 0.5rem 0.75rem;
        min-height: 60px;
    }
    
    .header-left {
        gap: 0.5rem;
    }
    
    /* Ensure dropdowns are above everything on mobile */
    .notification-dropdown,
    .user-profile-dropdown {
        z-index: 1002;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    }
    
    /* Mobile overlay for dropdowns */
    .notification-dropdown.show::before,
    .user-profile-dropdown.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        pointer-events: none;
    }
    
    /* Touch-friendly button sizes */
    .header-icons i,
    .notification-icon-wrapper,
    .refresh-btn,
    .theme-toggle,
    .user-profile {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(58, 190, 249, 0.2);
    }
    
    /* Prevent text selection on mobile */
    .header-icons,
    .user-profile,
    .notification-icon-wrapper {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Better scrolling on mobile */
    .notification-dropdown-body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Prevent body scroll when dropdown is open on mobile */
    body.dropdown-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .notification-dropdown,
    .user-profile-dropdown {
        max-height: 60vh;
    }
    
    .notification-dropdown-body {
        max-height: calc(60vh - 120px);
    }
}

@media (max-width: 375px) {
    /* Extra Small Mobile */
    .notification-dropdown {
        width: calc(100vw - 0.5rem);
        right: 0.25rem;
        left: 0.25rem;
        max-width: none;
    }
    
    .user-profile-dropdown {
        width: calc(100vw - 0.5rem);
        right: 0.25rem;
        left: auto;
        max-width: 280px;
    }
    
    .header {
        padding: 0.5rem;
    }
    
    .header-icons {
        gap: 0.25rem;
    }
    
    .header-icons i,
    .notification-icon-wrapper,
    .refresh-btn,
    .theme-toggle {
        font-size: 0.95rem;
        width: 36px;
        height: 36px;
        padding: 0.35rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .user-profile .avatar {
        width: 32px;
        height: 32px;
    }
    
    /* Smaller text on very small screens */
    .notification-dropdown-header h3 {
        font-size: 0.85rem;
    }
    
    .dropdown-user-name {
        font-size: 0.85rem;
    }
    
    .dropdown-user-email {
        font-size: 0.75rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--hover-bg);
    color: #3ABEF9;
    transform: rotate(15deg);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: scale(1.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    max-width: 250px;
    flex-shrink: 1;
    min-width: 0;
}

.user-profile:hover {
    background: #F9FBFF;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-shrink: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    line-height: 1.2;
}

.user-email {
    font-size: 0.75rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    line-height: 1.2;
}



/* Main Content */
.main-content {
    background: var(--bg-primary);
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.content-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.08);
}

.content-header .header-content {
    flex: 1;
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #063375 0%, #3ABEF9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message {
    margin: 0;
    line-height: 1.6;
}

.welcome-greeting {
    font-size: 1rem;
    color: #64748B;
    font-weight: 500;
}

.user-name-highlight {
    color: #063375;
    font-weight: 700;
}

.welcome-description {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-buttons .advanced-btn span,
.header-buttons .feature-overview-btn span {
    display: inline-block;
}

@media (max-width: 768px) {
    .header-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .advanced-btn-wrapper {
        width: 100%;
    }
    
    .advanced-btn,
    .feature-overview-btn {
        width: 100%;
        justify-content: center;
    }
    
    .advanced-btn span,
    .feature-overview-btn span {
        display: inline;
    }
    
    .advanced-dropdown {
        right: auto;
        left: 0;
        width: 100%;
        min-width: auto;
    }
}

.feature-overview-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 16px rgba(102, 126, 234, 0.35),
        0 2px 8px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-overview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.feature-overview-btn:hover {
    background-position: 100% 0;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.45),
        0 6px 16px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(102, 126, 234, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.feature-overview-btn:hover::before {
    left: 100%;
}

.feature-overview-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 3px 10px rgba(102, 126, 234, 0.3);
}

.feature-overview-btn i {
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-overview-btn:hover i {
    transform: translateX(4px) rotate(15deg) scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Complete Feature Overview Styles */
.workflow-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #E2E8F0;
    z-index: 1;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.workflow-step .step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
    border-radius: 16px;
    color: #64748B;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.workflow-step.active .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.workflow-step:hover .step-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.workflow-step:not(.active):hover .step-icon {
    background: linear-gradient(135deg, #CBD5E1 0%, #94A3B8 100%);
    color: #475569;
}

.workflow-step.active {
    transform: scale(1.05);
}

/* Step numbers removed - using icons only */
.step-number {
    display: none;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.85rem;
    color: #64748B;
    text-align: center;
}

.workflow-content {
    display: none;
}

.workflow-content.active {
    display: block;
}

.content-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F1F5F9;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #063375;
}

.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-filter, .date-filter {
    position: relative;
}

.search-filter input, .date-filter input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
}

.search-filter input:focus, .date-filter input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-filter i, .date-filter i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 0.9rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th {
    background: #F8FAFC;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #E2E8F0;
    font-size: 0.9rem;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #F1F5F9;
    color: #64748B;
    font-size: 0.9rem;
}

.data-table tr:hover {
    background: #F8FAFC;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #D1FAE5;
    color: #065F46;
}

.status-waiting {
    background: #FEF3C7;
    color: #92400E;
}

.status-not-verified {
    background: #FEE2E2;
    color: #991B1B;
}

.status-available {
    background: #D1FAE5;
    color: #065F46;
}

.status-allocated {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-testing {
    background: #FEF3C7;
    color: #92400E;
}

.status-verified {
    background: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.did-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.did-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.did-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.did-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.did-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
}

.did-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748B;
}

.info-item i {
    color: #063375;
    font-size: 0.8rem;
    width: 16px;
}

.did-actions {
    display: flex;
    gap: 0.5rem;
}

.allocation-form {
    max-width: 800px;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #063375;
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #063375;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[readonly] {
    background: #F1F5F9;
    color: #64748B;
}

.error-message {
    color: #DC2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.routing-preview {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-label {
    font-weight: 600;
    color: #374151;
}

.preview-value {
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #E2E8F0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #063375;
    color: white;
    box-shadow: 0 4px 15px rgba(6, 51, 117, 0.3);
    border-color: #063375;
}

.btn-primary:hover {
    background: #052a5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 51, 117, 0.4);
    border-color: #052a5a;
}

.btn-secondary {
    background: #F1F5F9;
    color: #64748B;
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover {
    background: #E2E8F0;
    color: #374151;
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #E2E8F0;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-header h3 i {
    color: #063375;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748B;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #F1F5F9;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4 i {
    color: #063375;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 0.95rem;
    color: #1E293B;
    font-weight: 500;
}

.allocated-dids {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.did-badge {
    background: #DBEAFE;
    color: #1E40AF;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.no-dids {
    color: #64748B;
    font-style: italic;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast-success {
    border-left: 4px solid #10B981;
}

.toast-error {
    border-left: 4px solid #EF4444;
}

.toast-info {
    border-left: 4px solid #3B82F6;
}

.toast i {
    font-size: 1.2rem;
}

.toast-success i {
    color: #10B981;
}

.toast-error i {
    color: #EF4444;
}

.toast-info i {
    color: #3B82F6;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .workflow-steps::before {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .search-filter input, .date-filter input {
        width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .did-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .toast {
        min-width: auto;
    }
}

.content-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0.25rem;
}

.welcome-message {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.welcome-greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
    display: block;
    margin-bottom: 0.25rem;
}

.user-name-highlight {
    color: #063375;
    font-weight: 700;
    background: linear-gradient(135deg, #063375, #3ABEF9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(6, 51, 117, 0.1);
}

.welcome-description {
    color: #64748B;
    font-size: 0.9rem;
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

.advanced-btn-wrapper {
    position: relative;
}

.advanced-btn {
    background: linear-gradient(135deg, #063375 0%, #0F4C8C 100%);
    color: white;
    border: 2px solid transparent;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 
        0 4px 12px rgba(6, 51, 117, 0.25),
        0 2px 4px rgba(6, 51, 117, 0.15);
    white-space: nowrap;
}

.advanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.advanced-btn:hover::before {
    left: 100%;
}

.advanced-btn:hover,
.advanced-btn-wrapper.active .advanced-btn {
    background: linear-gradient(135deg, #3ABEF9 0%, #0EA5E9 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(58, 190, 249, 0.4),
        0 4px 12px rgba(58, 190, 249, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.advanced-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(58, 190, 249, 0.3),
        0 2px 6px rgba(58, 190, 249, 0.2);
}

.advanced-btn i:first-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.advanced-btn:hover i:first-child,
.advanced-btn-wrapper.active .advanced-btn i:first-child {
    transform: rotate(90deg);
}

.advanced-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.advanced-btn-wrapper.active .advanced-arrow {
    transform: rotate(180deg);
}

/* Advanced Dropdown Menu */
.advanced-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 
        0 12px 40px rgba(100, 116, 139, 0.2),
        0 4px 16px rgba(100, 116, 139, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid #E2E8F0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    overflow: hidden;
    padding: 0.5rem;
}

.advanced-btn-wrapper.active .advanced-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.advanced-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #1E293B;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.advanced-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #063375 0%, #3ABEF9 100%);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.advanced-dropdown-item:hover {
    background: linear-gradient(135deg, #F9FBFF 0%, #F1F5F9 100%);
    color: #063375;
    transform: translateX(4px);
}

.advanced-dropdown-item:hover::before {
    transform: scaleY(1);
}

.advanced-dropdown-item i {
    width: 20px;
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.advanced-dropdown-item:hover i {
    color: #063375;
    transform: scale(1.1);
}

.advanced-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
    margin: 0.5rem 0;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(6, 51, 117, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(58, 190, 249, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 0.875rem;
    box-shadow: 
        0 3px 12px rgba(100, 116, 139, 0.08),
        0 1px 6px rgba(100, 116, 139, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #063375 0%, #3ABEF9 50%, #063375 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: shimmer 3s infinite;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(100, 116, 139, 0.18),
        0 6px 20px rgba(100, 116, 139, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2.5px solid var(--primary-color);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.metric-card .metric-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.metric-card .metric-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.metric-card:hover .metric-icon-wrapper {
    transform: scale(1.15) rotate(8deg) translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.metric-card:hover .metric-icon-wrapper::before {
    opacity: 1;
}

.metric-card .metric-icon-wrapper i {
    font-size: 1.25rem;
    color: #fff;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
}

.metric-card:hover .metric-icon-wrapper i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.metric-card .metric-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.metric-card:hover .metric-icon-wrapper::after {
    width: 120px;
    height: 120px;
}

.metric-card .metric-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-card h3 {
    font-size: 0.7rem;
    color: #64748B;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, #1E293B 0%, #475569 50%, #1E293B 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.metric-card:hover .metric-value {
    background-position: 100% 0;
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    color: #64748B;
    margin-top: 0.125rem;
    padding: 0.2rem 0.4rem;
    background: rgba(100, 116, 139, 0.05);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.metric-card:hover .metric-trend {
    background: rgba(100, 116, 139, 0.1);
    transform: translateX(4px);
}

.metric-trend i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.metric-card:hover .metric-trend i.fa-arrow-up {
    transform: translateY(-2px);
    animation: bounce-up 1s ease-in-out infinite;
}

.metric-card:hover .metric-trend i.fa-arrow-down {
    transform: translateY(2px);
    animation: bounce-down 1s ease-in-out infinite;
}

.metric-trend i.fa-arrow-up {
    color: #10B981;
}

.metric-trend i.fa-arrow-down {
    color: #EF4444;
}

@keyframes bounce-up {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes bounce-down {
    0%, 100% {
        transform: translateY(2px);
    }
    50% {
        transform: translateY(4px);
    }
}

.metric-chart {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 50px;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(0.5px);
    z-index: 0;
}

.metric-card:hover .metric-chart {
    opacity: 0.85;
    transform: scale(1.1) translateY(-8px);
    filter: blur(0);
}

.metric-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Card Color Variants with Enhanced Gradients and Borders */
.metric-card.card-primary {
    border-color: rgba(6, 51, 117, 0.2);
}

.metric-card.card-primary .metric-icon-wrapper {
    background: linear-gradient(135deg, #063375 0%, #0F4C8C 50%, #1E40AF 100%);
    box-shadow: 0 8px 16px rgba(6, 51, 117, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-card.card-success {
    border-color: rgba(16, 185, 129, 0.2);
}

.metric-card.card-success .metric-icon-wrapper {
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-card.card-warning {
    border-color: rgba(245, 158, 11, 0.2);
}

.metric-card.card-warning .metric-icon-wrapper {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-card.card-info {
    border-color: rgba(58, 190, 249, 0.2);
}

.metric-card.card-info .metric-icon-wrapper {
    background: linear-gradient(135deg, #3ABEF9 0%, #0EA5E9 50%, #0284C7 100%);
    box-shadow: 0 8px 16px rgba(58, 190, 249, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-card.card-secondary {
    border-color: rgba(100, 116, 139, 0.2);
}

.metric-card.card-secondary .metric-icon-wrapper {
    background: linear-gradient(135deg, #64748B 0%, #475569 50%, #334155 100%);
    box-shadow: 0 8px 16px rgba(100, 116, 139, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-card.card-purple {
    border-color: rgba(139, 92, 246, 0.2);
}

.metric-card.card-purple .metric-icon-wrapper {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-card.card-teal {
    border-color: rgba(20, 184, 166, 0.2);
}

.metric-card.card-teal .metric-icon-wrapper {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 50%, #0F766E 100%);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-card.card-danger {
    border-color: rgba(239, 68, 68, 0.2);
}

.metric-card.card-danger .metric-icon-wrapper {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced hover glow effects with stronger borders */
.metric-card.card-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #EFF6FF 100%);
    border-color: rgba(6, 51, 117, 0.5);
    border-width: 3px;
    box-shadow: 
        0 20px 60px rgba(6, 51, 117, 0.25),
        0 8px 24px rgba(6, 51, 117, 0.15),
        0 0 0 1px rgba(6, 51, 117, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-card.card-success:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ECFDF5 100%);
    border-color: rgba(16, 185, 129, 0.5);
    border-width: 3px;
    box-shadow: 
        0 20px 60px rgba(16, 185, 129, 0.25),
        0 8px 24px rgba(16, 185, 129, 0.15),
        0 0 0 1px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-card.card-warning:hover {
    background: linear-gradient(135deg, #ffffff 0%, #FFFBEB 100%);
    border-color: rgba(245, 158, 11, 0.5);
    border-width: 3px;
    box-shadow: 
        0 20px 60px rgba(245, 158, 11, 0.25),
        0 8px 24px rgba(245, 158, 11, 0.15),
        0 0 0 1px rgba(245, 158, 11, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-card.card-info:hover {
    background: linear-gradient(135deg, #ffffff 0%, #EFF6FF 100%);
    border-color: rgba(58, 190, 249, 0.5);
    border-width: 3px;
    box-shadow: 
        0 20px 60px rgba(58, 190, 249, 0.25),
        0 8px 24px rgba(58, 190, 249, 0.15),
        0 0 0 1px rgba(58, 190, 249, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-card.card-secondary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #F8FAFC 100%);
    border-color: rgba(100, 116, 139, 0.5);
    border-width: 3px;
    box-shadow: 
        0 20px 60px rgba(100, 116, 139, 0.25),
        0 8px 24px rgba(100, 116, 139, 0.15),
        0 0 0 1px rgba(100, 116, 139, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-card.card-purple:hover {
    background: linear-gradient(135deg, #ffffff 0%, #F5F3FF 100%);
    border-color: rgba(139, 92, 246, 0.5);
    border-width: 3px;
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.25),
        0 8px 24px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-card.card-teal:hover {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDFA 100%);
    border-color: rgba(20, 184, 166, 0.5);
    border-width: 3px;
    box-shadow: 
        0 20px 60px rgba(20, 184, 166, 0.25),
        0 8px 24px rgba(20, 184, 166, 0.15),
        0 0 0 1px rgba(20, 184, 166, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-card.card-danger:hover {
    background: linear-gradient(135deg, #ffffff 0%, #FEF2F2 100%);
    border-color: rgba(239, 68, 68, 0.5);
    border-width: 3px;
    box-shadow: 
        0 20px 60px rgba(239, 68, 68, 0.25),
        0 8px 24px rgba(239, 68, 68, 0.15),
        0 0 0 1px rgba(239, 68, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Add entrance animation */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }
.metric-card:nth-child(5) { animation-delay: 0.5s; }
.metric-card:nth-child(6) { animation-delay: 0.6s; }
.metric-card:nth-child(7) { animation-delay: 0.7s; }
.metric-card:nth-child(8) { animation-delay: 0.8s; }

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.chart-container {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.12);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
            font-size: 1.2rem;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header h3 i {
    color: #3ABEF9;
    font-size: 1.1rem;
}

.time-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #E2E8F0;
    background: #fff;
            border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #64748B;
            transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: #F9FBFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.1);
}

.filter-btn.active {
    background: #063375;
    color: white;
    border-color: #063375;
    box-shadow: 0 2px 8px rgba(6, 51, 117, 0.3);
    transform: translateY(-1px);
    font-weight: 600;
}

.filter-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn.active:hover::before {
    left: 100%;
}

.chart-content {
    height: 300px;
    position: relative;
}

.chart-content canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Account Status */
.account-status {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
    transition: all 0.3s ease;
}

.account-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.12);
}

.account-status h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-status h3 i {
    color: #3ABEF9;
    font-size: 1.1rem;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F1F5F9;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0.75rem;
}

.status-item:hover {
    background: #F9FBFF;
    transform: translateX(5px);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label i {
    color: #3ABEF9;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.status-item span {
    font-size: 0.9rem;
    color: #64748B;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-value span {
    font-weight: 600;
    font-size: 1rem;
    color: #1E293B;
}

.status-value canvas {
    width: 40px !important;
    height: 20px !important;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .metric-value {
        font-size: 1.875rem;
    }
    
    .metric-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .metric-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .metric-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-header {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-message {
        font-size: 0.9rem;
    }
    
    .metric-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
    
    .metric-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .metric-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .metric-chart {
        width: 100px;
        height: 60px;
    }
    
    .metric-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .metric-trend {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

    @media (max-width: 1024px) {
    /* Force mobile menu button to be visible */
    .mobile-menu-btn,
    #mobileMenuBtn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1001 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 300px !important;
        max-width: 85vw !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
        width: 100%;
    }

    .sidebar.collapsed + .main-wrapper {
        margin-left: 0 !important;
    }
    
    /* Ensure header-left shows the button */
    .header-left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .header-left .mobile-menu-btn,
    .header-left #mobileMenuBtn {
        order: -1;
        margin-right: 0;
    }
    
    /* Mobile overlay */
    .sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }
    
    .sidebar.open::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Specific breakpoint for 703px and below */
@media (max-width: 703px) {
    .mobile-menu-btn {
        display: flex !important;
        font-size: 1.3rem;
    }
    
    .sidebar {
        width: 100% !important;
        max-width: 100vw !important;
        transform: translateX(-100%) !important;
        left: 0 !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
        left: 0 !important;
        box-shadow: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .sidebar-header {
        padding: 1rem 1.5rem;
    }
    
    .sidebar-logo span {
        font-size: 1.1rem;
    }
    
    .nav-section-header {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .nav-section-header i:first-child {
        font-size: 1rem;
        width: 18px;
    }
    
    .nav-item {
        padding: 0.75rem 1.25rem 0.75rem 2.75rem;
        font-size: 0.9rem;
    }
    
    .nav-item i {
        font-size: 0.95rem;
        width: 16px;
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .header {
        padding: 0.75rem 1rem;
    }
    
    .header-left .search-bar {
        display: none;
    }
    
    .header-right {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .header-right .header-icons {
        gap: 0.5rem;
        order: 1;
    }
    
    .header-right .user-profile {
        order: 2;
    }
    
    .user-profile .user-info {
        display: none;
    }
    
    .user-profile .avatar {
        margin-right: 0;
    }
    
    /* Mobile Dropdown Positioning */
    .notification-dropdown {
        position: fixed;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        top: 60px;
        z-index: 1001;
    }
    
    .user-profile-dropdown {
        position: fixed;
        right: 1rem;
        left: auto;
        width: calc(100vw - 2rem);
        max-width: 300px;
        top: 60px;
        z-index: 1001;
    }
}


@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 999;
        background: var(--header-bg, #ffffff);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .header-left {
        width: 100%;
        order: 1;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .header-right {
        width: 100%;
        order: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Hide search bar on mobile */
    .header-left .search-bar {
        display: none !important;
    }
    
    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
        flex-shrink: 0;
    }
    
    /* Header icons mobile */
    .header-icons {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* User profile mobile - show only avatar */
    .user-profile {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 0.25rem;
    }
    
    .user-profile .user-info {
        display: none;
    }
    
    .user-profile .avatar {
        margin: 0;
    }
    
    .header-left {
        gap: 1rem;
    }
    
    .search-bar input {
        width: 200px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-card h3 {
        font-size: 0.85rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chart-content {
        height: 250px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .sidebar {
        width: 100%;
        max-width: 300px;
    }
    
    .sidebar.collapsed {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 0.5rem;
    }
    
    .search-bar input {
        width: 120px;
        font-size: 0.8rem;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .user-email {
        font-size: 0.7rem;
    }
    
    .header-icons {
        gap: 0.5rem;
    }
    
    .header-icons i {
        font-size: 1rem;
        padding: 0.25rem;
    }
    
    .logo-image {
        height: 24px;
    }
    
    .sidebar-logo-image {
        height: 20px;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-message {
        font-size: 0.9rem;
    }
    
    .advanced-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .metric-card {
        padding: 0.75rem;
    }
    
    .metric-card h3 {
        font-size: 0.8rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .chart-content {
        height: 200px;
    }
    
    .status-item {
        padding: 0.5rem 0;
    }
    
    .status-item span {
        font-size: 0.8rem;
    }
    
    .status-value span {
        font-size: 0.9rem;
    }
}

/* Animation and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.metric-card {
    animation: fadeInUp 0.6s ease-out;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }
.metric-card:nth-child(5) { animation-delay: 0.5s; }
.metric-card:nth-child(6) { animation-delay: 0.6s; }
.metric-card:nth-child(7) { animation-delay: 0.7s; }
.metric-card:nth-child(8) { animation-delay: 0.8s; }


/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Custom Scrollbar for Main Content */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Statistics Page Styles */
.breadcrumb {
            display: flex;
            align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #64748B;
}

.breadcrumb a {
    color: #3ABEF9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0EA5E9;
}

.breadcrumb span {
    color: #64748B;
}

/* Statistics Metrics Grid */
.statistics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.statistic-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
            display: flex;
            align-items: center;
    gap: 1rem;
}

.statistic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #063375;
}

.statistic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.15);
    border-color: #063375;
}

.statistic-icon {
    width: 60px;
    height: 60px;
    background: #063375;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
            font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(6, 51, 117, 0.3);
        }
        
.statistic-content {
    flex: 1;
        }
        
.statistic-content h3 {
    font-size: 0.9rem;
            color: #64748B;
    margin-bottom: 0.5rem;
    font-weight: 500;
        }
        
.statistic-value {
    font-size: 2rem;
            font-weight: 700;
            color: #1E293B;
    margin-bottom: 0.5rem;
}

.statistic-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.statistic-change.positive {
            color: #10B981;
        }
        
.statistic-change.negative {
            color: #EF4444;
        }
        
.statistic-change i {
    font-size: 0.7rem;
}

.statistic-chart {
    width: 80px;
    height: 50px;
}

.statistic-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Statistics Charts Section */
.statistics-charts-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container.large {
    grid-column: 1 / -1;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Quality Reports */
.quality-reports {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
}

.quality-reports h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quality-reports h3 i {
    color: #063375;
    font-size: 1.1rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F9FBFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    position: relative;
    transition: all 0.3s ease;
}

.report-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #063375, #3ABEF9);
    border-radius: 8px 8px 0 0;
}

.report-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 51, 117, 0.15);
    border-color: #063375;
}

.report-label {
    font-size: 0.9rem;
    color: #64748B;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-label i {
    color: #063375;
    font-size: 1rem;
    width: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.report-item:hover .report-label i {
    color: #3ABEF9;
    transform: scale(1.1);
}

.report-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
    transition: all 0.3s ease;
}

.report-item:hover .report-value {
    color: #063375;
}

/* Data Tables Section */
.data-tables-section {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
}

.data-tables-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.data-tables-section h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 1.5rem;
}

/* Collapsible Sections */
.collapsible-section {
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.collapsible-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-header {
    background: #FFFFFF;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    user-select: none;
}

.section-header:hover {
    background: #F9FAFB;
}

.section-header.active {
    background: #F3F4F6;
    border-bottom-color: #D1D5DB;
}

.section-header h4 {
    color: #374151;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h4 i {
    color: #6B7280;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.section-header.active h4 i {
    color: #374151;
}

.section-arrow {
    color: #6B7280;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
    padding: 0.25rem;
}

.section-header:hover .section-arrow {
    color: #374151;
}

.section-header.active .section-arrow {
    color: #374151;
    transform: rotate(180deg);
}

.section-content {
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #FFFFFF;
}

.section-content .table-controls {
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-content .table-container {
    padding: 0 1.5rem;
    background: white;
}

.section-content .table-pagination {
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enhanced table styling within collapsible sections */
.section-content .data-table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    width: 100%;
}

.section-content .data-table thead {
    background: #F9FAFB;
}

.section-content .data-table thead th {
    background: transparent;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 600;
    color: #374151;
    padding: 0.75rem;
    text-align: left;
}

.section-content .data-table tbody tr {
    transition: background-color 0.2s ease;
}

.section-content .data-table tbody tr:hover {
    background: #F9FAFB;
}

.section-content .data-table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
}

/* Enhanced search and controls styling */
.section-content .search-control {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.section-content .search-control i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 0.875rem;
}

.section-content .search-control input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    background: white;
}

.section-content .search-control input:focus {
    outline: none;
    border-color: #3B82F6;
}

.section-content .date-control {
    position: relative;
}

.section-content .date-control i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 0.875rem;
}

.section-content .date-control input {
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    background: white;
    min-width: 140px;
}

.section-content .date-control input:focus {
    outline: none;
    border-color: #3B82F6;
}

.section-content .action-controls {
    display: flex;
    gap: 0.5rem;
}

.section-content .action-btn {
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: white;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.section-content .action-btn:hover {
    border-color: #063375;
    color: #063375;
    background: #F8FAFC;
}

/* Enhanced pagination styling */
.section-content .pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.section-content .pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: white;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.section-content .pagination-btn:hover {
    border-color: #063375;
    color: #063375;
    background: #F8FAFC;
}

.section-content .pagination-btn.active {
    background: #063375;
    border-color: #063375;
    color: white;
}

.section-content .pagination-info {
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile-First Responsive Design for Collapsible Sections */

/* Extra Large Mobile Screens (480px - 640px) */
@media (max-width: 640px) {
    .collapsible-section {
        margin-bottom: 0.75rem;
        border-radius: 6px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .section-header {
        padding: 0.875rem 1rem;
        min-height: 48px;
    }
    
    .section-header h4 {
        font-size: 0.95rem;
        gap: 0.5rem;
        line-height: 1.4;
    }
    
    .section-header h4 i {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .section-arrow {
        font-size: 0.8rem;
        padding: 0.25rem;
    }
    
    .section-content .table-controls {
        padding: 0.875rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .section-content .search-control {
        min-width: auto;
        width: 100%;
    }
    
    .section-content .date-control {
        width: 100%;
    }
    
    .section-content .date-control input {
        width: 100%;
        min-width: auto;
    }
    
    .section-content .action-controls {
        justify-content: center;
        width: 100%;
    }
    
    .section-content .table-container {
        padding: 0 1rem;
        overflow-x: auto;
    }
    
    .section-content .data-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    .section-content .data-table thead th,
    .section-content .data-table tbody td {
        padding: 0.6rem 0.5rem;
        white-space: nowrap;
    }
    
    .section-content .table-pagination {
        padding: 0.875rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .section-content .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .section-content .pagination-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        min-width: 36px;
    }
    
    .section-content .pagination-info {
        font-size: 0.8rem;
        order: -1;
    }
}

/* Large Mobile Screens (375px - 480px) */
@media (max-width: 480px) {
    .collapsible-section {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header {
        padding: 0.75rem 0.875rem;
        min-height: 44px;
    }
    
    .section-header h4 {
        font-size: 0.9rem;
        gap: 0.375rem;
    }
    
    .section-header h4 i {
        font-size: 0.85rem;
        width: 14px;
    }
    
    .section-arrow {
        font-size: 0.75rem;
    }
    
    .section-content .table-controls {
        padding: 0.75rem 0.875rem;
        gap: 0.625rem;
    }
    
    .section-content .search-control input,
    .section-content .date-control input {
        padding: 0.45rem 0.625rem 0.45rem 1.75rem;
        font-size: 0.8rem;
    }
    
    .section-content .search-control i,
    .section-content .date-control i {
        left: 0.625rem;
        font-size: 0.8rem;
    }
    
    .section-content .action-btn {
        width: 32px;
        height: 32px;
        padding: 0.375rem;
    }
    
    .section-content .table-container {
        padding: 0 0.875rem;
    }
    
    .section-content .data-table {
        font-size: 0.75rem;
        min-width: 500px;
    }
    
    .section-content .data-table thead th,
    .section-content .data-table tbody td {
        padding: 0.5rem 0.375rem;
    }
    
    .section-content .table-pagination {
        padding: 0.75rem 0.875rem;
    }
    
    .section-content .pagination-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        min-width: 32px;
    }
}

/* Small Mobile Screens (320px - 375px) */
@media (max-width: 375px) {
    .collapsible-section {
        margin-left: 0.125rem;
        margin-right: 0.125rem;
        margin-bottom: 0.375rem;
    }
    
    .section-header {
        padding: 0.625rem 0.75rem;
        min-height: 40px;
    }
    
    .section-header h4 {
        font-size: 0.85rem;
        gap: 0.25rem;
    }
    
    .section-header h4 i {
        font-size: 0.8rem;
        width: 12px;
    }
    
    .section-arrow {
        font-size: 0.7rem;
    }
    
    .section-content .table-controls {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }
    
    .section-content .search-control input,
    .section-content .date-control input {
        padding: 0.4rem 0.5rem 0.4rem 1.5rem;
        font-size: 0.75rem;
    }
    
    .section-content .search-control i,
    .section-content .date-control i {
        left: 0.5rem;
        font-size: 0.75rem;
    }
    
    .section-content .action-btn {
        width: 28px;
        height: 28px;
        padding: 0.25rem;
    }
    
    .section-content .table-container {
        padding: 0 0.75rem;
    }
    
    .section-content .data-table {
        font-size: 0.7rem;
        min-width: 450px;
    }
    
    .section-content .data-table thead th,
    .section-content .data-table tbody td {
        padding: 0.4rem 0.25rem;
    }
    
    .section-content .table-pagination {
        padding: 0.625rem 0.75rem;
    }
    
    .section-content .pagination-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-width: 28px;
    }
    
    .section-content .pagination-info {
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile Screens (280px - 320px) */
@media (max-width: 320px) {
    .collapsible-section {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0.25rem;
        border-radius: 4px;
    }
    
    .section-header {
        padding: 0.5rem 0.625rem;
        min-height: 36px;
    }
    
    .section-header h4 {
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .section-header h4 i {
        font-size: 0.75rem;
        width: 10px;
    }
    
    .section-arrow {
        font-size: 0.65rem;
    }
    
    .section-content .table-controls {
        padding: 0.5rem 0.625rem;
        gap: 0.375rem;
    }
    
    .section-content .search-control input,
    .section-content .date-control input {
        padding: 0.35rem 0.4rem 0.35rem 1.25rem;
        font-size: 0.7rem;
    }
    
    .section-content .search-control i,
    .section-content .date-control i {
        left: 0.4rem;
        font-size: 0.7rem;
    }
    
    .section-content .action-btn {
        width: 24px;
        height: 24px;
        padding: 0.2rem;
    }
    
    .section-content .table-container {
        padding: 0 0.625rem;
    }
    
    .section-content .data-table {
        font-size: 0.65rem;
        min-width: 400px;
    }
    
    .section-content .data-table thead th,
    .section-content .data-table tbody td {
        padding: 0.3rem 0.2rem;
    }
    
    .section-content .table-pagination {
        padding: 0.5rem 0.625rem;
    }
    
    .section-content .pagination-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
        min-width: 24px;
    }
    
    .section-content .pagination-info {
        font-size: 0.65rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .section-content .table-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .section-content .search-control {
        flex: 1;
        min-width: 200px;
    }
    
    .section-content .date-control {
        width: auto;
        min-width: 140px;
    }
    
    .section-content .action-controls {
        width: auto;
    }
    
    .section-content .table-pagination {
        flex-direction: row;
        text-align: left;
    }
    
    .section-content .pagination-info {
        order: 0;
    }
}

/* Touch-friendly improvements for all mobile screens */
@media (max-width: 768px) {
    .section-header {
        min-height: 44px; /* Minimum touch target size */
        -webkit-tap-highlight-color: transparent;
    }
    
    .section-content .action-btn,
    .section-content .pagination-btn {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .section-content .search-control input,
    .section-content .date-control input {
        min-height: 44px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    /* Improve scrolling on mobile */
    .section-content .table-container {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .section-content .table-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .section-content .table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .section-content .table-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .section-content .table-container::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

/* Animation improvements */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.section-content {
    animation: slideDown 0.3s ease-out;
}

.section-content.closing {
    animation: slideUp 0.3s ease-in;
}

/* Focus states for accessibility */
.section-header:focus {
    outline: 2px solid #3ABEF9;
    outline-offset: 2px;
}

.section-header:focus-visible {
    outline: 2px solid #3ABEF9;
    outline-offset: 2px;
}

/* Loading state for sections */
.section-content.loading {
    position: relative;
}

.section-content.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.section-content.loading::before {
    content: 'Loading...';
    position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    color: #3ABEF9;
    font-weight: 600;
    z-index: 11;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.paid {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.pending {
    background-color: #F3F4F6;
    color: #6B7280;
}

.status-badge.refunded {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-badge.success {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.mixed {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.failed {
    background-color: #FEE2E2;
    color: #991B1B;
}

.table-controls {
        display: flex;
        align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-control {
    position: relative;
    display: flex;
    align-items: center;
}

.search-control i {
    position: absolute;
    left: 1rem;
    color: #64748B;
    z-index: 1;
}

.search-control input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    width: 250px;
    font-size: 0.9rem;
    background: #F9FBFF;
    color: #64748B;
    transition: all 0.3s ease;
}

.search-control input:focus {
    outline: none;
    border-color: #3ABEF9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58, 190, 249, 0.1);
}

.date-control {
    position: relative;
    display: flex;
    align-items: center;
}

.date-control i {
    position: absolute;
    left: 1rem;
    color: #64748B;
    z-index: 1;
}

.date-control input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #F9FBFF;
    color: #64748B;
    transition: all 0.3s ease;
}

.date-control input:focus {
    outline: none;
    border-color: #3ABEF9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58, 190, 249, 0.1);
}

.action-controls {
    display: flex;
        gap: 0.5rem;
    margin-left: auto;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #E2E8F0;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #F9FBFF;
    border-color: #063375;
    color: #063375;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
        font-size: 0.9rem;
}

.data-table th {
    background: #F9FBFF;
    color: #64748B;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #E2E8F0;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #F1F5F9;
    color: #1E293B;
}

.data-table tr:hover {
    background: #F9FBFF;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #F59E0B;
    font-size: 0.9rem;
}

.rating-value {
    color: #64748B;
    font-size: 0.8rem;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.action-links a {
    color: #3ABEF9;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.action-links a:hover {
    color: #0EA5E9;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
}

.pagination-info {
    color: #64748B;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #E2E8F0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748B;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #F9FBFF;
    border-color: #063375;
    color: #063375;
}

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

/* Reports Page Styles */
.reports-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(100, 116, 139, 0.05);
}

.reports-section {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    background: #F9FBFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.section-header h2 i {
    color: #063375;
    font-size: 1.2rem;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.report-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1E293B;
}

.report-name i {
    color: #063375;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.action-links {
    display: flex;
    gap: 0.5rem;
}

.action-link {
    color: #063375;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.action-link:hover {
    background: #F9FBFF;
    color: #3ABEF9;
}

/* Simple Reports Table Styling */
.report-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1E293B;
}

.report-name i {
    color: #063375;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Report Description */
.report-description {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #F9FBFF;
    border-radius: 6px;
    border-left: 3px solid #063375;
}

.report-description i {
    color: #063375;
    font-size: 0.9rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.report-description span {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Tags */
.columns-list, .filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.column-tag, .filter-tag {
    background: #063375;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-tag {
    background: #3ABEF9;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.view-btn {
    background: #063375;
    color: white;
}

.view-btn:hover {
    background: #3ABEF9;
}

.edit-btn {
    background: #10B981;
    color: white;
}

.edit-btn:hover {
    background: #34D399;
}

.reactivate-btn {
    background: #F59E0B;
    color: white;
}

.reactivate-btn:hover {
    background: #FBBF24;
}

.chart-btn {
    background: #8B5CF6;
    color: white;
}

.chart-btn:hover {
    background: #A78BFA;
}

.history-btn {
    background: #EF4444;
    color: white;
}

.history-btn:hover {
    background: #F87171;
}

/* Responsive Design for Statistics */
@media (max-width: 1200px) {
    .statistics-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .statistics-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-control input {
        width: 100%;
    }
    
    .action-controls {
        margin-left: 0;
        justify-content: center;
    }
    
    .table-pagination {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Subscription Page Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748B;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.breadcrumb i {
    font-size: 0.8rem;
}

.subscription-controls {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
}

.search-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 0.9rem;
}

.search-input input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
}

.search-input input:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

.date-picker {
    position: relative;
}

.date-picker i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 0.9rem;
    pointer-events: none;
}

.date-picker input {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
    min-width: 150px;
}

.date-picker input:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

.create-plan-btn {
    background: #063375;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.create-plan-btn:hover {
    background: #3ABEF9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 51, 117, 0.3);
}

.subscription-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #F9FBFF;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn.active {
    background: #063375;
    color: white;
    box-shadow: 0 2px 8px rgba(6, 51, 117, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(6, 51, 117, 0.1);
    color: #063375;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #063375, #3ABEF9);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.15);
    border-color: #063375;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
}

.plan-menu {
    background: none;
    border: none;
    color: #64748B;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.plan-menu:hover {
    background: #F9FBFF;
    color: #063375;
}

.plan-details {
    margin-bottom: 1.5rem;
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #64748B;
}

.info-item i {
    color: #063375;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.plan-description {
    background: #F9FBFF;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #063375;
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.5;
    font-style: italic;
}

.buy-now-btn {
    width: 100%;
    background: #063375;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buy-now-btn:hover {
    background: #3ABEF9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 51, 117, 0.3);
}

/* Subscription Page Responsive Design */
@media (max-width: 1024px) {
    .subscription-plans {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .date-picker {
        min-width: auto;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .subscription-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-btn {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .plan-card {
        padding: 1rem;
    }
    
    .plan-header h3 {
        font-size: 1.1rem;
    }
    
    .plan-info {
        gap: 0.5rem;
    }
    
    .info-item {
        font-size: 0.85rem;
    }
    
    .buy-now-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .subscription-controls {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-section {
        gap: 0.75rem;
    }
    
    .search-input input,
    .date-picker input {
        padding: 0.625rem 0.625rem 0.625rem 2rem;
        font-size: 0.85rem;
    }
    
    .create-plan-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .subscription-tabs {
        padding: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .plan-card {
        padding: 0.75rem;
    }
    
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .plan-header h3 {
        font-size: 1rem;
    }
    
    .plan-info {
        gap: 0.375rem;
    }
    
    .info-item {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .info-item i {
        font-size: 0.9rem;
        width: 14px;
    }
    
    .plan-description {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .buy-now-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Create Plan Form Styles */
.create-plan-section {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    background: linear-gradient(135deg, #F9FBFF 0%, #FFFFFF 100%);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #063375;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: #64748B;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.section-header h2 i {
    color: #063375;
    font-size: 1.2rem;
}

.plan-type-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #F9FBFF;
    border-bottom: 1px solid #E2E8F0;
}

.plan-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-tab-btn.active {
    background: #063375;
    color: white;
    box-shadow: 0 2px 8px rgba(6, 51, 117, 0.3);
}

.plan-tab-btn:hover:not(.active) {
    background: rgba(6, 51, 117, 0.1);
    color: #063375;
}

.plan-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F1F5F9;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #063375;
    font-size: 1.1rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #063375;
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #063375;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
    color: #1E293B;
    width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94A3B8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

@media (max-width: 480px) {
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
    margin-top: 2rem;
}

.action-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 140px;
    white-space: nowrap;
}

.upload-btn {
    background: #6B7280;
    color: white;
    border: 1px solid #6B7280;
}

.upload-btn:hover {
    background: #9CA3AF;
    border-color: #9CA3AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.save-btn {
    background: #063375;
    color: white;
    border: 1px solid #063375;
}

.save-btn:hover {
    background: #3ABEF9;
    border-color: #3ABEF9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 51, 117, 0.3);
}

/* Create Plan Responsive Design */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .plan-form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    .plan-type-tabs {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .plan-tab-btn {
        justify-content: flex-start;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .plan-tab-btn span {
        margin-left: 0.5rem;
    }
    
    .plan-form {
        padding: 1.25rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .form-group label i {
        font-size: 0.85rem;
    }
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .action-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .create-plan-section {
        margin: 0 -0.5rem;
        border-radius: 8px;
    }
    
    .section-header {
        padding: 1.25rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-description {
        font-size: 0.85rem;
    }
    }
    
    .plan-type-tabs {
        padding: 0.75rem;
    }
    
    .plan-tab-btn {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .plan-tab-btn i {
        font-size: 1rem;
    }
    
    .plan-tab-btn span {
        margin-left: 0.5rem;
    }
    
    .plan-form {
        padding: 1rem;
    }
    
    .form-section {
        margin-bottom: 1.75rem;
    }
    
    .form-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
        gap: 0.4rem;
    }
    
    .form-section h3 i {
        font-size: 1rem;
    }
    
    .form-group {
        gap: 0.375rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group label i {
        font-size: 0.8rem;
        width: 14px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .form-textarea {
        min-height: 80px;
    }
    
    .form-actions {
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .action-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
    }
}

/* Global Mobile Responsive Styles */
@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        transform: none;
        transition: none;
        box-shadow: none;
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }
    
    .sidebar.collapsed {
        width: 100%;
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header-left {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .search-bar {
        width: 100%;
        max-width: 300px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
}

/* Mobile Sidebar Toggle */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: #063375;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(6, 51, 117, 0.3);
    }
    
    .sidebar-toggle:hover {
        background: #3ABEF9;
        transform: scale(1.05);
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .header {
        padding-left: 4rem;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
    }

    .header-left {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 0.75rem;
    }
    
    .header-left .mobile-menu-btn {
        display: flex !important;
        flex-shrink: 0;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .search-bar input {
        font-size: 0.9rem;
    }
    
    .header-icons {
        gap: 1rem;
    }
    
    .user-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
    
    .user-email {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .content-header {
        margin-bottom: 1rem;
    }
    
    .content-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-logo span {
        font-size: 0.9rem;
    }
    
    .nav-section-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-item {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem;
        flex-wrap: wrap;
    }
    
    .header-left {
        width: 100%;
        order: 1;
    }
    
    .header-right {
        width: 100%;
        order: 2;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
    
    /* Mobile Dropdown Positioning for Small Screens */
    .notification-dropdown {
        right: 0.5rem;
        left: 0.5rem;
        top: 70px;
    }
    
    .user-profile-dropdown {
        right: 0.5rem;
        left: auto;
        width: calc(100vw - 1rem);
        max-width: 280px;
        top: 70px;
    }
    
    /* Ensure dropdowns don't overflow */
    .notification-dropdown-body {
        max-height: calc(70vh - 120px);
    }
    
    .logo-image {
        width: 30px;
        height: 30px;
    }
    
    .search-bar {
        padding: 0.5rem;
    }
    
    .search-bar input {
        font-size: 0.85rem;
        padding: 0.5rem 0.5rem 0.5rem 2rem;
    }
    
    .header-icons {
        gap: 0.75rem;
    }
    
    .header-icons i {
        font-size: 0.9rem;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
    }
    
    .avatar i {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .content-header h1 {
        font-size: 1.2rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .breadcrumb i {
        font-size: 0.7rem;
    }
    
    .sidebar-header {
        padding: 0.75rem;
    }
    
    .sidebar-logo {
        gap: 0.5rem;
    }
    
    .sidebar-logo span {
        font-size: 0.85rem;
    }
    
    .nav-section-header {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-item i {
        font-size: 0.9rem;
        width: 16px;
    }
}

/* Vendor Payment Page Styles */
.payment-controls {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 0.9rem;
}

.search-input input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
}

.search-input input:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

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

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

.date-input {
    position: relative;
    min-width: 150px;
}

.date-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 0.9rem;
    pointer-events: none;
}

.date-input input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
}

.date-input input:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

.payment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #063375, #3ABEF9);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.15);
    border-color: #063375;
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: #063375;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.summary-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0.25rem;
}

.summary-count {
    font-size: 0.9rem;
    color: #64748B;
}

.payment-table-container {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    background: #F9FBFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.table-header h3 i {
    color: #063375;
    font-size: 1.2rem;
}

.table-wrapper {
    overflow-x: auto;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th {
    background: #F9FBFF;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1E293B;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.9rem;
}

.payment-table td {
    padding: 1rem;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.9rem;
    color: #64748B;
}

.payment-table tr:hover {
    background: #F9FBFF;
}

.vendor-id {
    font-weight: 600;
    color: #063375;
}

.vendor-name {
    font-weight: 600;
    color: #1E293B;
}

.country {
    color: #64748B;
}

.payment-method {
    color: #64748B;
}

.amount {
    font-weight: 600;
    color: #1E293B;
}

.payment-date {
    color: #64748B;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.paid {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.failed {
    background: #FEE2E2;
    color: #991B1B;
}

.make-payment-btn {
    background: #063375;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.make-payment-btn:hover {
    background: #3ABEF9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(6, 51, 117, 0.3);
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #E2E8F0;
    background: #F9FBFF;
}

.pagination-info {
    font-size: 0.9rem;
    color: #64748B;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #64748B;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #F9FBFF;
    border-color: #063375;
    color: #063375;
}

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

/* Vendor Payment Responsive Design */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .search-input,
    .filter-group,
    .date-input {
        min-width: auto;
    }
    
    .payment-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .table-pagination {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .payment-table {
        font-size: 0.8rem;
    }
    
    .payment-table th,
    .payment-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .payment-controls {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .summary-value {
        font-size: 1.3rem;
    }
    
    .table-header {
        padding: 1rem;
    }
    
    .table-header h3 {
        font-size: 1.1rem;
    }
    
    .payment-table th,
    .payment-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .make-payment-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .table-pagination {
        padding: 0.75rem 1rem;
    }
    
    .pagination-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Enhanced Mobile Responsive Styles for Subscription Page */
@media (max-width: 1024px) {
    .subscription-controls {
        padding: 1.25rem;
    }
    
    .search-section {
        gap: 0.75rem;
    }
    
    .subscription-plans {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .subscription-controls {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .search-input,
    .date-picker {
        min-width: auto;
    }
    
    .create-plan-btn {
        width: 100%;
        justify-content: center;
    }
    
    .subscription-tabs {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .tab-btn {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-card {
        padding: 1rem;
    }
    
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .plan-header h3 {
        font-size: 1.1rem;
    }
    
    .plan-info {
        gap: 0.5rem;
    }
    
    .info-item {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .info-item i {
        font-size: 0.9rem;
        width: 14px;
    }
    
    .plan-description {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .buy-now-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .subscription-controls {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .search-section {
        gap: 0.5rem;
    }
    
    .search-input input,
    .date-picker input {
        padding: 0.625rem 0.625rem 0.625rem 2rem;
        font-size: 0.85rem;
    }
    
    .create-plan-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .subscription-tabs {
        padding: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .subscription-plans {
        gap: 0.75rem;
    }
    
    .plan-card {
        padding: 0.75rem;
    }
    
    .plan-header h3 {
        font-size: 1rem;
    }
    
    .plan-info {
        gap: 0.375rem;
    }
    
    .info-item {
        font-size: 0.8rem;
        gap: 0.375rem;
    }
    
    .info-item i {
        font-size: 0.85rem;
        width: 12px;
    }
    
    .plan-description {
        padding: 0.625rem;
        font-size: 0.8rem;
    }
    
    .buy-now-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Unified Sidebar Styles - Works on All Pages */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn,
#mobileMenuBtn {
    display: none;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    z-index: 1002;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.mobile-menu-btn:hover,
#mobileMenuBtn:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn:active,
#mobileMenuBtn:active {
    transform: scale(0.95);
}

.mobile-menu-btn i,
#mobileMenuBtn i {
    pointer-events: none;
}

/* Ensure button is visible on mobile - IMPORTANT */
@media (max-width: 1024px) {
    .mobile-menu-btn,
    #mobileMenuBtn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Mobile Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #063375;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(6, 51, 117, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.sidebar-toggle:hover {
    background: #3ABEF9;
    transform: scale(1.05);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

/* Mobile Sidebar Specific Styles */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1001 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transform: translateX(-100%) !important;
    }
    
    .sidebar.open,
    .sidebar.active {
        transform: translateX(0) !important;
        left: 0 !important;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    /* Force close sidebar on very small screens */
    @media (max-width: 480px) {
        .sidebar {
            width: 100%;
            left: -100%;
        }
        
        .sidebar.active {
            left: 0;
        }
    }
    
    .sidebar-header {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-logo {
        gap: 0.75rem;
    }
    
    .sidebar-logo span {
        font-size: 0.9rem;
    }
    
    .nav-section-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-item {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-item i {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .header {
        padding-left: 4rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .header {
        padding-left: 3.5rem;
        padding-right: 0.75rem;
    }
    
    .sidebar-header {
        padding: 0.75rem;
    }
    
    .sidebar-logo {
        gap: 0.5rem;
    }
    
    .sidebar-logo span {
        font-size: 0.85rem;
    }
    
    .nav-section-header {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-item i {
        font-size: 0.85rem;
        width: 14px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9FBFF;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-header h3 i {
    color: #063375;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: #64748B;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #F1F5F9;
    color: #EF4444;
}

.modal-body {
    padding: 1.5rem;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #063375;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
    color: #1E293B;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #E2E8F0;
    background: #F9FBFF;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-radius: 0 0 12px 12px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    background: #E2E8F0;
    color: #374151;
}

.btn-primary {
    background: #063375;
    color: white;
    border-color: #063375;
}

.btn-primary:hover {
    background: #052a5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 51, 117, 0.3);
    border-color: #052a5a;
}

/* Add Payment Button */
.add-payment-btn,
button.add-payment-btn,
.action-btn.add-payment-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    z-index: 10;
    position: relative;
}

.add-payment-btn:hover,
button.add-payment-btn:hover,
.action-btn.add-payment-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.table-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

/* Ensure Add Payment button is always visible */
#addPaymentBtn,
button#addPaymentBtn.add-payment-btn,
.action-btn.add-payment-btn#addPaymentBtn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        margin: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-container {
        max-width: 100%;
        margin: 0;
        border-radius: 8px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Payment Requests Page Styles */
.payment-controls {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.controls-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 0.9rem;
}

.search-input input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
}

.search-input input:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

.date-input {
    position: relative;
    min-width: 150px;
}

.date-input i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 0.9rem;
}

.date-input input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #F9FBFF;
    transition: all 0.3s ease;
}

.date-input input:focus {
    outline: none;
    border-color: #063375;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
}

.filter-btn {
    background: #063375;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: #3ABEF9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 51, 117, 0.3);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #D97706;
}

.status-badge.approved {
    background: #D1FAE5;
    color: #059669;
}

.status-badge.rejected {
    background: #FEE2E2;
    color: #DC2626;
}

/* BofA Balance Summary Cards */
.balance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #063375, #3ABEF9);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #063375;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #063375;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
}

.summary-label {
    font-size: 0.9rem;
    color: #64748B;
    font-weight: 500;
}

.summary-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.summary-change.positive {
    color: #059669;
}

.summary-change.negative {
    color: #DC2626;
}

.change-period {
    color: #64748B;
    font-weight: 400;
}

/* Transaction Controls */
.transaction-controls {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Transaction Table */
.transaction-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table th {
    background: #F8FAFC;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.9rem;
}

.transaction-table td {
    padding: 1rem;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.9rem;
    color: #1E293B;
}

.transaction-table tr:hover {
    background: #F8FAFC;
}

.transaction-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #063375;
}

.type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.credit {
    background: #D1FAE5;
    color: #059669;
}

.type-badge.debit {
    background: #FEE2E2;
    color: #DC2626;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Action Dropdown Styles */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: #F1F5F9;
    color: #64748B;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.dropdown-toggle:hover {
    background: #063375;
    color: white;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    display: none;
    animation: dropdownFadeIn 0.2s ease;
}

.dropdown-menu.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #F1F5F9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #F8FAFC;
    color: #063375;
}

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

.dropdown-item.reject:hover {
    color: #DC2626;
}

.dropdown-item.approve:hover {
    color: #059669;
}

.dropdown-item.view:hover {
    color: #3ABEF9;
}

/* Details Modal Styles */
.details-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #F8FAFC;
    border-radius: 8px;
    border-left: 3px solid #063375;
}

.detail-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.detail-value {
    color: #1E293B;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Action Button Hover Effects */
.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(0);
}

/* Status Update Animations */
.status-badge {
    transition: all 0.3s ease;
}

.status-badge.updating {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Download Button Styles */
.download-btn {
    background: #3ABEF9;
    color: white;
}

.download-btn:hover {
    background: #063375;
    color: white;
}

/* View Button Styles */
.view-btn {
    background: #10B981;
    color: white;
}

.view-btn:hover {
    background: #059669;
    color: white;
}

/* Edit Button Styles */
.edit-btn {
    background: #F59E0B;
    color: white;
}

.edit-btn:hover {
    background: #D97706;
    color: white;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.view-btn {
    background: #F1F5F9;
    color: #64748B;
}

.view-btn:hover {
    background: #063375;
    color: white;
}

.download-btn {
    background: #F1F5F9;
    color: #64748B;
}

.download-btn:hover {
    background: #3ABEF9;
    color: white;
}

/* Icon-only Action Buttons */
.action-buttons-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #64748B;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon.btn-primary {
    background: #063375;
    color: white;
}

.btn-icon.btn-primary:hover {
    background: #3ABEF9;
    color: white;
}

.btn-icon.btn-success {
    background: #10B981;
    color: white;
}

.btn-icon.btn-success:hover {
    background: #34D399;
    color: white;
}

.btn-icon.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-icon.btn-whatsapp:hover {
    background: #20BA5A;
    color: white;
}

.btn-icon.btn-email {
    background: #3ABEF9;
    color: white;
}

.btn-icon.btn-email:hover {
    background: #0284C7;
    color: white;
}

/* Email Templates Styles */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.template-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.template-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.template-card-header h3 {
    color: #1E293B;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
}

.template-card-body {
    margin-bottom: 1rem;
}

.template-info {
    margin-bottom: 1rem;
}

.template-info label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.template-info p {
    color: #1E293B;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.body-preview {
    color: #64748B !important;
    font-style: italic;
}

.template-card-footer {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #E2E8F0;
}

.empty-state i {
    font-size: 4rem;
    color: #CBD5E1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748B;
    margin-bottom: 1.5rem;
}

.placeholder-help {
    margin-top: 1rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.placeholder-help strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #1E293B;
    font-size: 0.9rem;
}

.placeholder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.placeholder-tag {
    padding: 0.4rem 0.75rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #063375;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: monospace;
}

.placeholder-tag:hover {
    background: #063375;
    color: white;
    border-color: #063375;
    transform: translateY(-1px);
}

.email-preview {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
}

.preview-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
    color: #1E293B;
}

.preview-body {
    color: #1E293B;
    line-height: 1.6;
    white-space: pre-wrap;
}

.placeholder-preview {
    background: #FEF3C7;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #92400E;
}

.modal-large {
    max-width: 800px;
    width: 90%;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.email-form .form-group select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #1E293B;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%2364758B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    font-weight: 500;
    min-height: 44px;
}

.email-form .form-group select:focus {
    outline: none;
    border-color: #063375;
    box-shadow: 0 0 0 3px rgba(6, 51, 117, 0.1);
    background-color: white;
}

.email-form .form-group select:hover {
    border-color: #CBD5E1;
}

.email-form .form-group select option {
    padding: 0.75rem 1rem;
    background: white;
    color: #1E293B;
    font-weight: 500;
    min-height: 40px;
    line-height: 1.5;
}

.email-form .form-group select option:first-child {
    color: #94A3B8;
    font-style: italic;
}

.email-form .form-group select option:checked,
.email-form .form-group select option:hover {
    background: #F8FAFC;
    color: #063375;
}

.email-form .template-select-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.email-form .template-select-wrapper select {
    margin-bottom: 0;
}

.email-form .btn-manage-templates {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
    background: #F8FAFC;
    color: #063375;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.email-form .btn-manage-templates:hover {
    background: #063375;
    color: white;
    border-color: #063375;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(6, 51, 117, 0.2);
}

.email-form .btn-manage-templates i {
    font-size: 0.9rem;
}

/* Follow-up Timeline Styles */
.follow-up-container {
    margin-top: 2rem;
}

.follow-up-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.follow-up-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #E2E8F0, #F1F5F9);
}

.timeline-date-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #F8FAFC;
    border-radius: 8px;
    font-weight: 600;
    color: #1E293B;
    font-size: 1rem;
    margin-left: -2rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #063375;
}

.timeline-date-header i {
    color: #063375;
}

.follow-up-item {
    display: flex;
    gap: 1rem;
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.follow-up-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.follow-up-item.follow-up-email {
    border-left-color: #3ABEF9;
}

.follow-up-item.follow-up-whatsapp {
    border-left-color: #25D366;
}

.follow-up-item.follow-up-call {
    border-left-color: #10B981;
}

.follow-up-item.follow-up-status_change {
    border-left-color: #F59E0B;
}

.follow-up-item.follow-up-closed {
    border-left-color: #EF4444;
}

.follow-up-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.follow-up-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.follow-up-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.follow-up-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.follow-up-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
}

.follow-up-time {
    font-size: 0.85rem;
    color: #94A3B8;
    font-weight: 500;
}

.follow-up-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #F1F5F9;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 500;
    white-space: nowrap;
}

.follow-up-badge i {
    color: #063375;
}

.follow-up-client {
    color: #64748B;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.follow-up-client strong {
    color: #1E293B;
    font-weight: 600;
}

.client-id {
    color: #94A3B8;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.follow-up-details {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.detail-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

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

.detail-row.full-width {
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #64748B;
    font-size: 0.9rem;
    min-width: 80px;
}

.detail-value {
    color: #1E293B;
    font-size: 0.9rem;
    flex: 1;
}

.message-preview {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.empty-timeline {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #E2E8F0;
}

.empty-timeline i {
    font-size: 4rem;
    color: #CBD5E1;
    margin-bottom: 1rem;
}

.empty-timeline h3 {
    color: #1E293B;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-timeline p {
    color: #64748B;
    font-size: 0.95rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

/* Reject Form Styles */
.reject-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reject-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.reject-form .form-group.full-width {
    grid-column: 1 / -1;
}

.reject-form .form-input[readonly] {
    background: #F8FAFC;
    color: #64748B;
    cursor: not-allowed;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input,
    .date-input {
        min-width: auto;
    }
    
    .balance-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
    
    .reject-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .transaction-table {
        font-size: 0.8rem;
    }
    
    .transaction-table th,
    .transaction-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .payment-controls,
    .transaction-controls {
        padding: 1rem;
    }
    
    .summary-card {
        padding: 0.75rem;
    }
    
    .summary-value {
        font-size: 1.3rem;
    }
    
    .transaction-table th,
    .transaction-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .dropdown-menu {
        min-width: 160px;
        right: -10px;
    }
    
    .dropdown-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
}
