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

:root {
    --bg-primary: #1a1d29;
    --bg-secondary: #252936;
    --bg-tertiary: #2d3142;
    --bg-card: #2a2e3e;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d94;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --danger-color: #ef4444;
    --border-color: #3a3f52;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f9fafb;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --danger-color: #ef4444;
    --border-color: #e5e7eb;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

[data-theme="light"] .sidebar-title {
    color: #1f2937;
}

[data-theme="light"] .nav-item {
    color: #374151;
}

[data-theme="light"] .nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #1f2937;
}

[data-theme="light"] .nav-item.active {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

[data-theme="light"] .nav-section-title {
    color: #6b7280;
}

[data-theme="light"] .user-email {
    color: #1f2937;
}

[data-theme="light"] .main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

[data-theme="light"] .main-header::before {
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #4facfe 75%, 
        #00f2fe 100%);
    opacity: 0.6;
}

[data-theme="light"] .main-header .header-username {
    color: #1f2937;
    background: rgba(31, 41, 55, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

[data-theme="light"] .main-header .header-username:hover {
    background: rgba(31, 41, 55, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .main-header .header-icon {
    background: rgba(31, 41, 55, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

[data-theme="light"] .main-header .header-icon:hover {
    background: rgba(31, 41, 55, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .main-header .theme-toggle-btn {
    background: rgba(31, 41, 55, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

[data-theme="light"] .main-header .theme-toggle-btn:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
}

[data-theme="light"] .main-header .header-dropdown {
    color: #1f2937;
    background: rgba(31, 41, 55, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

[data-theme="light"] .main-header .header-dropdown:hover {
    background: rgba(31, 41, 55, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #1f2937;
}

[data-theme="light"] .main-header .header-notification {
    background: rgba(31, 41, 55, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

[data-theme="light"] .main-header .header-notification:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

[data-theme="light"] .main-header .header-logout {
    color: #1f2937;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .main-header .header-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #1f2937;
}

[data-theme="light"] .main-header .sidebar-toggle {
    background: rgba(31, 41, 55, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.8);
    color: #1f2937;
}

[data-theme="light"] .main-header .sidebar-toggle:hover {
    background: rgba(31, 41, 55, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #1f2937;
}

[data-theme="light"] .main-content {
    background: #f5f7fa;
}

[data-theme="light"] .card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .card-title {
    color: #1f2937;
}

[data-theme="light"] .card-value {
    color: #1f2937;
}

[data-theme="light"] .page-title {
    color: #1f2937;
}

[data-theme="light"] .page-description {
    color: #6b7280;
}

[data-theme="light"] .table {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .table th {
    background: #f9fafb;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="light"] .table td {
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
}

[data-theme="light"] .btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    background: #2563eb;
}

[data-theme="light"] .search-input,
[data-theme="light"] .filter-select {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

[data-theme="light"] .search-input:focus,
[data-theme="light"] .filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

/* Login Page - Ultra Modern & Trendy */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(79, 172, 254, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(42, 46, 62, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 50px 45px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe, #00f2fe, #667eea);
    background-size: 300% 100%;
    animation: shimmer 4s linear infinite;
}

.login-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

.login-logo {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 
        0 15px 40px rgba(220, 38, 38, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 2px rgba(220, 38, 38, 0.2);
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-circle::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, #dc2626, #991b1b, #7f1d1d);
    z-index: -1;
    opacity: 0.6;
    filter: blur(15px);
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

.logo-text {
    color: #ffffff;
    font-weight: 900;
    font-size: 28px;
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    animation: titleShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-subtitle {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}

.form-group input {
    width: 100%;
    padding: 18px 22px;
    background: rgba(45, 49, 66, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(45, 49, 66, 0.8);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(45, 49, 66, 0.9);
    box-shadow: 
        0 0 0 5px rgba(99, 102, 241, 0.2),
        0 8px 25px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.01);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, 
        var(--accent-blue) 0%, 
        #8b5cf6 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, 
        #2563eb 0%, 
        #7c3aed 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
}

.btn-create {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-block {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 14px;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.forgot-password:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.forgot-password:hover::after {
    width: 80%;
}

/* Light theme për login */
[data-theme="light"] .login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
}

[data-theme="light"] .login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .login-title {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .login-subtitle {
    color: rgba(31, 41, 55, 0.8);
}

[data-theme="light"] .form-group label {
    color: rgba(31, 41, 55, 0.95);
}

[data-theme="light"] .form-group input {
    background: rgba(249, 250, 251, 0.9);
    border: 2px solid rgba(229, 231, 235, 0.8);
    color: #1f2937;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .form-group input::placeholder {
    color: rgba(107, 114, 128, 0.6);
}

[data-theme="light"] .form-group input:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .form-group input:focus {
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 5px rgba(99, 102, 241, 0.15),
        0 8px 25px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .forgot-password {
    color: rgba(31, 41, 55, 0.9);
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

[data-theme="light"] .forgot-password:hover {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
}

.alert {
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.8;
}

.alert-success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.alert-error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(239, 68, 68, 0.08) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-warning {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.15) 0%, 
        rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.alert-icon {
    font-size: 18px;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1f2329;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    left: 0;
    top: 0;
    will-change: transform;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

/* Overlay për mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.open ~ .sidebar-overlay {
        display: block;
        opacity: 1;
    }
}

.sidebar-header {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    flex-shrink: 0;
}

.sidebar-header > div:first-child {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    line-height: 1;
    font-weight: 700;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.sidebar-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.sidebar-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.4),
        0 0 0 2px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar-toggle:active {
    transform: translateY(-1px) scale(1.02);
}

.sidebar-toggle:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.main-header .sidebar-toggle {
    margin-right: 0;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.nav-section {
    margin-bottom: 24px;
    padding: 0 12px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 8px;
    margin-bottom: 8px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 400;
    margin: 1px 0;
    border-radius: 6px;
    margin-left: 0;
    margin-right: 0;
}

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

.nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-left-color: #3b82f6;
    font-weight: 500;
}

.nav-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    margin-top: auto;
    flex-shrink: 0;
}

.user-info {
    text-align: center;
}

.user-email {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 13px;
}

.user-role {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--bg-primary);
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 260px);
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    width: 1px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
    pointer-events: none;
    transition: left 0.3s ease;
}

.sidebar.collapsed ~ .main-content::before {
    left: 0;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 0;
    width: 100%;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.main-header {
    background: rgba(30, 33, 41, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #4facfe 75%, 
        #00f2fe 100%);
    background-size: 300% 100%;
    animation: shimmer 4s linear infinite;
    opacity: 0.8;
}

.main-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.content-wrapper {
    padding: 30px;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

/* Statistics Cards - Modern & Trendy */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, 
        var(--bg-card) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-blue) 0%, 
        #8b5cf6 50%, 
        var(--accent-blue) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Report Cards */
.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.report-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.report-card:hover::after {
    left: 100%;
}

.report-card:active {
    transform: translateY(-3px);
}

/* User Table Row Hover Effects */
.user-row {
    transition: all 0.2s ease;
}

.user-row:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05)) !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-row td {
    transition: all 0.2s ease;
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.stat-description {
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Charts - Modern & Trendy */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background: linear-gradient(135deg, 
        var(--bg-card) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.1) 0%, 
        transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.chart-card canvas {
    max-height: 300px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Table - Modern & Trendy Design */
.table-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent-blue) 0%, 
        #8b5cf6 50%, 
        var(--accent-blue) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

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

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--bg-tertiary);
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-blue), #8b5cf6);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(139, 92, 246, 0.1) 100%);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.data-table th:first-child {
    border-top-left-radius: 12px;
}

.data-table th:last-child {
    border-top-right-radius: 12px;
}

.data-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-blue) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-table thead:hover th::after {
    opacity: 1;
}

.data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.data-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.data-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        var(--accent-blue) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    transform: translateX(4px);
    box-shadow: -4px 0 12px rgba(59, 130, 246, 0.2);
}

.data-table tbody tr:hover::before {
    opacity: 1;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.data-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.empty-table-message {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        transparent 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.empty-table-message::before {
    content: '📋';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.status-badge:hover::before {
    left: 100%;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-registered {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-transit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-delivered {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.status-active::after {
    content: '●';
    font-size: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    padding: 10px 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-width: 40px;
    min-height: 40px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.action-btn:hover::before {
    width: 200%;
    height: 200%;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.action-edit {
    color: #fbbf24;
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.15) 0%, 
        rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.action-edit:hover {
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.25) 0%, 
        rgba(251, 191, 36, 0.15) 100%);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.action-delete {
    color: #f87171;
    background: linear-gradient(135deg, 
        rgba(248, 113, 113, 0.15) 0%, 
        rgba(248, 113, 113, 0.05) 100%);
    border-color: rgba(248, 113, 113, 0.3);
}

.action-delete:hover {
    background: linear-gradient(135deg, 
        rgba(248, 113, 113, 0.25) 0%, 
        rgba(248, 113, 113, 0.15) 100%);
    box-shadow: 0 8px 20px rgba(248, 113, 113, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* Header Styles */
.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.header-username {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.header-username:hover::before {
    left: 100%;
}

.header-username:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.header-icon {
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    position: relative;
    overflow: hidden;
}

.header-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.header-icon:hover::before {
    width: 100%;
    height: 100%;
}

.header-icon:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(102, 126, 234, 0.3);
}

.header-icon:active {
    transform: translateY(-1px) scale(1.05);
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.theme-toggle-btn:hover::before {
    width: 100%;
    height: 100%;
}

.theme-toggle-btn:hover {
    transform: translateY(-3px) rotate(15deg) scale(1.1);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 
        0 8px 20px rgba(255, 193, 7, 0.3),
        0 0 0 2px rgba(255, 193, 7, 0.2);
}

.theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1) rotate(15deg);
}

.header-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

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

.header-dropdown:hover::before {
    left: 100%;
}

.header-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.header-dropdown:hover .dropdown-arrow {
    transform: translateY(2px);
}

.header-notification {
    position: relative;
    cursor: pointer;
}

.notification-icon {
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

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

.header-logout:hover::before {
    left: 100%;
}

.header-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(239, 68, 68, 0.4),
        0 0 0 2px rgba(239, 68, 68, 0.2);
}

.header-logout:active {
    transform: translateY(0);
}

.logout-icon {
    font-size: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Sidebar Footer User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

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

/* Page Header Section */
.page-header-section {
    margin-bottom: 32px;
    position: relative;
}

.page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.page-header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent);
    animation: slide 3s ease-in-out infinite;
}

@keyframes slide {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--accent-blue) 50%,
        #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.title-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.title-icon {
    font-size: 24px;
}

.page-description {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-create {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-icon {
    font-size: 18px;
    font-weight: 600;
}

/* Section Header */
.section-header {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        transparent 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.1) 0%, 
        transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    position: relative;
    z-index: 1;
}

.section-icon {
    font-size: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Empty Table Message */
.empty-table-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Filters Section */
.filters-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-box {
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.search-input::placeholder {
    color: var(--text-muted);
}

.filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 12px 16px;
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    backdrop-filter: blur(10px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 4px 12px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    transform: translateY(-1px);
}

.filter-select:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(59, 130, 246, 0.03) 100%);
}

/* Products Summary */
.products-summary {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.products-summary::before {
    content: '📊';
    font-size: 16px;
    opacity: 0.7;
}

/* Table Icon */
.table-icon {
    font-size: 16px;
    color: var(--text-muted);
    display: inline-block;
}

/* QR Scan Container */
.qr-scan-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.qr-scanner-panel,
.product-details-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.scanner-area {
    flex: 1;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.scanner-area #qr-reader {
    width: 100%;
    height: 100%;
}

.scanner-area #qr-reader__dashboard {
    display: none;
}

.scanner-area #qr-reader__camera_selection {
    display: none;
}

.btn-scan-start {
    width: 100%;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-scan-start.scanning {
    background: var(--accent-red);
}

.btn-scan-start.scanning:hover {
    background: #dc2626;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.error-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.empty-product-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 10px 0;
}

.camera-icon-large {
    font-size: 80px;
    opacity: 0.3;
}

.btn-scan-start {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.empty-product-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.warning-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-message {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 300px;
}

.product-details-panel .product-details-card {
    width: 100%;
}

.product-details-panel .product-info-card,
.product-details-panel .transfer-history-card {
    margin-bottom: 20px;
}

.product-details-panel .tracking-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive for QR Scan */
@media (max-width: 1024px) {
    .qr-scan-container {
        grid-template-columns: 1fr;
    }
}

/* Warehouse Controls */
.warehouse-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.warehouse-search-box {
    flex: 1;
    min-width: 300px;
}

.search-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.warehouse-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Warehouse Grid */
.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.warehouse-card {
    background: linear-gradient(135deg, 
        var(--bg-card) 0%, 
        rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.warehouse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent-blue) 0%, 
        #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.warehouse-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

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

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

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

.warehouse-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    margin-right: 12px;
}

.warehouse-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.location-icon {
    font-size: 16px;
}

.warehouse-capacity {
    margin-bottom: 20px;
}

.capacity-info {
    margin-bottom: 8px;
}

.capacity-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.warehouse-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.empty-warehouse-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Transfer Actions Bar */
.transfer-actions-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action-large {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Transfer Empty State */
.transfer-empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    margin-top: 40px;
}

.empty-state-icon-large {
    font-size: 100px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state-description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-create-large {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Alarm Stats Grid */
.alarm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.alarm-stat-card {
    background: linear-gradient(135deg, 
        var(--bg-card) 0%, 
        rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.alarm-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-red) 0%, 
        var(--accent-orange) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alarm-stat-card.alarm-critical {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(239, 68, 68, 0.05) 100%);
}

.alarm-stat-card.alarm-critical::before {
    opacity: 1;
    background: linear-gradient(90deg, 
        var(--accent-red) 0%, 
        #dc2626 100%);
}

.alarm-stat-card.alarm-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.1) 0%, 
        rgba(245, 158, 11, 0.05) 100%);
}

.alarm-stat-card.alarm-warning::before {
    opacity: 1;
    background: linear-gradient(90deg, 
        var(--accent-orange) 0%, 
        #f59e0b 100%);
}

.alarm-stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.alarm-stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.alarm-stat-card.alarm-critical .stat-icon {
    color: var(--accent-red);
}

.alarm-stat-card.alarm-warning .stat-icon {
    color: var(--accent-orange);
}

.alarm-stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.alarm-stat-card .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Alarms Section */
.alarms-section {
    margin-bottom: 30px;
}

.alarms-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alarms-critical-title {
    color: var(--accent-red);
}

.alarms-warning-title {
    color: var(--accent-orange);
}

.alarms-section-title .section-icon {
    font-size: 20px;
}

.alarms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alarm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.alarm-card:hover {
    box-shadow: var(--shadow);
}

.alarm-card-critical {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
}

.alarm-card-warning {
    border-color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.05);
}

.alarm-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.alarm-badge-critical {
    background: var(--accent-red);
    color: white;
}

.alarm-badge-warning {
    background: var(--accent-orange);
    color: white;
}

.alarm-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alarm-message {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.alarm-code {
    color: var(--text-muted);
    font-size: 12px;
}

.alarm-dismiss {
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 300;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px;
    line-height: 1;
}

.alarm-dismiss:hover {
    color: var(--text-primary);
}

.alarm-card-critical .alarm-dismiss {
    color: var(--accent-red);
}

.empty-alarms-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Administration Cards Grid */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.admin-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.admin-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.admin-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Backup & Restore Grid */
.backup-restore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.backup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.backup-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Info Box */
/* Info Box Styles */
.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.security-info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border-left: 4px solid var(--accent-blue);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.info-box-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.info-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.info-icon {
    font-size: 22px;
    flex-shrink: 0;
    color: var(--accent-blue);
}

.info-text-wrapper {
    flex: 1;
}

.info-text-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.info-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Warning Box */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.warning-icon {
    font-size: 18px;
    color: var(--accent-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* File Input */
.file-input-wrapper {
    margin-bottom: 16px;
}

.file-input {
    display: none;
}

.file-label {
    display: block;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-label:hover {
    border-color: var(--accent-blue);
    background: var(--bg-tertiary);
}

.file-label-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.file-name {
    color: var(--text-muted);
    font-size: 13px;
}

.btn-backup {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Security Card */
.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(59, 130, 246, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.security-card:hover {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

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

.security-card-header {
    margin-bottom: 20px;
}

.security-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.security-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.security-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.security-card-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    padding-left: 72px;
}

.security-status-section {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.security-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.security-status-left {
    flex: 1;
}

.security-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.status-active {
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.status-indicator.status-active::after {
    background: var(--accent-green);
    opacity: 0.4;
}

.status-indicator.status-inactive {
    background: var(--text-muted);
}

.status-indicator.status-inactive::after {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.status-text {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.2px;
}

.security-status-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 26px;
    line-height: 1.5;
}

.security-action {
    flex-shrink: 0;
}

.btn-activate-2fa {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

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

.btn-deactivate-2fa {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

.btn-deactivate-2fa:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
    transform: translateY(-2px);
}

/* Profile Section Cards */
.profile-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.profile-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.profile-section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.profile-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.form-input.readonly {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    margin-top: 24px;
}

/* Role Card */
.profile-role-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.role-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin-top: 12px;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge.role-admin {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.role-badge.role-other {
    background: rgba(107, 114, 128, 0.2);
    color: #d1d5db;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.action-buttons .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-buttons .btn-icon {
    font-size: 14px;
}

/* Audit Logs Info Bar */
.audit-logs-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.info-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-highlight {
    color: var(--text-primary);
    font-weight: 500;
}

/* Empty State */
.empty-state-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 30px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-icon-large {
    font-size: 100px;
    margin-bottom: 24px;
    opacity: 0.4;
    display: block;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

/* Activity History Section */
.activity-history-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 20px;
}

.activity-content {
    min-height: 100px;
}

.no-activity {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.activity-time {
    color: var(--text-muted);
    font-size: 13px;
    min-width: 140px;
}

.activity-action {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.activity-user {
    color: var(--text-secondary);
    font-size: 13px;
    min-width: 120px;
    text-align: right;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

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

.modal-container {
    background: linear-gradient(135deg, 
        var(--bg-card) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    position: relative;
    box-sizing: border-box;
}

.modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-blue) 0%, 
        #8b5cf6 50%, 
        var(--accent-blue) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    box-sizing: border-box;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 6px 0;
    position: relative;
    z-index: 1;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-height: calc(90vh - 200px);
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.modal-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-sizing: border-box;
}

.form-section {
    margin-bottom: 32px;
}

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

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

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

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

.form-label .required {
    color: var(--accent-red);
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    position: relative;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 4px 12px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    transform: translateY(-1px);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-secondary {
    padding: 10px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

/* Light theme modal */
[data-theme="light"] .modal-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="light"] .form-section-title {
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

[data-theme="light"] .form-note {
    background: #f9fafb;
}

[data-theme="light"] .modal-footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

[data-theme="light"] .btn-secondary {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

[data-theme="light"] .btn-secondary:hover {
    background: #e5e7eb;
}

/* Scroll to Top Button (Ashensor) */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    line-height: 1;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.scroll-top-btn:active {
    transform: translateY(-1px);
}

/* Light theme scroll button */
[data-theme="light"] .scroll-top-btn {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .scroll-top-btn:hover {
    background: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Tracking Module Styles */
.tracking-search-section {
    margin-bottom: 30px;
}

.search-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.search-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-group {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 4px 12px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    transform: translateY(-1px);
}

.btn-search {
    padding: 12px 24px;
    white-space: nowrap;
}

.search-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.tracking-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.product-info-card,
.transfer-history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

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

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

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.location-value {
    color: var(--accent-blue);
}

.verified-badge {
    color: var(--accent-green);
    font-weight: 600;
}

.not-verified-badge {
    color: var(--accent-red);
    font-weight: 600;
}

.transfer-timeline {
    position: relative;
    padding-left: 24px;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    bottom: -24px;
    width: 2px;
    background: var(--border-color);
}

.timeline-marker {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid var(--bg-card);
}

.timeline-content {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.transfer-from-to {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.transfer-from,
.transfer-to {
    font-weight: 500;
    color: var(--text-primary);
}

.transfer-arrow {
    color: var(--accent-blue);
    font-size: 18px;
}

.transfer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.transfer-date {
    font-size: 13px;
    color: var(--text-muted);
}

.transfer-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.transfer-status.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.transfer-status.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.transfer-status.status-in-transit {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* Light theme tracking */
[data-theme="light"] .search-card,
[data-theme="light"] .product-info-card,
[data-theme="light"] .transfer-history-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .search-input {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

[data-theme="light"] .timeline-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .card-header {
    border-bottom: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
    
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .tracking-results {
        grid-template-columns: 1fr;
    }
    
    .product-details-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .qr-code-page-container {
        padding: 20px 10px;
    }
    
    .qr-code-display-card {
        padding: 30px 20px;
    }
    
    .qr-code-wrapper {
        padding: 20px;
    }
    
    #qrcode {
        width: 100% !important;
        max-width: 300px;
    }
    
    .qr-code-element canvas,
    .qr-code-element img {
        max-width: 100%;
        height: auto;
    }
    
    .qr-actions {
        flex-direction: column;
    }
    
    .btn-print,
    .btn-secondary {
        width: 100%;
    }
    
    .qr-page-title {
        font-size: 24px;
    }
}

/* QR Code Page Styles */
.qr-code-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.qr-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.qr-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.qr-code-display-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code-element {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-element canvas,
.qr-code-element img {
    border-radius: 8px;
}

.qr-product-info {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.qr-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.qr-info-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
}

.qr-info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.qr-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-print {
    min-width: 180px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
}

.btn-back {
    padding: 10px 20px;
    font-size: 14px;
    margin-left: 12px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .qr-code-page-container {
        padding: 0;
    }
    
    .qr-code-display-card {
        border: none;
        box-shadow: none;
        padding: 20px;
    }
    
    .qr-code-wrapper {
        padding: 20px;
        background: #ffffff;
    }
    
    .qr-product-info {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
    }
    
    .qr-info-item {
        border-bottom: 1px solid #e5e7eb;
    }
}

/* Light theme QR code */
[data-theme="light"] .qr-code-display-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .qr-code-wrapper {
    background: #ffffff;
    border: 2px solid #e5e7eb;
}

[data-theme="light"] .qr-product-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .qr-info-item {
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="light"] .qr-page-title {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Audit Logs Table Container */
.audit-logs-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    overflow-x: auto;
}

/* Sidebar Toggle Button in Header */
.main-header .sidebar-toggle-mobile {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-header .sidebar-toggle-mobile {
        display: block;
    }
    
    .stats-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .header-dropdown span:first-child,
    .header-logout span:last-child {
        display: none;
    }
    
    .audit-logs-info-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* ============================================
   RESPONSIVE DESIGN - PRODUCTS TABLE
   ============================================ */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .table-card {
        padding: 40px;
    }
    
    .data-table th,
    .data-table td {
        padding: 20px 24px;
        font-size: 15px;
    }
    
    .filters-row {
        gap: 16px;
    }
    
    .filter-select {
        min-width: 180px;
    }
}

/* Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .table-card {
        padding: 32px;
    }
    
    .data-table th,
    .data-table td {
        padding: 16px 20px;
    }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .table-card {
        padding: 24px;
    }
    
    .data-table th {
        padding: 14px 16px;
        font-size: 11px;
    }
    
    .data-table td {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .filters-row {
        gap: 10px;
    }
    
    .filter-select {
        min-width: 140px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .action-buttons {
        gap: 6px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .table-card {
        padding: 20px;
    }
    
    .filters-section {
        padding: 16px;
    }
    
    .filters-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .filters-row .btn-secondary,
    .filters-row .btn-primary {
        grid-column: 1 / -1;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th {
        padding: 12px 10px;
        font-size: 10px;
        letter-spacing: 0.8px;
    }
    
    .data-table td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    /* Hide less important columns on tablet */
    .data-table th:nth-child(4),
    .data-table td:nth-child(4),
    .data-table th:nth-child(5),
    .data-table td:nth-child(5),
    .data-table th:nth-child(7),
    .data-table td:nth-child(7) {
        display: none;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .products-summary {
        font-size: 13px;
    }
    
    .pagination-wrapper {
        flex-wrap: wrap;
        gap: 6px;
        padding: 20px 0;
    }
    
    .pagination-btn,
    .pagination-number {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .table-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .filters-section {
        padding: 12px;
        border-radius: 12px;
    }
    
    .search-box {
        margin-bottom: 12px;
    }
    
    .search-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide table on mobile, show card view */
    .table-responsive {
        overflow: visible;
    }
    
    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody tr {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .data-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        border-color: var(--accent-blue);
    }
    
    .data-table tbody tr::before {
        display: none;
    }
    
    .data-table td {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
        position: relative;
        padding-left: 42%;
        word-break: break-word;
    }
    
    .data-table td:first-child {
        display: none;
    }
    
    .data-table td:last-child {
        border-bottom: none;
        padding-left: 0;
        padding-top: 16px;
        margin-top: 16px;
        border-top: 2px solid var(--border-color);
        text-align: center;
    }
    
    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 38%;
        padding-right: 12px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        top: 10px;
    }
    
    .data-table td:last-child::before {
        display: none;
    }
    
    .data-table td strong {
        font-size: 15px;
        color: var(--text-primary);
    }
    
    .products-summary {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }
    
    .pagination-btn,
    .pagination-number {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .pagination-btn span:last-child,
    .pagination-btn span:first-child {
        display: none;
    }
    
    .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .table-card {
        padding: 12px;
    }
    
    .filters-section {
        padding: 10px;
    }
    
    .data-table td {
        padding-left: 45%;
        font-size: 13px;
    }
    
    .data-table td::before {
        font-size: 11px;
        width: 40%;
    }
    
    .products-summary {
        font-size: 11px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .page-description {
        font-size: 13px;
    }
}

