/* School Canteen Management System - Main Styles */

/* Loading Animation - Handled by includes/page-loader.php */

:root {
    --primary-color: #f39c12;
    --secondary-color: #e67e22;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --border-color: #e2e8f0;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
}

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

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

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-header h3 {
    font-size: 1.5rem;
    transform: rotate(0deg);
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    visibility: hidden;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

.sidebar.collapsed .nav-badge {
    opacity: 0;
    visibility: hidden;
}

.sidebar.collapsed .nav-item a {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav {
    padding: 1rem 0;
}

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

.nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item {
    margin: 0.25rem 0.5rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    font-weight: 500;
}

.nav-item a:hover {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.1));
    color: var(--primary-color);
    transform: translateX(2px);
}

.nav-item a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    transform: translateX(4px);
}

.nav-item a.active::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-text {
    flex: 1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-badge {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: auto;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

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

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .nav-item {
    position: relative;
}

.sidebar.collapsed .nav-item a::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    z-index: 1001;
}

.sidebar.collapsed .nav-item a:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Enhanced main content adjustment */
.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Smooth transitions for all sidebar elements */
.sidebar * {
    transition: all 0.3s ease;
}

/* Better mobile responsive behavior */
@media (max-width: 1200px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
    }

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

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

    .sidebar.collapsed .nav-item a::after {
        display: none;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Header */
.top-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--bg-secondary);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-info:hover {
    background-color: var(--border-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

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

.stats-card-modern {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stats-card-modern .stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.stats-card-modern .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stats-card-modern .stats-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .top-header {
        padding: 0 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }
}

/* Authentication Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.auth-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Registration specific styles */
.registration-tabs {
    display: flex;
    margin-bottom: 2rem;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

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

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
}

.file-upload-label.has-file {
    border-color: var(--success-color);
    background-color: #d4edda;
}

/* User Management Styles */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.8;
}

.stat-card.pending .stat-icon { color: var(--warning-color); }
.stat-card.active .stat-icon { color: var(--success-color); }
.stat-card.inactive .stat-icon { color: var(--text-secondary); }
.stat-card.total .stat-icon { color: var(--primary-color); }

.stat-content .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-content .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.action-bar {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.action-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    width: 250px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.btn-create-vendor {
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-create-vendor:hover {
    background: #219a52;
    color: white;
    transform: translateY(-1px);
}

.users-container {
    min-height: 400px;
}

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

.user-card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.user-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.user-type-badge, .user-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-type-badge.student { background: #e3f2fd; color: #1976d2; }
.user-type-badge.staff { background: #f3e5f5; color: #7b1fa2; }
.user-type-badge.vendor { background: #e8f5e8; color: #388e3c; }
.user-type-badge.admin { background: #fff3e0; color: #f57c00; }

.user-status-badge.pending { background: #fff8e1; color: #f57f17; }
.user-status-badge.active { background: #e8f5e8; color: #2e7d32; }
.user-status-badge.inactive { background: #fafafa; color: #616161; }
.user-status-badge.rejected { background: #ffebee; color: #c62828; }

.user-card-body {
    padding: 1.5rem;
}

.user-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.join-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-card-actions {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.action-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-approve, .btn-reject, .btn-activate, .btn-deactivate, .btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-approve:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.btn-reject {
    background: var(--danger-color);
    color: white;
}

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

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

.btn-activate:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.btn-deactivate {
    background: var(--warning-color);
    color: var(--dark-color);
}

.btn-deactivate:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-delete,
.action-form .btn-delete,
button.btn-delete {
    background: #dc2626 !important;
    color: white !important;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-delete:hover,
.action-form .btn-delete:hover,
button.btn-delete:hover {
    background: #b91c1c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Responsive Design for User Management */
@media (max-width: 768px) {
    .user-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar-right {
        justify-content: space-between;
    }

    .search-input {
        width: 200px;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .user-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .user-badges {
        flex-direction: row;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .user-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-icon {
        font-size: 1.5rem;
    }

    .stat-content .stat-number {
        font-size: 1.5rem;
    }
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-icon {
    font-size: 1.2rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.modal-footer .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-create-vendor {
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-create-vendor:hover {
    background: #219a52;
    color: white;
    transform: translateY(-1px);
}

/* View User Modal Styles */
.btn-view-header {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(52, 152, 219, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 0.5rem;
}

.btn-view-header:hover {
    background: var(--info-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Minimalist Modal Design */
.user-details-container {
    padding: 0;
}

.modal-user-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.modal-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.modal-user-info {
    flex: 1;
}

.modal-user-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.modal-user-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.modal-badge.student { background: #eff6ff; color: #2563eb; }
.modal-badge.staff { background: #f0f9ff; color: #0ea5e9; }
.modal-badge.vendor { background: #f8fafc; color: #475569; }
.modal-badge.admin { background: #dbeafe; color: #1d4ed8; }

.modal-badge.pending { background: #fef3c7; color: #d97706; }
.modal-badge.active { background: #d1fae5; color: #059669; }
.modal-badge.inactive { background: #f1f5f9; color: #64748b; }
.modal-badge.rejected { background: #fee2e2; color: #dc2626; }

.modal-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-section {
    background: white;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #fafafa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row.full-width {
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 120px;
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
    flex: 1;
}

.info-row.full-width .info-value {
    text-align: left;
}

/* Attachment Styles */
.attachment-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.attachment-preview {
    flex-shrink: 0;
}

.attachment-preview-clickable {
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.attachment-preview-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.preview-image.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-image.clickable:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.preview-file {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    gap: 0.25rem;
}

.preview-file.pdf {
    background: #f8f9fa;
    color: #e74c3c;
    border: 1px solid #e0e0e0;
}

.preview-file.generic {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e0e0e0;
}

.preview-file span {
    font-size: 0.7rem;
    font-weight: 500;
}

.attachment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attachment-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: 0.25rem;
}

.attachment-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Full Size Image Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.image-modal-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.image-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

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

.image-modal-body {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.full-size-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for view modal */
@media (max-width: 768px) {
    .modal-user-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .modal-user-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .modal-user-name {
        font-size: 1.3rem;
    }

    .modal-user-meta {
        justify-content: center;
    }

    .info-row {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .info-label {
        min-width: auto;
        font-size: 0.8rem;
    }

    .info-value {
        text-align: left;
        font-size: 0.9rem;
    }

    .attachment-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .attachment-details {
        align-items: center;
    }
}

/* Modern Login Page Styles */
.login-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

.login-container-simple {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
}

/* Left Side - Brand & Features */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.03"/><circle cx="20" cy="60" r="0.5" fill="white" opacity="0.03"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.login-brand {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-icon svg {
    color: white;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 400;
}

.login-features {
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.feature-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Simple Login Form Container */
.login-form-container {
    width: 100%;
    max-width: 520px;
    background: white;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* Simple Brand Styles - Used in Registration Pages */
.login-brand-simple {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.brand-icon-simple {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.brand-icon-simple svg {
    color: white;
}

.brand-title-simple {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.brand-subtitle-simple {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Registration Form Container */
.register-form-container {
    width: 100%;
    max-width: 680px;
    background: white;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* Registration Form Styles */
.register-form {
    margin-bottom: 2rem;
}

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

.form-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
    display: block;
}

.register-success-actions {
    margin-top: 2rem;
}

/* Responsive for registration form */
@media (max-width: 768px) {
    .register-form-container {
        max-width: 520px;
        padding: 2.5rem;
    }

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

@media (max-width: 480px) {
    .register-form-container {
        padding: 2rem;
        border-radius: 16px;
    }
}

/* File Upload Styles */
.file-upload-modern {
    position: relative;
}

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

.file-upload-label-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-upload-label-modern:hover {
    border-color: #2563eb;
    background: #f8faff;
    color: #2563eb;
}

.file-input-modern:focus + .file-upload-label-modern {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Textarea Styles */
.form-input-modern[rows] {
    resize: vertical;
    min-height: 100px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    line-height: 1.5;
}

/* Select Styles */
.form-input-modern[type="select-one"],
select.form-input-modern {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6,9 12,15 18,9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* File Upload States */
.file-upload-modern.has-file .file-upload-label-modern {
    border-color: #10b981;
    background: #f0fdf4;
    color: #10b981;
}

/* Register Options */
.register-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.register-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    background: #fafafa;
}

.register-link:hover {
    border-color: #2563eb;
    background: #f8faff;
    color: #2563eb;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.register-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.register-text {
    flex: 1;
}

.register-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.register-text span {
    font-size: 0.875rem;
    color: #6b7280;
}

.register-link:hover .register-text span {
    color: #2563eb;
}

/* Alert Modern Styles */
.alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== MODERN DASHBOARD STYLES ===== */

/* Dashboard Body */
.dashboard-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    margin: 0;
    padding: 0;
    color: #1f2937;
    line-height: 1.6;
}

/* Dashboard Layout */
.dashboard-layout-modern {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Modern Sidebar */
.sidebar-modern {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-header-modern {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Hide close button on desktop */
.sidebar-close-btn {
    display: none;
}

.sidebar-brand-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-icon-modern {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.sidebar-title-modern h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.sidebar-title-modern span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
}

/* Sidebar Navigation */
.sidebar-nav-modern {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section-modern {
    margin-bottom: 2rem;
}

.nav-section-title-modern {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-item-modern {
    margin: 0.25rem 1rem;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link-modern:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.nav-link-modern.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.nav-link-modern.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2563eb;
    border-radius: 0 2px 2px 0;
}

.nav-icon-modern {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-text-modern {
    flex: 1;
}

.nav-badge-modern {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Main Content */
.main-content-modern {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header */
.top-header-modern {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.sidebar-toggle-modern {
    display: none;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.sidebar-toggle-modern:hover {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-toggle-modern:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.page-header-modern {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.page-subtitle-modern {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

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

.user-menu-modern {
    position: relative;
}

.user-info-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-info-modern:hover {
    background: #f3f4f6;
}

.user-avatar-modern {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-details-modern {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name-modern {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.user-role-modern {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

/* Dashboard Content */
.dashboard-content-modern {
    flex: 1;
    padding: 2rem;
    background: #f8fafc;
}

/* Welcome Section */
.welcome-section-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-content-modern {
    flex: 1;
}

.welcome-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.welcome-subtitle-modern {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.welcome-icon-modern {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

/* Stats Grid */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Modern Stats Cards */
.stats-card-new {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.stats-icon-new {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stats-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.stats-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.stats-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.stats-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.stats-content-new {
    flex: 1;
}

.stats-number-new {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.stats-label-new {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* Responsive Design for Modern Dashboard */
@media (max-width: 1024px) {
    .sidebar-modern {
        width: 260px;
    }

    .main-content-modern {
        margin-left: 260px;
    }

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

@media (max-width: 768px) {
    .sidebar-modern {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        background: white !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
    }

    .sidebar-modern.mobile-open {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ensure sidebar content is visible */
    .sidebar-modern .sidebar-nav-modern {
        display: block !important;
        visibility: visible !important;
    }

    .sidebar-modern .nav-item-modern {
        display: block !important;
        visibility: visible !important;
    }

    .sidebar-modern .sidebar-header-modern {
        display: block !important;
        visibility: visible !important;
    }

    /* Force sidebar to be visible when mobile-open */
    .sidebar-modern.mobile-open * {
        visibility: visible !important;
    }

    /* Ultra-specific rule to override any conflicts */
    body .sidebar-modern.mobile-open {
        transform: translateX(0) !important;
        left: 0 !important;
    }

    /* Even more specific */
    html body .dashboard-layout-modern .sidebar-modern.mobile-open {
        transform: translateX(0) !important;
        left: 0 !important;
    }

    /* Sidebar close button - hide in mobile view */
    .sidebar-close-btn {
        display: none !important;
    }

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

    .sidebar-toggle-modern {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative !important;
        z-index: 9999 !important;       /* Ensure it's on top */
        pointer-events: auto !important; /* Ensure it's clickable */
    }

    .top-header-modern {
        padding: 1rem 1.5rem;
    }

    .header-left-modern {
        gap: 1rem;
    }

    .page-title-modern {
        font-size: 1.5rem;
    }

    .dashboard-content-modern {
        padding: 1.5rem;
    }

    .welcome-section-modern {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .user-details-modern {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-header-modern {
        padding: 1rem;
    }

    .dashboard-content-modern {
        padding: 1rem;
    }

    .welcome-section-modern {
        padding: 1rem;
        border-radius: 12px;
    }

    .welcome-title-modern {
        font-size: 1.25rem;
    }

    .stats-card-new {
        padding: 1rem;
        border-radius: 12px;
    }

    .stats-number-new {
        font-size: 1.75rem;
    }

    .sidebar-header-modern {
        padding: 1.5rem 1rem;
    }

    .sidebar-brand-modern {
        gap: 0.75rem;
    }

    .sidebar-icon-modern {
        width: 40px;
        height: 40px;
    }

    .sidebar-title-modern h3 {
        font-size: 1.1rem;
    }

    /* Hide sidebar brand icon in mobile view */
    .sidebar-icon-modern {
        display: none;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation for smooth transitions */
.stats-card-new {
    animation: fadeInUp 0.6s ease forwards;
}

.stats-card-new:nth-child(1) { animation-delay: 0.1s; }
.stats-card-new:nth-child(2) { animation-delay: 0.2s; }
.stats-card-new:nth-child(3) { animation-delay: 0.3s; }
.stats-card-new:nth-child(4) { animation-delay: 0.4s; }

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

/* ===== USER MANAGEMENT MODERN STYLES ===== */

/* Alert Close Button */
.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Action Bar Modern */
.action-bar-modern {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.action-bar-left-modern {
    flex: 1;
}

.action-bar-right-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Filter Tabs Modern */
.filter-tabs-modern {
    display: flex;
    gap: 0.5rem;
}

.filter-tab-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab-modern:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #374151;
}

.filter-tab-modern.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.filter-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.filter-tab-modern:not(.active) .filter-badge {
    background: #ef4444;
    color: white;
}

/* Search Box Modern */
.search-box-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-modern {
    width: 280px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #1f2937;
    transition: all 0.2s ease;
}

.search-input-modern:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon-modern {
    position: absolute;
    left: 0.75rem;
    color: #9ca3af;
    pointer-events: none;
}

/* Create Vendor Button Modern */
.btn-create-vendor-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-create-vendor-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

/* Users Container Modern */
.users-container-modern {
    background: transparent;
}

/* Empty State Modern */
.empty-state-modern {
    background: white;
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.empty-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    color: #9ca3af;
}

.empty-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.empty-subtitle-modern {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 2rem 0;
}

/* Users Grid Modern */
.users-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

/* User Card Modern */
.user-card-modern {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.user-card-header-modern {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.user-avatar-card-modern {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-info-card-modern {
    flex: 1;
    min-width: 0;
}

.user-name-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.user-email-modern {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    word-break: break-word;
}

.user-badges-modern {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-type-badge-modern,
.user-status-badge-modern {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.user-type-badge-modern.student {
    background: #dbeafe;
    color: #1d4ed8;
}

.user-type-badge-modern.staff {
    background: #d1fae5;
    color: #059669;
}

.user-type-badge-modern.vendor {
    background: #fef3c7;
    color: #d97706;
}

.user-type-badge-modern.admin {
    background: #fce7f3;
    color: #be185d;
}

.user-status-badge-modern.active {
    background: #d1fae5;
    color: #059669;
}

.user-status-badge-modern.pending {
    background: #fef3c7;
    color: #d97706;
}

.user-status-badge-modern.inactive {
    background: #fee2e2;
    color: #dc2626;
}

.user-actions-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.btn-view-modern {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-modern:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

/* Responsive for User Management */
@media (max-width: 1024px) {
    .users-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1rem;
    }

    .dashboard-content-modern {
        padding: 1rem;
    }

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

@media (max-width: 768px) {
    .users-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-content-modern {
        padding: 0.75rem;
    }

    .stats-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .stats-card-new {
        padding: 1rem;
    }

    .stats-number-new {
        font-size: 1.5rem;
    }

    .user-card-modern {
        padding: 1rem;
    }

    .user-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .user-name-modern {
        font-size: 1rem;
    }

    .user-actions-modern {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .user-actions-modern button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .top-header-modern {
        padding: 1rem;
    }

    .page-title-modern {
        font-size: 1.25rem;
    }

    .page-subtitle-modern {
        font-size: 0.875rem;
    }

    .search-container-modern {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input-modern {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .dashboard-content-modern {
        padding: 0.5rem;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
    }

    .user-card-modern {
        padding: 0.75rem;
    }

    .user-name-modern {
        font-size: 0.9rem;
    }

    .user-actions-modern button {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    .top-header-modern {
        padding: 0.75rem;
    }

    .page-title-modern {
        font-size: 1.1rem;
    }
}

/* Responsive for Health Rankings */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .rankings-table {
        margin: 1rem 0;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rankings-table table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    .table-header {
        padding: 1rem;
    }

    .table-title {
        font-size: 1.25rem;
    }

    .table-subtitle {
        font-size: 0.875rem;
    }

    .rankings-table table {
        min-width: 700px;
        font-size: 0.875rem;
    }

    .rankings-table th,
    .rankings-table td {
        padding: 0.5rem 0.25rem;
    }

    .user-info h5 {
        font-size: 0.9rem;
    }

    .user-info small {
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .table-header {
        padding: 0.75rem;
    }

    .table-title {
        font-size: 1.1rem;
    }

    .rankings-table table {
        min-width: 600px;
        font-size: 0.8rem;
    }

    .rankings-table th,
    .rankings-table td {
        padding: 0.4rem 0.2rem;
    }
}

/* Responsive for Admin Profile */
@media (max-width: 1024px) {
    .profile-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

@media (max-width: 768px) {
    .profile-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

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

    .card-title {
        font-size: 1.1rem;
    }

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

    .profile-header-card {
        padding: 2rem 1rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-type {
        font-size: 0.9rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

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

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-label {
        text-align: left;
    }

    .info-value {
        text-align: left;
    }

    .quick-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

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

@media (max-width: 480px) {
    .profile-card {
        padding: 1rem;
    }

    .profile-header-card {
        padding: 1.5rem 0.75rem;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-header {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

    .action-bar-modern {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .action-bar-right-modern {
        justify-content: space-between;
    }

    .search-input-modern {
        width: 240px;
    }
}

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

    .filter-tabs-modern {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .action-bar-right-modern {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input-modern {
        width: 100%;
    }

    .user-card-header-modern {
        padding: 1rem;
    }

    .empty-state-modern {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .action-bar-modern {
        padding: 1rem;
        border-radius: 12px;
    }

    .filter-tab-modern {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .user-card-modern {
        border-radius: 12px;
    }

    .user-card-header-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .user-actions-modern {
        align-self: stretch;
        justify-content: center;
    }
}

/* ===== SWEETALERT MODERN STYLES ===== */

/* SweetAlert Custom Styling */
.swal-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
}

.swal-title-modern {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
}

.swal-content-modern {
    font-size: 1rem !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
}

.swal-button-modern {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

.swal-button-modern:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* SweetAlert Success Styling - Clean Implementation */
.swal2-success .swal2-success-ring {
    border-color: #10b981 !important;
    width: 80px !important;
    height: 80px !important;
    border: 4px solid #10b981 !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: -4px !important;
    left: -4px !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

.swal2-success .swal2-success-fix {
    display: none !important;
}

.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}

/* Enhanced Success Icon Styling */
.swal2-success {
    border-color: #10b981 !important;
    background-color: transparent !important;
}

.swal2-success .swal2-success-circular-line-left,
.swal2-success .swal2-success-circular-line-right {
    display: none !important;
}

.swal2-success .swal2-success-line-tip,
.swal2-success .swal2-success-line-long {
    background-color: #10b981 !important;
    border-radius: 2px !important;
}

/* Clean icon background */
.swal2-success::before,
.swal2-success::after {
    display: none !important;
}

.swal2-icon.swal2-success {
    border: 4px solid #10b981 !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    margin: 20px auto 30px !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide default SweetAlert2 checkmark lines */
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    display: none !important;
}

/* Create custom checkmark using pseudo-elements */
.swal2-icon.swal2-success::after {
    content: '' !important;
    display: block !important;
    width: 16px !important;
    height: 28px !important;
    border: solid #10b981 !important;
    border-width: 0 4px 4px 0 !important;
    transform: rotate(45deg) !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -18px !important;
    margin-left: -6px !important;
    z-index: 2 !important;
}

/* Hide all default SweetAlert2 success elements */
.swal2-success .swal2-success-ring,
.swal2-success .swal2-success-fix,
.swal2-success .swal2-success-circular-line-left,
.swal2-success .swal2-success-circular-line-right,
.swal2-success [class*='swal2-success-line'] {
    display: none !important;
}

/* SweetAlert Error Styling */
.swal2-error .swal2-x-mark {
    border-color: #ef4444 !important;
}

.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

/* SweetAlert Info Styling */
.swal2-info .swal2-info-ring {
    border-color: #2563eb !important;
}

.swal2-info .swal2-info-fix {
    background-color: #2563eb !important;
}

/* SweetAlert Warning Styling */
.swal2-warning .swal2-warning-ring {
    border-color: #f59e0b !important;
}

.swal2-warning .swal2-warning-fix {
    background-color: #f59e0b !important;
}

/* SweetAlert Backdrop */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.4) !important;
}

.swal2-backdrop-hide {
    background: rgba(0, 0, 0, 0) !important;
}

/* SweetAlert Container */
.swal2-container {
    z-index: 10000 !important;
}

.swal2-popup {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Fix for icon display issues */
.swal2-icon {
    margin: 20px auto 30px !important;
    width: 80px !important;
    height: 80px !important;
    border: none !important;
    border-radius: 50% !important;
    position: relative !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    align-items: center !important;
}

.swal2-icon::before {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: transparent !important;
}

/* SweetAlert Animation */
.swal2-show {
    animation: swal2-show 0.3s ease-out !important;
}

.swal2-hide {
    animation: swal2-hide 0.15s ease-in !important;
}

/* Success Icon Animation */
.swal2-success.swal2-icon-show::after {
    animation: swal2-checkmark-appear 0.6s ease-out !important;
}

@keyframes swal2-checkmark-appear {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}



@keyframes swal2-show {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes swal2-hide {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .brand-icon-simple {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

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

/* Modern Alerts */
.alert-modern {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.alert-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Modern Form Styles */
.login-form {
    margin-bottom: 2rem;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-container {
    position: relative;
    transition: all 0.3s ease;
}

.input-container.focused {
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
    z-index: 2;
}

.input-container.focused .input-icon {
    color: #2563eb;
}

.form-input-modern {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input-modern:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input-modern::placeholder {
    color: #9ca3af;
}

/* Modern Button */
.btn-modern {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-modern {
    background: #2563eb;
    color: white;
}

.btn-primary-modern:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

/* Divider */
.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.login-divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    position: relative;
}

/* Register Options */
.register-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.register-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    background: #fafafa;
}

.register-link:hover {
    border-color: #2563eb;
    background: #f8faff;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.register-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.register-text {
    display: flex;
    flex-direction: column;
}

.register-text strong {
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.register-text span {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Demo Info */
.demo-info {
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 1rem;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.875rem;
}

.demo-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-item {
    font-size: 0.875rem;
    color: #4b5563;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Responsive Design for Simple Login */
@media (max-width: 768px) {
    .login-container-simple {
        padding: 1rem;
    }

    .login-form-container {
        padding: 2rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .brand-title-simple {
        font-size: 1.5rem;
    }

    .brand-icon-simple {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .login-container-simple {
        padding: 0.5rem;
    }

    .login-form-container {
        padding: 1.5rem;
        border-radius: 12px;
        margin: 0;
    }

    .brand-title-simple {
        font-size: 1.25rem;
    }

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

    .register-options {
        flex-direction: column;
    }
}
