/* ========================================
   Minerva Local — Premium Dark UI
   Modern Glass Morphism + Neon Accents
   ======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: #16162a;
    --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-hover: #5b4bd5;
    --accent-glow: rgba(108, 92, 231, 0.35);
    --cyan: #00cec9;
    --cyan-glow: rgba(0, 206, 201, 0.25);
    --danger: #ff6b6b;
    --danger-hover: #ee5a5a;
    --success: #00b894;
    --success-glow: rgba(0, 184, 148, 0.2);
    --warning: #fdcb6e;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.04);
    --font-family: 'Anta', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.5);
}

html {
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--cyan);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    box-shadow: 0 2px 12px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-hover));
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.25);
}

.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.35);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-light);
    box-shadow: none;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ========================================
   Alerts
   ======================================== */

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--danger);
}

.alert-success {
    background: var(--success-glow);
    border-color: rgba(0, 184, 148, 0.3);
    color: var(--success);
}

/* ========================================
   Guest / Login Page
   ======================================== */

.guest-body {
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(108, 92, 231, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.login-container h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
    font-size: 2.2rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-container {
    background: rgba(18, 18, 30, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    padding: 36px 44px;
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    min-width: 340px;
}

#login-form {
    text-align: center;
}

#login-form label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    text-align: left;
    margin-bottom: 4px;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition);
}

#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.06);
}

#login-form input[type="submit"] {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent), #5b4bd5);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
    margin-top: 4px;
}

#login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

/* Carousel */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    margin: 40px 20px;
    padding-bottom: 40px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
    transform: translateY(20px);
}

.carousel-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 65%;
    height: 420px;
    margin: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.carousel-images {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-images img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 12px;
    z-index: 2;
}

.carousel-button {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: all var(--transition);
}

.carousel-button:hover {
    background: rgba(108, 92, 231, 0.5);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.advantages {
    width: 32%;
    color: var(--text-primary);
    padding-left: 40px;
}

.advantages h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advantages ul {
    list-style: none;
    padding: 0;
}

.advantages li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.advantages li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}

.footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer-link {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--cyan);
}

/* Snowflakes */
.snowflake {
    position: fixed;
    top: -10px;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(108, 92, 231, 0.3));
    border-radius: 50%;
    opacity: 0.6;
    animation: snowfall linear infinite;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(110vh) translateX(20px) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   Dashboard
   ======================================== */

.dashboard-body {
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 10% 90%, rgba(108, 92, 231, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(0, 206, 201, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Version Banner */
.version-banner {
    padding: 10px 24px;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.version-banner.current {
    background: linear-gradient(90deg, rgba(0, 184, 148, 0.08), rgba(0, 184, 148, 0.15), rgba(0, 184, 148, 0.08));
    color: var(--success);
    border-bottom: 1px solid rgba(0, 184, 148, 0.2);
}

.version-banner.outdated {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.08), rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.08));
    color: var(--danger);
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    animation: pulse-banner 2s ease-in-out infinite;
}

@keyframes pulse-banner {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.update-link {
    color: var(--accent-light);
    margin-left: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.subscription-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 24px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.06), rgba(108, 92, 231, 0.12), rgba(108, 92, 231, 0.06));
    color: var(--accent-light);
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
}

.btn-renew {
    padding: 4px 14px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1.4;
}

.btn-renew:hover {
    color: #fff;
    box-shadow: 0 0 16px var(--accent-glow);
    transform: translateY(-1px);
}

/* Tab Bar */
.tab-bar {
    display: flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-btn {
    flex-grow: 1;
    background: transparent;
    color: var(--text-muted);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 0.85rem;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(108, 92, 231, 0.06);
}

.tab-btn.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
    background: rgba(108, 92, 231, 0.08);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
    border-radius: 2px;
}

.tab-btn.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.35;
}

.logout-form {
    margin: 0;
    display: flex;
}

.logout-btn {
    color: var(--danger) !important;
    opacity: 0.8;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    opacity: 1;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 90px);
}

.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 90px);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
    width: 320px;
    background: rgba(18, 18, 30, 0.6);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    padding: 24px 18px;
    overflow-y: auto;
    max-height: calc(100vh - 90px);
}

.sidebar h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 18px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.assistants-list {
    list-style: none;
    padding: 0;
}

.assistant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: background var(--transition);
}

.assistant-item:hover {
    background: var(--glass-bg-hover);
}

.export-form {
    margin-top: 18px;
    text-align: center;
}

/* ========================================
   Table Tab
   ======================================== */

.date-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.date-selector select,
.chart-tab select {
    padding: 10px 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c5ce7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.date-selector select:focus,
.chart-tab select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.date-selector label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.users-list {
    margin-bottom: 20px;
}

.user-row {
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.user-row:hover {
    background: var(--glass-bg-hover);
    border-color: var(--border-light);
}

.details-container {
    margin-top: 16px;
}

.posts-list {
    background: rgba(18, 18, 30, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    max-height: 420px;
    overflow-y: auto;
    line-height: 2;
    box-shadow: var(--card-shadow);
}

.posts-list div {
    padding: 4px 8px;
    border-radius: 4px;
    transition: background var(--transition);
}

.posts-list div:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ========================================
   Chart Tab
   ======================================== */

.chart-tab {
    padding-top: 4px;
}

.chart-tab label {
    color: var(--text-secondary);
    margin-right: 8px;
}

/* Tables */
.table-wrapper {
    max-height: 650px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 18px;
    box-shadow: var(--card-shadow);
}

.table-wrapper h2 {
    padding: 16px 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

table td {
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

table tbody tr {
    transition: background var(--transition);
}

table tbody tr:hover td {
    background: rgba(108, 92, 231, 0.04);
}

.comment-textarea {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 6px;
    outline: none;
    transition: all var(--transition);
}

.comment-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ========================================
   Admin Tabs — Card Style
   ======================================== */

.registration-tab,
.add-admin-tab,
.delete-admin-tab,
.block-tab {
    max-width: 520px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
}

.registration-tab h2,
.add-admin-tab h2,
.delete-admin-tab h2,
.block-tab h2 {
    margin-bottom: 22px;
    font-size: 1.2rem;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.registration-tab label,
.add-admin-tab label {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.registration-tab input[type="text"],
.registration-tab input[type="password"],
.add-admin-tab input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 1rem;
    margin-bottom: 14px;
    outline: none;
    transition: all var(--transition);
}

.registration-tab input[type="text"]:focus,
.registration-tab input[type="password"]:focus,
.add-admin-tab input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.entity-list {
    list-style: none;
    padding: 0;
}

.entity-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: all var(--transition);
}

.entity-list li:hover {
    background: var(--glass-bg-hover);
    border-color: var(--border-light);
}

/* ========================================
   Screenshots / Monitoring
   ======================================== */

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    overflow-y: auto;
    max-height: 80vh;
    padding: 4px;
}

.image-item {
    background: rgba(18, 18, 30, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
    border-color: rgba(108, 92, 231, 0.2);
}

.image-item img.thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition);
}

.image-item img.thumbnail:hover {
    opacity: 0.85;
}

.username-label {
    margin-top: 10px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 34px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.label-text {
    margin-right: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    transition: var(--transition);
}

input:checked + .slider {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

input:checked + .slider:before {
    transform: translateX(18px);
    background: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    margin: 4% auto;
    display: block;
    width: 75%;
    max-width: 900px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 1001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#caption {
    text-align: center;
    color: var(--text-muted);
    padding: 12px 0;
    font-size: 0.9rem;
}

/* ========================================
   Calendar
   ======================================== */

.calendar-section {
    margin-top: 30px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 700px;
}

.calendar .day-header {
    text-align: center;
    padding: 10px;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar .day {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    background: var(--glass-bg);
    transition: all var(--transition);
    color: var(--text-primary);
    font-weight: 500;
}

.calendar .day:hover {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 15px var(--accent-glow);
}

.calendar .day.selected {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Time Panel */
.time-panel {
    margin-top: 20px;
    max-width: 700px;
    animation: fadeIn 0.3s ease;
}

.time-panel h3 {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.hour-cell {
    text-align: center;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all var(--transition);
    font-weight: 500;
}

.hour-cell:hover {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.3);
}

.hour-cell.selected {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.hour-cell.occupied {
    background: rgba(0, 206, 201, 0.1);
    border-color: rgba(0, 206, 201, 0.25);
    color: var(--cyan);
}

/* ========================================
   Color Classes (Likes)
   ======================================== */

.brown-text { color: #cd853f; }
.grey-text  { color: #8e8e9e; }
.yellow-text { color: #ffd93d; text-shadow: 0 0 6px rgba(255, 217, 61, 0.2); }
.green-text { color: #00b894; text-shadow: 0 0 6px rgba(0, 184, 148, 0.2); }
.red-text   { color: #ff6b6b; text-shadow: 0 0 6px rgba(255, 107, 107, 0.2); }
.pink-text  { color: #fd79a8; text-shadow: 0 0 6px rgba(253, 121, 168, 0.2); }
.blue-text  { color: #74b9ff; text-shadow: 0 0 8px rgba(116, 185, 255, 0.25); }
.gold-text  {
    color: #ffd93d;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(255, 217, 61, 0.4), 0 0 24px rgba(255, 217, 61, 0.15);
}

/* ========================================
   In Development
   ======================================== */

.in-development-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-muted);
    text-align: center;
}

.in-development-tab h2 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--text-muted), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.in-development-tab p {
    max-width: 400px;
    line-height: 1.6;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        max-height: none;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .main-content {
        max-height: none;
    }
    .carousel-container {
        flex-direction: column;
        min-height: auto;
    }
    .carousel {
        width: 90%;
        height: 300px;
    }
    .advantages {
        width: 90%;
        padding-left: 0;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .tab-bar {
        flex-wrap: wrap;
    }
    .tab-btn {
        flex: 1 1 auto;
        min-width: 110px;
        font-size: 0.78rem;
        padding: 10px 8px;
    }
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .calendar {
        max-width: 100%;
    }
    .time-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .form-container {
        min-width: auto;
        width: 90%;
        padding: 24px;
    }
    .registration-tab,
    .add-admin-tab,
    .delete-admin-tab,
    .block-tab {
        max-width: 100%;
    }
    .main-content {
        padding: 16px;
    }
}

/* ========================================
   Pagination
   ======================================== */

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding: 12px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.85rem;
    transition: all var(--transition);
    min-width: 38px;
    text-align: center;
}

.page-btn:hover {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.3);
    color: var(--text-primary);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
    cursor: default;
}

.page-dots {
    padding: 8px 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.page-info {
    margin-left: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========================================
   Loading States
   ======================================== */

.loading-text {
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
    font-size: 0.95rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Lazy images: placeholder before load */
.lazy-img {
    background: var(--bg-tertiary);
    min-height: 150px;
    display: block;
}

.lazy-img[src] {
    animation: fadeIn 0.4s ease;
}
