:root {
    --bg-color: #060606;
    --text-color: #ffffff;
    --gold-color: #B8860B;
    --gold-glow: rgba(184, 134, 11, 0.4);
    --bg-dark: #050505;
    --card-bg: rgba(10, 10, 10, 0.8);
    --header-bg: #111;
    --column-bg: #0c0c0c;
    --border-color: #222;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes logoPulse {
    0% {
        filter: drop-shadow(0 0 5px var(--gold-glow));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--gold-color));
    }

    100% {
        filter: drop-shadow(0 0 5px var(--gold-glow));
    }
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 95%;
    max-width: 1400px;
    padding: 20px;
}

/* User Info Bar */
.user-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 10px 0;
    margin-bottom: 2rem;
}

.user-details h2 {
    color: var(--gold-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

.user-details p {
    margin: 5px 0 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.header-left h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.header-left p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.unreal-logo-text {
    text-align: right;
}

.unreal-brand {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}

.unreal-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 3px;
    opacity: 0.8;
}

/* Buttons */
.btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: none;
}

.btn-logout {
    background: #e74c3c;
    color: #fff;
}

.btn-archives {
    background: #fff;
    color: #000;
    width: 120px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-slot {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
}

/* Navigation Controls */
.nav-controls {
    display: inline-flex;
    gap: 4px;
    margin-left: 10px;
}

.nav-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 2px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.day-column {
    background: var(--column-bg);
    border: 1px solid #1a1a1a;
}

.day-header {
    background: #222;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 1.3rem;
}

.section-title {
    color: var(--gold-color);
    font-size: 0.7rem;
    text-align: center;
    padding: 20px 0 5px;
    font-weight: 900;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

.slot-content {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.slot-content:hover {
    background: #111;
}

.event-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--gold-color);
}

.event-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    margin: 5px 10px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.event-subtitle {
    font-size: 0.75rem;
    opacity: 0.5;
    margin: 8px 10px 10px;
    font-weight: 500;
}

.slot-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.badge {
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--gold-color);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modal Preview Area */
#modalPreview {
    margin: 15px 0;
    padding: 15px;
    background: #000;
    border: 1px solid #222;
    border-radius: 4px;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

#modalPreview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--gold-color);
}

.preview-details {
    border-top: 1px solid #222;
    padding-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    font-size: 0.75rem;
}

.detail-label {
    color: var(--gold-color);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.detail-value {
    opacity: 0.7;
}

.preview-desc {
    grid-column: span 2;
    margin-top: 5px;
    background: #0a0a0a;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #222;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #eee;
}

.preview-desc b {
    color: var(--gold-color);
    font-weight: 900;
}

.preview-desc u {
    text-decoration: underline;
    text-decoration-color: var(--gold-color);
    text-underline-offset: 3px;
}

.detail-item .detail-value {
    font-size: 0.9rem;
    font-weight: 600;
}

#modalPreview .preview-info h4 {
    margin: 0;
    color: var(--gold-color);
    font-size: 1.1rem;
    font-weight: 900;
}

/* Modal styling matching the clean look */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #111;
    padding: 2.5rem;
    border-radius: 4px;
    width: 450px;
    border: 1px solid #333;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-lg {
    width: 800px;
}

.rich-text-toolbar button:hover {
    background: var(--gold-color) !important;
    color: #000 !important;
    border-color: var(--gold-color) !important;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-color);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Archive Picker in Modal */
.archive-picker {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.archive-picker-title {
    font-size: 0.8rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.archive-picker-list {
    max-height: 200px;
    overflow-y: auto;
    background: #000;
    border: 1px solid #222;
    border-radius: 4px;
}

.archive-picker-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #111;
    cursor: pointer;
    transition: background 0.2s;
}

.archive-picker-item:hover {
    background: #111;
}

.archive-picker-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 12px;
}

.archive-picker-info h4 {
    margin: 0;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
}

.archive-picker-info p {
    margin: 2px 0 0;
    font-size: 0.75rem;
    opacity: 0.6;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

/* FAB for archives */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gold-color);
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Archives List View */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 2rem;
}

.archive-item {
    background: #0c0c0c;
    border: 1px solid #222;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    height: 120px;
    position: relative;
}

.archive-thumb {
    width: 200px;
    min-width: 200px;
    height: 100%;
    object-fit: cover;
    border-right: 1px solid #1a1a1a;
}

.archive-info {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.archive-info h3 {
    color: var(--gold-color);
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 800;
}

.archive-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-meta {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--gold-color);
    font-weight: 700;
}

.archive-meta span {
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #333;
}

.archive-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border-left: 1px solid #1a1a1a;
    background: #111;
}

.archive-actions button {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: 0.2s;
}

.archive-actions button:hover {
    background: #222;
}

.archive-actions .btn-delete-archive {
    color: #e74c3c;
    border-color: #522;
}

.archive-actions .btn-delete-archive:hover {
    background: #311;
}

/* AUTH PAGE STYLES */
.auth-page {
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    width: 100% !important;
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid #222;
    border-top: 3px solid var(--gold-color) !important;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-logo img {
    width: 120px !important;
    height: auto !important;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    animation: logoPulse 4s infinite ease-in-out;
}

.auth-header h1 {
    color: var(--gold-color);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
}

.auth-header p {
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    font-size: 0.9rem;
    opacity: 0.5;
}

.auth-form input {
    width: 100%;
    background: #000 !important;
    border: 1px solid #333 !important;
    padding: 15px 15px 15px 45px !important;
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--gold-color) !important;
    box-shadow: 0 0 10px var(--gold-glow) !important;
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: var(--gold-color) !important;
    color: #000 !important;
    font-weight: 900;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

.auth-footer {
    margin-top: 30px;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.auth-footer a {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-link {
    display: block;
    margin-top: 15px;
    font-size: 0.75rem !important;
    opacity: 0.6;
}


/* Image Download Button - Premium Style */
.img-download-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1.5px solid var(--gold-color);
    color: var(--gold-color);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.img-download-btn:hover {
    background: var(--gold-color);
    color: #000;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 15px rgba(184, 134, 11, 0.6);
}

.img-download-btn:active {
    transform: scale(0.95);
}