:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --secondary-dark: #059669;
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --warning: #F59E0B;
    --info: #3B82F6;
    --dark: #1F2937;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #F9FAFB;
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.container {
    padding: 16px;
    padding-bottom: 80px;
    max-width: 100%;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.btn-success { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); color: white; }
.btn-danger { background: linear-gradient(135deg, var(--danger), var(--danger-dark)); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding: 8px 16px;
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
    width: 100%;
    gap: 4px;
}

.nav-menu li {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 10px;
    padding: 6px 2px;
    border-radius: 12px;
    min-width: 60px;
}

.nav-menu a.active, .nav-menu a:hover {
    color: var(--primary);
    background: rgba(79,70,229,0.1);
}

.nav-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.top-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 16px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin: 8px 0;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--secondary); }
.alert-danger { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--danger); }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--warning); }
.alert-info { background: #DBEAFE; color: #1E40AF; border-left: 4px solid var(--info); }

.fab {
    position: fixed;
    bottom: 95px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    font-size: 24px;
    cursor: pointer;
    z-index: 99;
}

@media (min-width: 768px) {
    .container { max-width: 768px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .navbar { position: sticky; top: 0; bottom: auto; }
    .fab { display: none; }
}

/* Login Page Styles */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(100px);
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite;
}

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

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

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

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.school-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: badgeFloat 3s ease-in-out infinite;
}

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

.badge-icon {
    width: 50px;
    height: 50px;
    color: white;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.school-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.school-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.5px;
}

.school-tagline {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.login-divider span:first-child,
.login-divider span:last-child {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.divider-text {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-animated {
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

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

.input-wrapper label {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: #667eea;
    background: white;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-password:hover .eye-icon {
    opacity: 1;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::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;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

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

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

.btn-login .btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

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

.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.login-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.login-message.error {
    display: block;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.login-message.success {
    display: block;
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.login-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.login-footer details {
    text-align: center;
}

.login-footer summary {
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-footer summary:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.demo-accounts {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.demo-item {
    background: #f9fafb;
    padding: 12px;
    border-radius: 10px;
    text-align: left;
}

.demo-role {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.demo-creds {
    display: block;
    font-size: 13px;
    color: #374151;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.login-copyright {
    text-align: center;
    margin-top: 24px;
}

.login-copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .school-name {
        font-size: 20px;
    }
    
    .demo-accounts {
        grid-template-columns: 1fr;
    }
}

/* Profile Page Styles - Compact Version */
.profile-wrapper {
    min-height: 100vh;
    background: #f8fafc;
    padding-bottom: 100px;
}

.profile-header-compact {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn-compact {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: none;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.back-btn-compact:hover {
    background: #f1f5f9;
    color: #334155;
}

.back-btn-compact svg {
    width: 18px;
    height: 18px;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-right: 36px;
}

.header-spacer {
    width: 36px;
}

.profile-card-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 16px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.profile-avatar-compact {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-badge.admin { background: #f59e0b; }
.avatar-badge.guru { background: #10b981; }
.avatar-badge.karyawan { background: #3b82f6; }
.avatar-badge.kepala_sekolah { background: #8b5cf6; }

.avatar-badge svg {
    width: 12px;
    height: 12px;
}

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

.profile-name-compact {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role-compact {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.role-icon {
    font-size: 14px;
}

.profile-username-compact {
    display: inline-block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

.profile-stats-compact {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    margin: 0 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-compact {
    text-align: center;
    flex: 1;
}

.stat-compact:not(:last-child) {
    border-right: 1px solid #f1f5f9;
}

.stat-value-compact {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
}

.stat-label-compact {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.profile-menu-compact {
    padding: 20px 16px;
}

.menu-title-compact {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 4px;
}

.menu-card-compact {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-item-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f8fafc;
}

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

.info-icon-compact {
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content-compact {
    flex: 1;
}

.info-label-compact {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.info-value-compact {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.menu-item-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

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

.menu-item-compact:hover {
    background: #f8fafc;
}

.menu-item-compact:active {
    background: #f1f5f9;
}

.menu-icon-compact {
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-text-compact {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.menu-arrow-compact {
    font-size: 20px;
    color: #cbd5e1;
}

.menu-item-danger-compact .menu-icon-compact {
    background: #fef2f2;
}

.menu-item-danger-compact .menu-text-compact {
    color: #dc2626;
}

.menu-item-danger-compact .menu-arrow-compact {
    color: #fca5a5;
}

.menu-item-danger-compact:hover {
    background: #fef2f2;
}

.profile-footer-compact {
    padding: 24px 20px;
    text-align: center;
}

.app-brand-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.app-brand-compact svg {
    width: 28px;
    height: 28px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.brand-version {
    font-size: 11px;
    color: #94a3b8;
}

/* Shared Components */
.back-btn-compact {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: none;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.back-btn-compact:hover {
    background: #f1f5f9;
    color: #334155;
}

.back-btn-compact svg {
    width: 18px;
    height: 18px;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-right: 36px;
}

.header-spacer {
    width: 36px;
}

/* Laporan Page Styles */
.laporan-wrapper {
    min-height: 100vh;
    background: #f8fafc;
    padding-bottom: 100px;
}

.laporan-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.laporan-content {
    padding: 16px;
}

.filter-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.filter-title svg {
    width: 20px;
    height: 20px;
    color: #667eea;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item-full {
    grid-column: 1 / -1;
}

.filter-item label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.filter-select {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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

.btn-cetak {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-cetak:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

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

.btn-cetak svg {
    width: 20px;
    height: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #eff6ff;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.info-text {
    flex: 1;
}

.info-text strong {
    display: block;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 4px;
}

.info-text p {
    font-size: 13px;
    color: #3b82f6;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 380px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Absensi Page Styles */
.absensi-wrapper {
    min-height: 100vh;
    background: #f8fafc;
    padding-bottom: 100px;
}

.absensi-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.absensi-content {
    padding: 16px;
}

/* Status Card */
.status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.status-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.status-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.status-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

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

.status-card.status-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

/* Location Card */
.location-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-header-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.card-icon-compact {
    font-size: 20px;
}

.location-display {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.location-placeholder {
    text-align: center;
    color: #94a3b8;
}

.placeholder-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.placeholder-icon svg {
    width: 24px;
    height: 24px;
    color: #94a3b8;
}

.location-placeholder p {
    font-size: 14px;
    margin: 0;
}

.placeholder-loading {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.placeholder-loading p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.placeholder-error {
    text-align: center;
}

.placeholder-error span {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.placeholder-error p {
    font-size: 14px;
    color: #ef4444;
    margin: 0;
}

.location-data {
    width: 100%;
}

.location-coords {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.coord-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.coord-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.coord-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.location-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

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

/* Location Button */
.btn-location {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-location:hover {
    background: #f1f5f9;
    border-color: #667eea;
    color: #667eea;
}

.btn-location.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-location svg {
    width: 20px;
    height: 20px;
}

/* Location Status */
.location-status {
    margin-top: 16px;
}

.status-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
}

.status-alert-success {
    background: #d1fae5;
    color: #065f46;
}

.status-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

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

/* Attendance Section */
.attendance-section {
    text-align: center;
    margin-bottom: 20px;
}

.btn-attendance {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.btn-attendance:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

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

.btn-attendance.loading {
    opacity: 0.8;
    pointer-events: none;
}

.btn-attendance-icon {
    font-size: 48px;
}

.btn-attendance-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.attendance-info {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
}

/* History Section */
.history-section {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.history-date {
    font-size: 12px;
    color: #94a3b8;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-empty {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
}

.history-empty span {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.history-empty p {
    font-size: 14px;
    margin: 0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #f8fafc;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #f1f5f9;
}

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

.history-type-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.history-item-info {
    display: flex;
    flex-direction: column;
}

.history-type {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.history-time {
    font-size: 12px;
    color: #94a3b8;
}

.history-item-right {
    text-align: right;
}

.history-status {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.history-status.ontime {
    background: #d1fae5;
    color: #065f46;
}

.history-status.late {
    background: #fef3c7;
    color: #92400e;
}

/* Dashboard Page Styles */
.dashboard-wrapper {
    min-height: 100vh;
    background: #f8fafc;
    padding: 16px;
    padding-bottom: 100px;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.greeting h1 {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.greeting h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 4px 0;
}

.greeting p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Date Time Card */
.datetime-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

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

.date-section {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.time-section {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.time-value {
    font-family: 'SF Mono', 'Monaco', monospace;
    letter-spacing: 2px;
}

.datetime-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.datetime-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn-primary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.action-btn-primary .action-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn-primary .action-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.action-btn-primary span {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.action-btn-secondary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-secondary:hover {
    border-color: #667eea;
    background: #f8fafc;
}

.action-btn-secondary .action-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn-secondary .action-icon svg {
    width: 22px;
    height: 22px;
    color: #667eea;
}

.action-btn-secondary span {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.section-title svg {
    width: 18px;
    height: 18px;
    color: #667eea;
}

/* Stats Grid */
.stats-section {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card-new {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon-wrap.primary {
    background: #eff6ff;
}

.stat-icon-wrap.success {
    background: #d1fae5;
}

.stat-icon-wrap.warning {
    background: #fef3c7;
}

.stat-icon-wrap.purple {
    background: #f3e8ff;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Activity Section */
.activity-section {
    margin-bottom: 20px;
}

.activity-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.activity-empty {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}

.activity-empty span {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.activity-empty p {
    margin: 0;
    font-size: 14px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

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

.activity-item:hover {
    background: #f8fafc;
}

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

.activity-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.activity-type-icon.checkin {
    background: #d1fae5;
}

.activity-type-icon.checkout {
    background: #eff6ff;
}

.activity-details {
    display: flex;
    flex-direction: column;
}

.activity-type {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.activity-time {
    font-size: 12px;
    color: #94a3b8;
}

.activity-status {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.activity-status.ontime {
    background: #d1fae5;
    color: #065f46;
}

.activity-status.late {
    background: #fef3c7;
    color: #92400e;
}

/* Tips Card */
.tips-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tips-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tips-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 4px 0;
}

.tips-content p {
    font-size: 12px;
    color: #a16207;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 380px) {
    .profile-card-compact {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-role-compact {
        justify-content: center;
    }
    
    .profile-username-compact {
        display: none;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

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

.modal-header {
    position: relative;
    text-align: center;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px 24px 0 0;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.modal-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-form {
    padding: 24px;
}

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

.form-group-modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-group-modal {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-modal {
    position: absolute;
    left: 16px;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.input-group-modal input {
    width: 100%;
    padding: 16px 50px 16px 52px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.toggle-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.toggle-eye:hover .eye-icon {
    opacity: 1;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.match-indicator {
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    flex: 1;
    padding: 14px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #4b5563;
}

.btn-submit {
    flex: 2;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-submit .btn-text {
    transition: opacity 0.3s ease;
}

/* ========== ADMIN PAGE STYLES ========== */
.admin-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    padding-bottom: 80px;
}

.admin-header {
    position: relative;
    padding: 60px 20px 40px;
    color: white;
}

.admin-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.admin-header-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.admin-avatar {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid rgba(255,255,255,0.4);
}

.admin-avatar span { font-size: 36px; }

.admin-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-info p {
    font-size: 14px;
    opacity: 0.85;
}

.admin-badge {
    background: rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.admin-tab {
    flex: 1;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    padding: 14px 12px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.admin-tab.active {
    background: white;
    color: var(--dark);
    border-color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.admin-tab .tab-icon { font-size: 20px; }
.admin-tab .tab-label { font-size: 12px; font-weight: 600; }

.admin-content {
    padding: 20px 16px 0;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.section-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.section-title h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.section-title p {
    font-size: 13px;
    color: #888;
}

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

.settings-form .form-group {
    margin-bottom: 0;
}

.settings-form .form-group.full-width {
    margin-bottom: 16px;
}

.settings-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.settings-form input,
.settings-form select {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.3s ease;
}

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

.input-with-icon {
    position: relative;
}

.input-with-icon span:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.5;
}

.input-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #999;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    padding-left: 42px;
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #888;
    pointer-events: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn span { font-size: 16px; }

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.35);
}

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

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    flex: 1;
}

.btn-secondary:hover { background: #e5e7eb; }

.btn.full-width { width: 100%; }

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-day {
    background: #fafafa;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.day-header {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.day-header.mon-thu { background: #eef2ff; color: #4f46e5; }
.day-header.friday { background: #fef3c7; color: #d97706; }
.day-header.saturday { background: #ecfdf5; color: #059669; }
.day-header.sunday.inactive { background: #fee2e2; color: #999; }
.day-off { font-size: 11px; background: #ef4444; color: white; padding: 2px 8px; border-radius: 10px; }

.day-times {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}

.time-input { flex: 1; }
.time-input label { display: block; font-size: 11px; color: #888; margin-bottom: 4px; text-transform: uppercase; }
.time-input input { width: 100%; padding: 10px 12px; border: 2px solid #e8e8e8; border-radius: 10px; font-size: 14px; background: white; }

.time-divider { font-size: 18px; color: #ccc; flex-shrink: 0; }

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

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-avatar.purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.user-avatar.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.user-avatar.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.user-avatar.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.user-avatar.gray { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }

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

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.user-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.role-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.role-badge.purple { background: #ede9fe; color: #7c3aed; }
.role-badge.blue { background: #dbeafe; color: #2563eb; }
.role-badge.green { background: #d1fae5; color: #059669; }
.role-badge.orange { background: #fef3c7; color: #d97706; }

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #fee2e2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-icon:hover { transform: scale(1.1); }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}
