@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-bg: #eff6ff;
    --sidebar-bg: #0c1222;
    --sidebar-surface: #151d30;
    --sidebar-hover: #1a2540;
    --sidebar-border: rgba(255,255,255,0.06);
    --text-dark: #0f172a;
    --text-mid: #475569;
    --text-light: #94a3b8;
    --text-muted: #cbd5e1;
    --bg-main: #f0f4f8;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --purple: #8b5cf6;
    --purple-bg: #f5f3ff;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
    --shadow-glow: 0 0 40px rgba(37,99,235,0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

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

.main-content { animation: fadeInUp 0.5s ease; }

/* ==================== LOGIN ==================== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--sidebar-bg);
    background-image: url('logobanner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(12, 18, 34, 0.55);
    top: 0;
    left: 0;
    z-index: 0;
}

.login-body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    z-index: 0;
}

.login-container {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(40px);
    padding: 40px 44px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 80px rgba(37,99,235,0.08);
    width: 440px;
    max-width: 92%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.3);
    animation: fadeInUp 0.6s ease;
}

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

.login-logo h1 {
    font-size: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-logo .version {
    font-size: 10px;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.login-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-main);
    color: var(--text-dark);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(37,99,235,0.1);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: 0 6px 24px rgba(37,99,235,0.35);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(37,99,235,0.45);
}

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

.btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

/* ==================== LAYOUT ==================== */
.app-container {
    display: flex;
    height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    position: relative;
    box-shadow: 6px 0 30px rgba(0,0,0,0.2);
    z-index: 10;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(37,99,235,0.3), transparent 30%, transparent 70%, rgba(139,92,246,0.2));
}

.sidebar-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-header .logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.sidebar-header .logo .logo-icon,
.sidebar-header .logo img.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

.sidebar-header .logo .logo-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.sidebar-header .logo .version {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    margin-left: auto;
}

.sidebar-user {
    padding: 20px 24px;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

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

.sidebar-user .user-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.sidebar-user .user-status {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--sidebar-bg);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(16,185,129,0.5);
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
}

.sidebar-menu li {
    margin: 2px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    margin: 1px 0;
    position: relative;
}

.sidebar-menu li a:hover {
    background: var(--sidebar-hover);
    color: rgba(255,255,255,0.95);
    transform: translateX(2px);
}

.sidebar-menu li a.active {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    font-weight: 600;
}

.sidebar-menu li a i {
    width: 22px;
    text-align: center;
    font-style: normal;
    font-size: 16px;
}

.submenu {
    list-style: none;
    padding-left: 12px;
    border-left: 2px solid rgba(255,255,255,0.06);
    margin-left: 20px;
}

.submenu li a {
    padding: 9px 16px 9px 24px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.4);
    border-radius: var(--radius-xs);
}

.submenu li a:hover,
.submenu li a.active {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    transform: none;
}

.submenu li a.active {
    background: rgba(37,99,235,0.2);
    color: var(--primary-light);
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--sidebar-border);
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 13px;
    background: rgba(239,68,68,0.1);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-logout:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
    transform: translateY(-1px);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 36px 40px;
    background: var(--bg-main);
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
    animation: slideInLeft 0.4s ease;
}

.page-header h2 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

/* ==================== TOOLBAR ==================== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeInUp 0.5s ease 0.1s both;
}

.toolbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    padding: 11px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 260px;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
    color: var(--text-dark);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(37,99,235,0.08);
}

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

.filter-select {
    padding: 11px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-dark);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(37,99,235,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

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

.btn-light {
    background-color: var(--white);
    color: var(--text-mid);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-light:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ==================== TABLE ==================== */
.table-container {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    color: var(--text-dark);
}

.data-table th {
    font-weight: 700;
    color: var(--text-mid);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--border);
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.data-table tbody tr:hover {
    background-color: var(--primary-bg);
    transform: scale(1.002);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

.data-table .actions .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    transition: var(--transition-bounce);
}

.btn-icon.edit { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.btn-icon.delete { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.btn-icon.view { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.btn-icon.qr { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }

.btn-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 28px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.pagination button {
    padding: 10px 18px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    transition: var(--transition);
    font-family: inherit;
}

.pagination button.active,
.pagination button:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

/* ==================== CARDS ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #4f46e5 50%, var(--purple) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

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

.card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    background: var(--primary-bg);
}

.card h3 {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.card .value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1.5px;
    line-height: 1;
}

/* ==================== FORM ELEMENTS ==================== */
.form-section {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s ease 0.15s both;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 28px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

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

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

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(37,99,235,0.08);
}

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

/* ==================== CHECKBOX ==================== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 18, 34, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-xl);
    width: 500px;
    max-width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border);
}

.modal-box::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #4f46e5 50%, var(--purple) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin: -36px -36px 28px -36px;
    width: calc(100% + 72px);
}

.modal-box h3 {
    margin-bottom: 28px;
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.modal-form .form-group {
    margin-bottom: 18px;
}

.modal-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-main);
    transition: var(--transition);
    color: var(--text-dark);
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(37,99,235,0.08);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

/* ==================== BADGE / STATUS ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-primary {
    background: var(--primary-bg);
    color: var(--primary);
}

.badge-purple {
    background: var(--purple-bg);
    color: var(--purple);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .sidebar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        padding: 20px;
    }
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .modal-box {
        padding: 24px;
    }
}

/* ==================== LOGIN LOGO ==================== */
.login-logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    color: white;
    font-weight: 900;
    letter-spacing: -0.5px;
    box-shadow: 0 12px 40px rgba(37,99,235,0.4), 0 4px 16px rgba(79,70,229,0.3);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
}

.login-tab {
    flex: 1;
    padding: 12px;
    background: var(--bg-main);
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-mid);
    letter-spacing: 0.3px;
}

.login-tab:first-child {
    border-right: 1px solid var(--border);
}

.login-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.login-tab:hover:not(.active) {
    background: var(--primary-bg);
    color: var(--primary);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.register-info {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.btn-register {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 6px 24px rgba(16,185,129,0.35) !important;
}

.btn-register:hover {
    box-shadow: 0 10px 32px rgba(16,185,129,0.45) !important;
}

/* ==================== MESAI ==================== */
.mesai-add-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    animation: fadeInUp 0.5s ease 0.1s both;
}

.mesai-add-card,
.mesai-summary-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.mesai-add-card::before,
.mesai-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #4f46e5 50%, var(--purple) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.mesai-add-card h3,
.mesai-summary-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.mesai-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mesai-time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-add-mesai {
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 15px;
}

.mesai-summary-card {
    max-height: 420px;
    overflow-y: auto;
}

.mesai-summary-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.mesai-summary-empty {
    text-align: center;
    padding: 32px 0;
    color: var(--text-light);
    font-size: 14px;
}

.mesai-summary-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 4px;
}

.mesai-summary-time {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.mesai-summary-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.mesai-summary-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #4f46e5 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.mesai-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 2px solid var(--border);
    font-weight: 800;
    font-size: 15px;
    color: var(--text-dark);
}

.mesai-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
}

.mesai-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    z-index: 99999;
    animation: fadeInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: opacity 0.4s ease;
    box-shadow: var(--shadow-lg);
}

.mesai-notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.mesai-notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.mesai-detail-list {
    margin-top: 20px;
}

@media (max-width: 900px) {
    .mesai-add-section {
        grid-template-columns: 1fr;
    }
}