/* ============ VARIABLES & BASE ============ */
:root {
    --primary: #0077b6;
    --primary-dark: #023e8a;
    --primary-light: #90e0ef;
    --accent: #f77f00;
    --accent-light: #ffb703;
    --bg: #f8f9fa;
    --bg-secondary: #e9ecef;
    --card-bg: #ffffff;
    --text: #2b2d42;
    --text-light: #555;
    --text-muted: #8d99ae;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --success: #28a745;
    --success-light: #d4edda;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --info: #17a2b8;
    --info-light: #d1ecf1;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ SCROLLBAR STYLING ============ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============ LOGIN PAGE ============ */
.login-body {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #e8f4f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-card h2 {
    color: var(--text);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.input-group label i {
    color: var(--primary);
    width: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.message {
    margin: 20px 0 0;
    font-weight: 600;
    min-height: 24px;
}

.message .success {
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.message .error {
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hint {
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.hint strong {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============ FRONTEND APP CONTAINER ============ */
.app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 95vh;
    max-height: 850px;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 20px 18px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-content h1 i {
    font-size: 1.6rem;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Tabs Container */
.tabs-container {
    background: var(--bg-secondary);
    padding: 12px 12px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tabs-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tab i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.tab:hover {
    background: #f8f9fa;
    border-color: var(--border);
}

.tab:active {
    transform: scale(0.95);
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
    transform: scale(1.02);
}

.tab.active i {
    opacity: 1;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
    animation: fadeSlide 0.3s ease;
    cursor: default;
}

@keyframes fadeSlide {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card:active {
    transform: translateY(0);
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--info-light);
    color: var(--info);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.card-category.guru-umum {
    background: #e3f2fd;
    color: #1565c0;
}

.card-category.guru-matematika {
    background: #f3e5f5;
    color: #6a1b9a;
}

.card-category.mahasiswa {
    background: #e8f5e9;
    color: #2e7d32;
}

.card-context {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.card-content {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 15px;
}

.card-meta i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.5;
}

.info-bar {
    padding: 12px 20px;
    background: white;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-bar span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-bar i {
    font-size: 0.9rem;
}

/* ============ ADMIN PANEL ============ */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #001a33 0%, var(--primary-dark) 50%, #001a33 100%);
    color: white;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.sidebar-header {
    padding: 25px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-header i {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.nav-item i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-left-color: var(--accent);
    font-weight: 600;
}

/* Main Content */
.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    min-height: 100vh;
}

.view-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h1 i {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Table */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.admin-table th {
    color: white;
    padding: 16px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.admin-table th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.badge-guru-umum { 
    background: #e3f2fd; 
    color: #1565c0; 
    border: 1px solid #bbdefb;
}

.badge-guru-matematika { 
    background: #f3e5f5; 
    color: #6a1b9a; 
    border: 1px solid #e1bee7;
}

.badge-mahasiswa { 
    background: #e8f5e9; 
    color: #2e7d32; 
    border: 1px solid #c8e6c9;
}

.badge-mudah { 
    background: #d4edda; 
    color: #155724; 
}

.badge-sedang { 
    background: #fff3cd; 
    color: #856404; 
}

.badge-sulit { 
    background: #f8d7da; 
    color: #721c24; 
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: #e3f2fd;
    color: var(--primary);
    border: 1px solid #bbdefb;
}

.btn-edit:hover { 
    background: var(--primary); 
    color: white;
    transform: scale(1.05);
}

.btn-delete {
    background: #f8d7da;
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.btn-delete:hover { 
    background: var(--danger); 
    color: white;
    transform: scale(1.05);
}

/* Admin Form */
.admin-form {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 800px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: var(--radius);
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.modal-content h3 i {
    color: var(--warning);
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 220px;
    }
    
    .admin-main {
        margin-left: 220px;
        padding: 20px;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Admin */
    .admin-sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .sidebar-header h2,
    .nav-item span {
        display: none;
    }
    
    .sidebar-header {
        padding: 20px 10px;
    }
    
    .sidebar-header i {
        font-size: 2rem;
    }
    
    .nav-item {
        justify-content: center;
        padding: 15px;
    }
    
    .nav-item i {
        font-size: 1.3rem;
    }
    
    .admin-main {
        margin-left: 70px;
        padding: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-form {
        padding: 20px;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
    }
    
    .action-btns {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Mobile Frontend */
    .app-container {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .header-content h1 {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-nav {
        display: flex;
        padding: 0;
        width: 100%;
    }
    
    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 0.8rem;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--accent);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .login-card h2 {
        font-size: 1.5rem;
    }
}

/* ============ UTILITY CLASSES ============ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.toast.success {
    border-left: 4px solid var(--success);
    color: var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .admin-sidebar,
    .btn-icon,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .modal {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 0;
    }
    
    .admin-table {
        box-shadow: none;
    }
}

/* ============ GUEST VIEW (Before Login) ============ */
.guest-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 100%;
}

.guest-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

.guest-icon i {
    font-size: 3rem;
    color: var(--text-muted);
}

.guest-view h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 700;
}

.guest-view p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 300px;
}

.btn-login-guest {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
    margin-bottom: 35px;
}

.btn-login-guest:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 119, 182, 0.4);
}

.btn-login-guest:active {
    transform: translateY(0);
}

.guest-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.feature-item i {
    color: var(--success);
    font-size: 1.1rem;
}

/* ============ TOAST NOTIFICATIONS ============ */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    max-width: 400px;
}

.toast.success {
    border-left: 4px solid var(--success);
    color: #155724;
    background: #d4edda;
}

.toast.error {
    border-left: 4px solid var(--danger);
    color: #721c24;
    background: #f8d7da;
}

.toast.info {
    border-left: 4px solid var(--info);
    color: #0c5460;
    background: #d1ecf1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============ MESSAGE STYLES ============ */
.message .info {
    color: var(--info);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ============ RESPONSIVE ADDITIONS ============ */
@media (max-width: 480px) {
    .guest-icon {
        width: 80px;
        height: 80px;
    }
    
    .guest-icon i {
        font-size: 2.5rem;
    }
    
    .guest-view h2 {
        font-size: 1.3rem;
    }
    
    .btn-login-guest {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}