body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.min-vh-100 {
    min-height: 100vh;
}

/* ============================================
   LOGIN PAGE - MATERIAL DESIGN
   ============================================ */

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    color: white;
}

.login-brand {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.brand-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 60px;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.login-brand h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.brand-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 400px;
    margin: 0 auto;
}

.login-illustration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 20%;
    animation-delay: 2s;
}

.card-3 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 15%;
    animation-delay: 4s;
}

.login-right {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.login-card {
    width: 100%;
    max-width: 450px;
    animation: fadeInRight 0.8s ease-out;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.login-header p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.login-form .form-label i {
    color: #667eea;
    font-size: 1.1rem;
}

.login-form .form-control {
    height: 52px;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.login-form .form-control:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.login-form .form-control::placeholder {
    color: #adb5bd;
}

.btn-login {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

.login-footer {
    margin-top: 40px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0 20px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider span {
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.demo-credentials {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%
    );
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #495057;
    font-size: 0.9rem;
}

.demo-credentials i {
    color: #667eea;
    font-size: 1.2rem;
}

.demo-credentials strong {
    color: #667eea;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Responsive Design for Login */
@media (max-width: 992px) {
    .login-left {
        display: none;
    }

    .login-right {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .login-right {
        padding: 20px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .login-card {
        max-width: 100%;
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-header h4 {
    opacity: 0;
    width: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

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

.sidebar-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.sidebar-nav .nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
}

.sidebar-nav .nav-item i {
    font-size: 1.3rem;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.user-info i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.sidebar.collapsed .user-info span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-footer .btn {
    transition: all 0.3s;
}

.sidebar.collapsed .sidebar-footer .btn span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    background: #f8f9fa;
}

.main-content.expanded {
    margin-left: 70px;
}

.content-wrapper {
    padding: 30px;
}

/* Mobile Header */
.mobile-header {
    display: none;
    padding: 15px 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-right: 15px;
}

.stat-details h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.stat-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.expanded {
        margin-left: 0;
    }

    .mobile-header {
        display: flex;
    }

    .content-wrapper {
        padding: 15px;
    }

    .stat-card {
        margin-bottom: 15px;
    }
}

.card {
    border: none;
    border-radius: 10px;
}

.card-body {
    padding: 2rem;
}

.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
}

.form-control,
.form-select {
    border-radius: 5px;
}

.alert {
    border-radius: 5px;
}

.table {
    margin-bottom: 0;
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

pre {
    margin-bottom: 0;
}

code {
    color: #d63384;
}

.progress {
    border-radius: 5px;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.status-inserting {
    background-color: #ffc107;
}

.status-waiting {
    background-color: #6c757d;
}

.status-processing {
    background-color: #0dcaf0;
}

.status-completed {
    background-color: #198754;
}

.status-failed {
    background-color: #dc3545;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: #f8f9fa;
}

.clickable-row.selected {
    background-color: #e7f1ff;
}

/* Provider Management Styles */
/* Old provider styles removed - see PROVIDERS PAGE section below */

.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: #555;
}

/* ============================================
   DASHBOARD PAGE - MATERIAL DESIGN
   ============================================ */

.dashboard-page {
    background: #f5f7fa;
    min-height: 100vh;
}

/* Sidebar Redesign */
.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dashboard-sidebar.collapsed {
    width: 80px;
}

.dashboard-sidebar.collapsed .sidebar-header {
    padding: 30px 16px;
    justify-content: center;
    gap: 0;
}

.dashboard-sidebar .sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dashboard-sidebar.collapsed .brand-logo {
    cursor: pointer;
    transition: transform 0.3s;
}

.dashboard-sidebar.collapsed .brand-logo:hover {
    transform: scale(1.1);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.dashboard-sidebar.collapsed .brand-title {
    display: none;
}

.dashboard-sidebar.collapsed .btn-toggle {
    display: none;
}

.dashboard-sidebar .btn-toggle {
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    margin-left: auto;
}

.dashboard-sidebar .btn-toggle:hover {
    background: #f5f7fa;
}

.dashboard-sidebar .sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.dashboard-sidebar .nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    margin: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.dashboard-sidebar .nav-item:hover {
    background: #f5f7fa;
    color: #667eea;
}

.dashboard-sidebar .nav-item.active {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%
    );
    color: #667eea;
}

.dashboard-sidebar .nav-item i {
    font-size: 1.4rem;
    min-width: 40px;
    text-align: center;
}

.dashboard-sidebar .nav-item span {
    transition: opacity 0.3s;
    white-space: nowrap;
}

.dashboard-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 14px 8px;
    margin: 4px 8px;
}

.dashboard-sidebar.collapsed .nav-item span {
    display: none;
}

.nav-indicator {
    position: absolute;
    right: 20px;
    width: 0;
    height: 0;
    background: #667eea;
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-item.active .nav-indicator {
    width: 4px;
    height: 24px;
}

.dashboard-sidebar .sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.dashboard-sidebar.collapsed .sidebar-footer {
    padding: 16px 8px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 12px;
    margin-bottom: 12px;
}

.dashboard-sidebar.collapsed .user-profile {
    padding: 8px;
    justify-content: center;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: #6c757d;
}

.dashboard-sidebar.collapsed .user-details {
    display: none;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    color: #6c757d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dashboard-sidebar.collapsed .btn-logout {
    padding: 10px;
}

.btn-logout:hover {
    background: #fee;
    border-color: #dc3545;
    color: #dc3545;
}

.btn-logout i {
    font-size: 1.2rem;
}

.dashboard-sidebar.collapsed .btn-logout span {
    display: none;
}

/* Main Content */
.dashboard-main {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-main.expanded {
    margin-left: 80px;
}

.dashboard-header {
    background: white;
    padding: 24px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #667eea;
    cursor: pointer;
    padding: 8px;
}

.page-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.page-title p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 4px 0 0 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-icon {
    width: 44px;
    height: 44px;
    background: #f5f7fa;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.btn-header-icon:hover {
    background: #667eea;
    color: white;
}

.btn-header-icon i {
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* Date Filter Styles */
.date-filter-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-header {
    margin-bottom: 16px;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.filter-title i {
    font-size: 1.25rem;
    color: #667eea;
}

.filter-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.filter-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 35px;
}

.date-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.period-type-group {
    flex-shrink: 0;
}

.period-select-modern {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

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

.period-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.input-label {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.input-label i {
    font-size: 0.875rem;
    color: #667eea;
}

.date-input-modern {
    padding: 10px 36px 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    transition: all 0.2s;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
}

.date-input-modern::-webkit-calendar-picker-indicator {
    cursor: pointer;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
}

/* Show calendar icon using background image */
.date-input-group {
    position: relative;
}

.date-input-group::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

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

.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.25rem;
    padding-bottom: 6px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-apply-modern {
    display: none;
}

.btn-reset-modern {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-apply-modern {
    background: #667eea;
    color: white;
}

.btn-apply-modern:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-apply-modern i {
    font-size: 1rem;
}

.btn-reset-modern {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-reset-modern:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

.btn-reset-modern i {
    font-size: 1rem;
}

.btn-apply-filter i,
.btn-reset-filter i {
    font-size: 0.9rem;
}

/* Channel Filter Buttons */
.channel-filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-channel-filter {
    padding: 10px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-channel-filter:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.btn-channel-filter.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-channel-filter i {
    font-size: 1rem;
}

.last-updated-text {
    color: #6c757d;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-top: 5px;
}

.dashboard-content {
    padding: 32px;
}

/* Media Section */
.media-section {
    margin-bottom: 48px;
}

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

.media-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header .media-title {
    margin-bottom: 0;
}

.media-title i {
    font-size: 1.75rem;
    color: #667eea;
}

/* Stats Grid - Material Design */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Dynamic Result Stats Container */
#dynamicResultStatsContainer {
    display: contents;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.stat-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    opacity: 0.1;
}

.stat-icon-wrapper i {
    position: relative;
    font-size: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.stat-trend i {
    font-size: 0.9rem;
}

/* Color Variants */
.stat-primary .stat-icon-bg {
    background: #667eea;
}
.stat-primary .stat-icon-wrapper i {
    color: #667eea;
}
.stat-primary .stat-value {
    color: #667eea;
}
.stat-primary .stat-trend {
    color: #667eea;
}

.stat-success .stat-icon-bg {
    background: #10b981;
}
.stat-success .stat-icon-wrapper i {
    color: #10b981;
}
.stat-success .stat-value {
    color: #10b981;
}
.stat-success .stat-trend {
    color: #10b981;
}

.stat-danger .stat-icon-bg {
    background: #ef4444;
}
.stat-danger .stat-icon-wrapper i {
    color: #ef4444;
}
.stat-danger .stat-value {
    color: #ef4444;
}
.stat-danger .stat-trend {
    color: #ef4444;
}

.stat-info .stat-icon-bg {
    background: #3b82f6;
}
.stat-info .stat-icon-wrapper i {
    color: #3b82f6;
}
.stat-info .stat-value {
    color: #3b82f6;
}
.stat-info .stat-trend {
    color: #3b82f6;
}

.stat-warning .stat-icon-bg {
    background: #f59e0b;
}
.stat-warning .stat-icon-wrapper i {
    color: #f59e0b;
}
.stat-warning .stat-value {
    color: #f59e0b;
}
.stat-warning .stat-trend {
    color: #f59e0b;
}

.stat-purple .stat-icon-bg {
    background: #a855f7;
}
.stat-purple .stat-icon-wrapper i {
    color: #a855f7;
}
.stat-purple .stat-value {
    color: #a855f7;
}
.stat-purple .stat-trend {
    color: #a855f7;
}

.stat-teal .stat-icon-bg {
    background: #14b8a6;
}
.stat-teal .stat-icon-wrapper i {
    color: #14b8a6;
}
.stat-teal .stat-value {
    color: #14b8a6;
}
.stat-teal .stat-trend {
    color: #14b8a6;
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 32px;
}

.card-header-modern {
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.card-subtitle-modern {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 4px 0 0 0;
}

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

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.btn-primary-modern i {
    font-size: 1.1em;
}

.card-body-modern {
    padding: 0;
}

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

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

.table-modern thead {
    background: white;
}

.table-modern th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #e2e8f0;
}

.table-modern tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    background: white;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.table-modern td {
    padding: 12px;
    color: #475569;
    font-size: 0.875rem;
    vertical-align: middle;
}

.loading-cell {
    text-align: center;
    padding: 60px 20px !important;
}

.spinner-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner-modern span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-main.expanded {
        margin-left: 0;
    }

    .btn-mobile-menu {
        display: block;
    }

    .page-title h1 {
        font-size: 1.4rem;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .channel-filter-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }

    .header-left {
        width: 100%;
    }

    .header-right {
        width: 100%;
    }

    .date-filter-container {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

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

    .date-input {
        min-width: unset;
        width: 100%;
    }

    .btn-apply-filter {
        flex: 1;
    }

    .btn-reset-filter {
        padding: 10px;
    }

    .dashboard-content {
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .stat-card-modern {
        padding: 16px;
        gap: 12px;
    }

    .stat-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .stat-icon-wrapper i {
        font-size: 22px;
        width: 44px;
        height: 44px;
    }

    .stat-icon-bg {
        border-radius: 12px;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .channel-filter-group {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-channel-filter {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .card-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   UPLOAD PAGE - MATERIAL DESIGN
   ============================================ */

.btn-secondary-modern {
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary-modern:hover {
    border-color: #667eea;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.05) 0%,
        rgba(118, 75, 162, 0.05) 100%
    );
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.btn-secondary-modern i {
    font-size: 1.1em;
}

.upload-form {
    max-width: 100%;
}

.form-group-modern {
    margin-bottom: 28px;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.form-label-modern i {
    color: #667eea;
    font-size: 1.1rem;
}

.form-control-modern {
    width: 100%;
    height: 52px;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-modern:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control-modern::placeholder {
    color: #adb5bd;
}

.form-helper-text {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* File Upload Area */
.file-upload-wrapper {
    position: relative;
}

.file-input-modern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-area {
    border: 2px dashed #d0d5dd;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 16px;
}

.file-upload-area h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.file-upload-area p {
    color: #6c757d;
    margin: 0 0 8px 0;
}

.file-upload-area .text-primary {
    color: #667eea !important;
    font-weight: 600;
    cursor: pointer;
}

.file-upload-area small {
    color: #9ca3af;
}

.file-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 12px;
}

.file-selected i {
    font-size: 24px;
    color: #667eea;
}

.file-selected span {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-remove-file:hover {
    background: rgba(220, 53, 69, 0.1);
}

.form-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.btn-large {
    height: 56px;
    font-size: 1.05rem;
}

/* CSV Format Info */
.format-description {
    color: #495057;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.code-highlight {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-family: "Courier New", monospace;
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.code-header span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    font-family: "Courier New", monospace;
}

.btn-copy {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #495057;
}

.btn-copy:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
}

.code-block code {
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    color: #1a1a1a;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .file-upload-area {
        padding: 32px 16px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .file-upload-area h4 {
        font-size: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* =====================================
   RESULTS PAGE (REPORT)
   ===================================== */

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.content-card p {
    margin-bottom: 12px;
    color: #495057;
}

.content-card p strong {
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 8px;
}

.progress {
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9ecef;
    height: 24px;
}

.progress-bar {
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s ease;
}

/* Badge Styles */
.badge-modern {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20873a 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.status-completed {
    background: linear-gradient(135deg, #28a745 0%, #20873a 100%);
    color: white;
}

.status-processing {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.status-failed {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.clickable-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-row:hover {
    background: rgba(102, 126, 234, 0.05) !important;
}

/* Upload Details Section */
.upload-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detail-item {
    background: white;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.detail-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-item-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-item-label i {
    font-size: 0.875rem;
}

.detail-item-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.detail-item-value.success {
    color: #10b981;
}

.detail-item-value.danger {
    color: #ef4444;
}

.detail-item-value.info {
    color: #667eea;
}

.detail-item-value.warning {
    color: #f59e0b;
}

.detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-header h3 i {
    color: #667eea;
    font-size: 1.25rem;
}

/* Results Table Enhancements */
.table-modern thead th {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%
    );
    color: #1e293b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 16px;
}

.table-modern tbody td {
    padding: 16px;
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
    transform: translateX(2px);
}

.table-modern .badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern .bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white;
}

.table-modern .bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white;
}

/* =====================================
   PROVIDERS PAGE
   ===================================== */

.provider-section {
    margin-bottom: 48px;
}

.provider-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.provider-section h2 i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%
    );
    color: #667eea;
}

.provider-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.provider-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.provider-card.active {
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
}

.provider-card.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.provider-card:not(.active) {
    opacity: 0.7;
}

.provider-card:not(.active):hover {
    opacity: 1;
}

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

.provider-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.provider-card .badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.provider-card .badge i {
    font-size: 0.85em;
}

.provider-card .badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.provider-card .badge-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.provider-card .provider-description {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 14px;
    min-height: 44px;
}

.provider-card .provider-id {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Courier New", monospace;
    font-size: 0.8rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.provider-card .provider-id i {
    font-size: 0.95em;
}

.info-box {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.08) 0%,
        rgba(118, 75, 162, 0.08) 100%
    );
    border-left: 4px solid #667eea;
    border-radius: 16px;
    padding: 28px;
    margin-top: 40px;
}

.info-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box h3 i {
    color: #667eea;
    font-size: 1.3rem;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 8px;
}

.info-box strong {
    color: #1e293b;
    font-weight: 600;
}

.info-box ul {
    margin: 0;
    padding-left: 24px;
}

.info-box li {
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-box strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* =====================================
   USERS PAGE
   ===================================== */

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
}

.table-modern .btn-group {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.btn-icon i {
    font-size: 1rem;
}

.btn-icon.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-icon.btn-warning:hover {
    background: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-icon.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-icon.btn-danger:hover {
    background: #bb2d3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#paginationContainer {
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

#paginationInfo {
    color: #6c757d;
    font-size: 0.9rem;
}

.pagination {
    gap: 8px;
}

.pagination .page-item .page-link {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    border: none;
}

.modal-header h5 {
    font-weight: 600;
}

.modal-header .btn-close {
    opacity: 0.8;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
}

.form-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-check-input {
    width: 48px;
    height: 24px;
    cursor: pointer;
    border-radius: 24px;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    margin-left: 8px;
    cursor: pointer;
}

/* =====================================
   LOGOUT PAGE
   ===================================== */

.logout-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
}

.logout-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    animation: pulse 2s infinite;
}

.logout-icon i {
    font-size: 60px;
    color: white;
}

.logout-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.logout-content p {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 32px;
}

.logout-spinner {
    display: flex;
    justify-content: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================
   RESPONSIVE
   ===================================== */

@media (max-width: 992px) {
    .provider-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .provider-list {
        grid-template-columns: 1fr;
    }

    .provider-section h2 {
        font-size: 1.25rem;
    }

    .logout-icon {
        width: 100px;
        height: 100px;
    }

    .logout-icon i {
        font-size: 48px;
    }

    .logout-content h2 {
        font-size: 1.5rem;
    }

    .logout-content p {
        font-size: 1rem;
    }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-slide-in {
    animation: slideInDown 0.4s ease-out forwards;
}

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

/* ============================================
   FILTER DROPDOWNS & SEARCH
   ============================================ */

.filter-group-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.filter-dropdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.filter-dropdown label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.filter-dropdown .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #1e293b;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-dropdown .form-select:hover {
    border-color: #667eea;
}

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

#resetFilters {
    height: 38px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

#resetFilters:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.search-container input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* Custom Reset Button */
.btn-reset-custom {
    background: white !important;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease;
}

.btn-reset-custom:hover {
    background: #f9fafb !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.btn-reset-custom:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.btn-export-green {
    background: #16a34a !important;
    color: white !important;
    border: 1px solid #16a34a !important;
    transition: all 0.2s ease;
}

.btn-export-green:hover {
    background: #15803d !important;
    border-color: #15803d !important;
    color: white !important;
}

.btn-export-green:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25) !important;
    color: white !important;
}

/* Light background utilities for stat cards */
.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.15) !important;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-info-light {
    background-color: rgba(13, 202, 240, 0.15) !important;
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1) !important;
}
