/* ============================================
   backend.css — Dashboard & Tool Pages
   Only contains styles for classes and IDs
   present in Dashboard.js
   ============================================ */

/* ============================================
   SHARED PAGE SHELL
   tech-hero / tech-hero-container used by
   loadDashboardPage, loadAdminPage, etc.
   hero-title / hero-subtitle rendered inside them.
   form-input / form-button / contact-form used
   in showPasswordChangeForm.
   ============================================ */

.tech-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 2rem;
}

.tech-hero-container {
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.1rem;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #2ae6ff;
    background: rgba(255, 255, 255, 0.06);
}

.form-button {
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    color: white;
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(3, 124, 199, 0.4);
}


/* ============================================
   NAVBAR BELL
   ============================================ */

.nav-bell {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.4rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-bell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-bell-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #ff3d00;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}


/* ============================================
   DASHBOARD TILES
   ============================================ */

.imx-dashboard-tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0;
}

.imx-dashboard-tile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    color: white;
}

.imx-dashboard-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(3, 124, 199, 0.3);
    border-color: rgba(42, 230, 255, 0.4);
}

.imx-tile-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.imx-tile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.imx-tile-description {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    color: #b0b0b0;
}

.admin-tile {
    border-color: rgba(255, 107, 107, 0.3) !important;
}

.admin-tile:hover {
    border-color: rgba(255, 107, 107, 0.6) !important;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.15) !important;
}


/* ============================================
   INBOX
   ============================================ */

.imx-inbox-section {
    min-height: calc(100vh - 200px);
    padding: 8rem 2rem 4rem;
    background: #0a0a0a;
}

.imx-inbox-container {
    max-width: 1400px;
    margin: 0 auto;
}

.imx-inbox-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.imx-inbox-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.imx-back-button {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.imx-back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #2ae6ff;
    transform: translateX(-5px);
}

.imx-loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #b0b0b0;
}

.imx-items-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.imx-item-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.imx-item-wrapper:hover {
    border-color: rgba(42, 230, 255, 0.3);
    box-shadow: 0 10px 30px rgba(3, 124, 199, 0.2);
}

.imx-platform-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.imx-platform-kloebot {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.2), rgba(111, 66, 193, 0.3));
    color: #b794f6;
    border: 1px solid rgba(183, 148, 246, 0.3);
}

.imx-platform-aiparel {
    background: linear-gradient(135deg, rgba(12, 84, 96, 0.2), rgba(12, 84, 96, 0.3));
    color: #4fd1c5;
    border: 1px solid rgba(79, 209, 197, 0.3);
}

.imx-platform-thinkbubble {
    background: linear-gradient(135deg, rgba(3, 124, 199, 0.2), rgba(42, 230, 255, 0.3));
    color: #2ae6ff;
    border: 1px solid rgba(42, 230, 255, 0.3);
}

.imx-platform-thinkbubbledemo {
    background: linear-gradient(135deg, rgba(3, 124, 199, 0.2), rgba(42, 230, 255, 0.3));
    color: grey;
    border: 1px solid rgba(42, 230, 255, 0.3);
}

.imx-meta-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.imx-timestamp {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.imx-from-info {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.imx-subject-info,
.imx-reason-info,
.imx-company-info {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.imx-message-section {
    margin-bottom: 1.5rem;
}

.imx-message-content {
    background: rgba(255, 255, 255, 0.03);
    color: #b0b0b0;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.imx-reply-area {
    margin-top: 1rem;
}

.imx-reply-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.imx-reply-textarea:focus {
    outline: none;
    border-color: #2ae6ff;
    box-shadow: 0 0 0 3px rgba(42, 230, 255, 0.1);
}

.imx-buttons-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.imx-button {
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.imx-reply-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.imx-reply-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.imx-send-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.imx-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.imx-unsub-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.imx-unsub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.imx-history-btn {
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    color: white;
}

.imx-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(3, 124, 199, 0.4);
}

.imx-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.imx-modal-content {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(3, 124, 199, 0.3);
    backdrop-filter: blur(20px);
}

.imx-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.imx-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.imx-modal-close {
    font-size: 2rem;
    color: #b0b0b0;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.imx-modal-close:hover {
    color: #2ae6ff;
    transform: rotate(90deg);
}

.imx-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.imx-history-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #2ae6ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.imx-history-time {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.imx-history-direction {
    font-size: 0.85rem;
    color: #2ae6ff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.imx-history-message {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.6;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .imx-inbox-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .imx-buttons-section {
        flex-direction: column;
    }

    .imx-button {
        width: 100%;
    }
}


/* ============================================
   VIDEO GENERATION
   ============================================ */

.video_gen_main_section {
    min-height: 100vh;
    background: #0a0a0a;
    padding: 8rem 2rem 4rem;
}

.video_gen_container {
    max-width: 1200px;
    margin: 0 auto;
}

.video_gen_header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.video_gen_back_button {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video_gen_back_button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #2ae6ff;
    transform: translateX(-5px);
}

.video_gen_title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.video_gen_logo_section,
.video_gen_mode_section,
.video_gen_manual_section,
.video_gen_submit_section,
.video_gen_result_section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.video_gen_section_title {
    font-size: 1.75rem;
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video_gen_upload_area {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video_gen_upload_label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.video_gen_upload_label:hover {
    border-color: #2ae6ff;
    background: rgba(42, 230, 255, 0.05);
}

.video_gen_logo_preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.video_gen_tiles_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video_gen_mode_tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.video_gen_mode_tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(3, 124, 199, 0.3);
    border-color: rgba(42, 230, 255, 0.4);
}

.video_gen_mode_tile.video_gen_tile_active {
    background: linear-gradient(135deg, rgba(3, 124, 199, 0.2) 0%, rgba(42, 230, 255, 0.2) 100%);
    border-color: #2ae6ff;
    box-shadow: 0 10px 30px rgba(3, 124, 199, 0.3);
}

.video_gen_dropdowns_container {
    display: grid;
    gap: 1.5rem;
}

.video_gen_dropdown_group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video_gen_dropdown_label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.video_gen_dropdown {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video_gen_dropdown:hover:not(:disabled) {
    border-color: #2ae6ff;
}

.video_gen_dropdown:focus {
    outline: none;
    border-color: #2ae6ff;
    box-shadow: 0 0 0 3px rgba(42, 230, 255, 0.1);
}

.video_gen_dropdown:disabled {
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
    opacity: 0.5;
}

.video_gen_dropdown option {
    background: #1a1a1a;
    color: #fff;
}

.video_gen_submit_section {
    text-align: center;
}

.video_gen_submit_button {
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(3, 124, 199, 0.3);
}

.video_gen_submit_button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(3, 124, 199, 0.5);
}

.video_gen_submit_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.video_gen_loading_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.video_gen_spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #2ae6ff;
    border-radius: 50%;
    animation: vgSpin 1s linear infinite;
    margin-bottom: 2rem;
}

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

.video_gen_result_section {
    text-align: center;
}

.video_gen_video_actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.video_gen_download_button,
.video_gen_new_video_button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.video_gen_download_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.video_gen_new_video_button {
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    color: white;
}

.video_gen_new_video_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(3, 124, 199, 0.4);
}

.video_gen_status {
    display: none;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

.video_gen_status_success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.video_gen_status_error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.video_gen_status_info {
    background: rgba(42, 230, 255, 0.2);
    color: #2ae6ff;
    border: 1px solid rgba(42, 230, 255, 0.3);
}

@media (max-width: 768px) {
    .video_gen_main_section {
        padding: 6rem 1rem 2rem;
    }

    .video_gen_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .video_gen_title {
        font-size: 2rem;
    }

    .video_gen_tiles_container {
        grid-template-columns: 1fr;
    }

    .video_gen_logo_section,
    .video_gen_mode_section,
    .video_gen_manual_section,
    .video_gen_submit_section,
    .video_gen_result_section {
        padding: 1.5rem;
    }

    .video_gen_video_actions {
        flex-direction: column;
    }

    .video_gen_download_button,
    .video_gen_new_video_button {
        width: 100%;
    }
}


/* ============================================
   SCHEDULING
   ============================================ */

.sched-section {
    min-height: calc(100vh - 200px);
    padding: 120px 2rem 4rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

.sched-container {
    max-width: 1100px;
    margin: 0 auto;
}

.sched-header {
    margin-bottom: 2rem;
}

.sched-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0 0.5rem;
}

.sched-subtitle {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.sched-view-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1.2rem;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.sched-view-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sched-view-btn:not(:last-child) {
    border-right: 1px solid #444;
}

.sched-view-btn.active {
    background: rgba(42, 230, 255, 0.15);
    color: #2ae6ff;
}

.sched-view-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.sched-week-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sched-week-btn {
    background: rgba(3, 124, 199, 0.2);
    border: 1px solid rgba(42, 230, 255, 0.3);
    color: #2ae6ff;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sched-week-btn:hover {
    background: rgba(3, 124, 199, 0.4);
    border-color: rgba(42, 230, 255, 0.6);
}

.sched-week-label {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 280px;
    text-align: center;
}

.sched-loading {
    color: #b0b0b0;
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
}

.sched-grid {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.sched-row {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    gap: 0;
}

.sched-header-row {
    position: sticky;
    top: 0;
    z-index: 2;
}

.sched-cell {
    padding: 0.6rem 0.4rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sched-corner {
    background: transparent;
    border-color: transparent;
}

.sched-day-header {
    background: rgba(3, 124, 199, 0.15);
    color: #2ae6ff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.8rem 0.4rem;
    border-radius: 8px 8px 0 0;
}

.sched-time-cell {
    color: #b0b0b0;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.sched-slot {
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.3rem;
}

.sched-select {
    width: 100%;
    max-width: 120px;
    padding: 0.35rem 0.3rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sched-select:hover {
    border-color: rgba(42, 230, 255, 0.5);
}

.sched-select:focus {
    outline: none;
    border-color: #2ae6ff;
}

.sched-capacity {
    font-size: 0.65rem;
    color: #666;
}

.sched-capacity-full {
    color: #ff6b6b;
    font-weight: 600;
}

.sched-slot-past {
    opacity: 0.45;
}

.sched-select-past {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.4);
}

.sched-status {
    display: none;
    text-align: center;
    padding: 0.8rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.sched-status-success {
    background: rgba(0, 200, 100, 0.15);
    border: 1px solid rgba(0, 200, 100, 0.3);
    color: #00c864;
}

.sched-status-error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.sched-status-info {
    background: rgba(240, 165, 0, 0.15);
    color: #f0a500;
    border: 1px solid rgba(240, 165, 0, 0.3);
}

.sched-action-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sched-save-btn {
    background: linear-gradient(135deg, #037cc7 0%, #2ae6ff 100%);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sched-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 124, 199, 0.4);
}

.sched-copy-btn,
.sched-paste-btn {
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sched-copy-btn {
    background: linear-gradient(135deg, #7c4dff 0%, #b388ff 100%);
}

.sched-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.4);
}

.sched-paste-btn {
    background: linear-gradient(135deg, #00c853 0%, #69f0ae 100%);
}

.sched-paste-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.4);
}

.sched-paste-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Schedule Overview (Admin) */
.sched-overview-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.sched-overview-table th,
.sched-overview-table td {
    padding: 0.5rem;
    border: 1px solid #333;
    text-align: center;
    vertical-align: top;
    font-size: 0.8rem;
    color: #ccc;
}

.sched-overview-table th {
    background: rgba(255, 255, 255, 0.06);
    color: #2ae6ff;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.4rem;
}

.sched-overview-time-cell {
    font-weight: 600;
    color: #aaa;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
}

.sched-overview-slot {
    min-height: 30px;
}

.sched-overview-slot-highlight {
    background: rgba(255, 213, 79, 0.10) !important;
}

.sched-overview-person {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    margin: 0.1rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.sched-overview-person-highlight {
    outline: 2px solid rgba(255, 213, 79, 0.95);
    box-shadow: 0 0 0 2px rgba(255, 213, 79, 0.25);
    filter: saturate(1.1);
    transform: translateY(-0.5px);
}

.sched-overview-person-dim {
    opacity: 0.25;
}

.sched-overview-onprem {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.sched-overview-remote {
    background: rgba(42, 230, 255, 0.15);
    color: #2ae6ff;
    border: 1px solid rgba(42, 230, 255, 0.25);
}

.sched-summary-title {
    color: #fff;
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem 0;
}

.sched-summary-table {
    max-width: 600px;
}

.sched-summary-table td {
    text-align: center;
}

.sched-summary-table td:first-child {
    text-align: left;
}

.sched-summary-remote {
    color: #2ae6ff;
}

.sched-summary-onprem {
    color: #81c784;
}

.sched-summary-total {
    color: #fff;
    font-weight: 600;
}

.sched-summary-totals-row {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.sched-summary-totals-row td {
    padding-top: 0.75rem;
}

.sched-summary-row {
    cursor: pointer;
}

.sched-summary-row.selected {
    background: rgba(255, 213, 79, 0.12);
}

.sched-summary-zero td {
    color: #ff5252 !important;
    font-weight: 800;
}

@media (max-width: 768px) {
    .sched-row {
        grid-template-columns: 70px repeat(5, 1fr);
    }

    .sched-day-header {
        font-size: 0.7rem;
    }

    .sched-time-cell {
        font-size: 0.65rem;
    }

    .sched-select {
        font-size: 0.65rem;
        padding: 0.25rem 0.15rem;
    }

    .sched-week-selector {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .sched-week-label {
        min-width: auto;
        font-size: 1rem;
    }

    .sched-overview-table th,
    .sched-overview-table td {
        padding: 0.3rem;
        font-size: 0.65rem;
    }

    .sched-overview-person {
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
    }
}


/* ============================================
   ADMIN PANEL
   ============================================ */

.admin-back-btn {
    margin-bottom: 1.5rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.admin-tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #333;
}

.admin-tab {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.admin-tab:hover {
    color: #2ae6ff;
}

.admin-tab.active {
    color: #2ae6ff;
    border-bottom-color: #2ae6ff;
}

.admin-panel {
    width: 100%;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-panel-header h2 {
    font-size: 1.3rem;
    color: #e0e0e0;
}

.admin-action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.admin-btn-group {
    display: flex;
    gap: 0.5rem;
}

.admin-seed-btn {
    background: #444;
    border-color: #666;
}

.admin-seed-btn:hover {
    background: #555;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 0.9rem;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.06);
    color: #2ae6ff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(42, 230, 255, 0.04);
}

.admin-role-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-role-admin {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.admin-role-user {
    background: rgba(42, 230, 255, 0.15);
    color: #2ae6ff;
    border: 1px solid rgba(42, 230, 255, 0.3);
}

.admin-perms-cell {
    max-width: 250px;
    word-wrap: break-word;
}

.admin-actions-cell {
    white-space: nowrap;
}

.admin-actions-cell button + button {
    margin-left: 0.4rem;
}

.admin-edit-btn,
.admin-delete-btn {
    padding: 0.3rem 0.7rem;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.admin-edit-btn {
    background: rgba(42, 230, 255, 0.1);
    border-color: rgba(42, 230, 255, 0.3);
    color: #2ae6ff;
}

.admin-edit-btn:hover {
    background: rgba(42, 230, 255, 0.25);
}

.admin-delete-btn {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.admin-delete-btn:hover {
    background: rgba(255, 107, 107, 0.25);
}

.admin-modal-content {
    max-width: 500px;
}

.admin-modal-body {
    padding: 1.5rem;
}

.admin-permissions-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.admin-perm-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
}

.admin-perm-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2ae6ff;
}

@media (max-width: 768px) {
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .admin-panel-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .admin-btn-group {
        flex-wrap: wrap;
    }

    .admin-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}


/* ============================================
   CREATOR OUTREACH
   ============================================ */

.co-section {
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.co-container {
    max-width: 900px;
    margin: 0 auto;
}

.co-header {
    margin-bottom: 2rem;
}

.co-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1rem 0 0.5rem 0;
}

.co-subtitle {
    color: #aaa;
    font-size: 1rem;
    margin: 0;
}

.co-progress-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.co-progress-label {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.co-progress-bar-outer {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 18px;
    overflow: hidden;
}

.co-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #00c853, #69f0ae);
    border-radius: 8px;
    transition: width 0.4s ease;
}

.co-upload-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.co-upload-section h3 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.co-upload-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.co-file-input {
    color: #ccc;
    font-size: 0.9rem;
}

.co-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.co-btn:hover {
    opacity: 0.85;
}

.co-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.co-btn-upload {
    background: #2979ff;
    color: #fff;
}

.co-btn-pull {
    background: #7c4dff;
    color: #fff;
}

.co-btn-mark {
    background: #00c853;
    color: #fff;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
}

.co-upload-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #aaa;
}

.co-upload-success {
    color: #69f0ae;
}

.co-upload-error {
    color: #ff5252;
}

.co-batch-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
}

.co-batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.co-batch-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.co-batch-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.co-batch-empty {
    color: #888;
    text-align: center;
    padding: 2rem 0;
}

.co-select-all-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-weight: 600;
}

.co-creator-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s;
}

.co-creator-row:hover {
    background: rgba(255, 255, 255, 0.07);
}

.co-creator-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.co-creator-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.co-creator-username {
    color: #fff;
    font-weight: 600;
    min-width: 120px;
}

.co-creator-name {
    color: #aaa;
    min-width: 100px;
}

.co-creator-email {
    color: #888;
    font-size: 0.85rem;
    min-width: 160px;
}

.co-creator-link {
    color: #7c4dff;
    text-decoration: none;
    font-size: 0.85rem;
}

.co-creator-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .co-creator-info {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .co-upload-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .co-batch-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}


/* ============================================
   ALERTS
   ============================================ */

.alerts-section {
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.alerts-container {
    max-width: 900px;
    margin: 0 auto;
}

.alerts-header {
    margin-bottom: 2rem;
}

.alerts-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1rem 0 0.5rem 0;
}

.alerts-subtitle {
    color: #aaa;
    font-size: 1rem;
    margin: 0;
}

.alerts-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.alerts-filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alerts-filter-btn {
    background: linear-gradient(135deg, #037cc7, #2ae6ff);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.alerts-filter-btn:hover {
    opacity: 0.85;
}

.alerts-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alerts-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem;
    font-size: 1.1rem;
}

.alerts-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.alerts-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.alerts-card-pending {
    border-left: 3px solid #f0a500;
}

.alerts-card-approved {
    border-left: 3px solid #00c853;
}

.alerts-card-denied {
    border-left: 3px solid #ff3d00;
}

.alerts-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.alerts-type-badge {
    background: rgba(3, 124, 199, 0.2);
    color: #2ae6ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.alerts-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.alerts-status-pending {
    background: rgba(240, 165, 0, 0.2);
    color: #f0a500;
}

.alerts-status-approved {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
}

.alerts-status-denied {
    background: rgba(255, 61, 0, 0.2);
    color: #ff3d00;
}

.alerts-card-body {
    margin-bottom: 1rem;
}

.alerts-requester {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.alerts-timestamp {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.alerts-detail {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.alerts-diff-container {
    margin-top: 0.75rem;
}

.alerts-diff-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.alerts-diff-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.alerts-diff-label {
    min-width: 110px;
    color: rgba(255, 255, 255, 0.9);
}

.alerts-diff-old {
    background: rgba(255, 61, 0, 0.15);
    color: #ff6e40;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.alerts-diff-arrow {
    color: rgba(255, 255, 255, 0.4);
}

.alerts-diff-new {
    background: rgba(0, 200, 83, 0.15);
    color: #69f0ae;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.alerts-resolver {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.alerts-card-actions {
    display: flex;
    gap: 0.75rem;
}

.alerts-approve-btn,
.alerts-deny-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.alerts-approve-btn {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
}

.alerts-approve-btn:hover {
    opacity: 0.85;
}

.alerts-deny-btn {
    background: linear-gradient(135deg, #ff3d00, #ff6e40);
    color: #fff;
}

.alerts-deny-btn:hover {
    opacity: 0.85;
}

.alerts-status {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.alerts-status-success {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.alerts-status-error {
    background: rgba(255, 61, 0, 0.15);
    color: #ff3d00;
    border: 1px solid rgba(255, 61, 0, 0.3);
}

@media (max-width: 600px) {
    .alerts-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .alerts-card-actions {
        flex-direction: column;
    }

    .alerts-filter-bar {
        flex-direction: column;
    }
}


/* ============================================
   PASSWORD REQUIREMENTS
   ============================================ */

.pw-requirements {
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
}

.pw-req-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.2rem 0;
}

.pw-req-item::before {
    content: '\2717  ';
    color: #ff5252;
}

.pw-req-met {
    color: rgba(255, 255, 255, 0.7);
}

.pw-req-met::before {
    content: '\2713  ';
    color: #69f0ae;
}