/* ==================================================================== */
/* === BLUE-GREEN CYBERPUNK THEME STYLES (V3.5 - REFACTORED)         === */
/* ==================================================================== */

body {
    background-color: #050310; /* Very dark blue/black background */
    color: #00ffff; /* Primary Accent Color: Bright Aqua/Teal Neon */
    font-family: 'Consolas', 'Courier New', monospace; 
    margin: 0;
    padding: 0;
}

.container {
    max-width: 85%; 
    margin: 0 auto;
    padding: 20px;
}

/* --- HEADER & NAVIGATION STYLING --- */
header {
    background-color: rgba(10, 30, 50, 0.9); 
    border-bottom: 2px solid #00bfff; 
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-title {
    font-size: 1.5em;
    margin: 0;
    color: #66ffff; 
    text-shadow: 0 0 8px rgba(0, 175, 255, 0.8);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #99ffff; 
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: bold;
}

nav a:hover, nav a.active {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.nav-auth-separator {
    color: #00bfff;
    margin: 0 10px;
}

.user-tag {
    color: #ff00ff;
    margin-right: 10px;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* --- 📉 NEW COMPACT ACCESS PORTAL STYLING --- */
.compact-portal {
    background: rgba(5, 10, 25, 0.9);
    border-bottom: 2px dashed #00bfff;
    padding: 10px 20px;
}

.auth-flex-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Forms default to a minimized real estate look */
.auth-box {
    background-color: rgba(10, 30, 50, 0.6); 
    padding: 10px 15px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    flex: 1;
    max-width: 380px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

/* Highlight the active sub-form if clicked */
.auth-box:focus-within, .active-auth-box {
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    opacity: 1;
    background-color: rgba(10, 30, 50, 0.9);
}

.auth-box h3 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* Inline grids replace old stacked line breaks */
.compact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 5px;
}

.form-group label {
    font-size: 0.8em;
    color: #99ffff;
}

/* --- FORM INPUTS --- */
input[type="text"], input[type="password"], input[type="email"] {
    background-color: #0a1f3d; 
    border: 1px solid #00bfff;
    color: #ffffff;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 0.85em;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
    border-color: #ffffff;
    box-shadow: 0 0 5px #00ffff;
}

/* --- BUTTONS --- */
button, .btn, .form-submit {
    background-color: #00bfff; 
    color: #050310; 
    border: 1px solid #00ffff;
    padding: 5px 10px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover, .form-submit:hover {
    background-color: #33eaff; 
    box-shadow: 0 0 8px #ffffff;
}

.form-submit {
    margin-top: 4px;
    align-self: flex-end;
}

/* --- STATUS MESSAGES --- */
#auth-message-box {
    text-align: center;
    padding: 4px;
    margin-bottom: 8px;
    font-size: 0.85em;
    font-weight: bold;
}
.hidden-msg { display: none; }
.success-msg { color: #33ff33; text-shadow: 0 0 5px #00ff00; }
.error-msg { color: #ff3333; text-shadow: 0 0 5px #ff0000; }

/* ==================================================================== */
/* === 🖼️ AUTOSCALING PHOTO ROLLER TRAX                             === */
/* ==================================================================== */

#photo-roller-container {
    width: 90%;
    height: 380px; /* Locked maximum container height bounds box */
    overflow: hidden; 
    position: relative;
    border: 2px solid #00bfff;
    box-shadow: 0 0 15px rgba(0, 175, 255, 0.2);
    background-color: #020108; /* Dark backing fills gaps during image transitions */
}

#photo-roller {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); 
    will-change: transform;
}

.roller-image {
    min-width: 100%; 
    max-width: 100%;
    height: 100%;
    
    /* FIX: 'contain' tells the browser to scale the image down to completely */
    /* fit inside the box container bounds without stretching or cropping!   */
    object-fit: contain; 
    
    /* Visual fallback parameters */
    box-sizing: border-box;
    padding: 10px; 
}


/* --- VIEW MANAGER MECHANICS --- */
#content-area {
    padding: 20px 25px 60px 25px;
}
.content-view {
    transition: opacity 0.3s ease;
}
.active-view {
    display: block;
    opacity: 1;
}
.hidden-view {
    display: none;
    opacity: 0;
}

/* --- General Content Styling --- */
h2, h3 {
    color: #66ffff;
    text-shadow: 0 0 5px rgba(0, 175, 255, 0.5);
}

.placeholder-text {
    color: #8888ff;
    padding: 20px;
    border: 1px dashed #00bfff;
    display: inline-block;
}


/* --- MODAL DETAIL STREAMS OVERLAY PANEL --- */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 2, 10, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #060a17;
    border: 2px solid #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
    width: 100%;
    max-width: 750px;
    height: 85vh;
    max-height: 680px;
    position: relative;
    padding: 25px;
    box-sizing: border-box;
}

.modal-close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none;
    color: #ff00ff; font-weight: bold; font-family: monospace;
    font-size: 1.2em; cursor: pointer;
    text-shadow: 0 0 5px #ff00ff;
}

.modal-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    height: 100%;
    overflow: hidden;
}

.modal-visual-pane {
    background: #020106;
    border: 1px dashed rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.modal-display-img {
    max-width: 600px; 
    max-height: 800px;
    object-fit: scale-down
}

.modal-data-pane {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    padding-right: 5px;
    gap: 15px;
}

.modal-caption-desc {
    color: #ffffff; font-size: 0.9em; line-height: 1.4; margin: 10px 0;
}

.engagement-toolbar {
    display: flex; gap: 15px; margin: 15px 0;
    padding-bottom: 10px; border-bottom: 1px dashed rgba(0, 191, 255, 0.2);
}

.text-magenta {
    color: #050310; background: #ff00ff; border-color: #ff00ff;
}
.text-magenta:hover { background: #ff66ff; box-shadow: 0 0 8px #ff00ff; }

/* COMMENT ARCHIVE LAYOUT ELEMENTS */
.commentary-matrix { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.comments-scroll-box {
    background: rgba(10, 30, 50, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.2);
    flex-grow: 1; overflow-y: auto; padding: 10px; margin-bottom: 10px;
}

.comment-node {
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    padding: 6px 0; margin-bottom: 6px;
}
.comment-author { font-size: 0.75em; color: #ff00ff; font-weight: bold; }
.comment-text { font-size: 0.85em; color: #ffffff; margin: 3px 0; font-family: sans-serif; }
.comment-date { font-size: 0.65em; color: #8888ff; }

.form-group-flex { display: flex; gap: 8px; width: 100%; }
.form-group-flex input { flex-grow: 1; background: #051021; border: 1px solid #00bfff; color: #ffffff; padding: 6px; }

.new-node-pulse { animation: pulseGlow 1s ease-out; }
@keyframes pulseGlow { 0% { background: rgba(0, 255, 255, 0.3); } 100% { background: transparent; } }


/* --- ADMINISTRATIVE SYSTEM MODERATION PANEL --- */
.admin-split-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    margin-top: 20px;
}

.admin-control-card {
    background: rgba(15, 5, 25, 0.8);
    border: 2px solid #ff00ff; /* Neon Magenta boundary borders for Admin elements */
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    padding: 20px;
    border-radius: 4px;
}

.admin-control-card h3 {
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    margin-top: 0;
    font-size: 1.1em;
}

.admin-scroll-box {
    height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 15px;
}

/* User management specific details row layout links */
.admin-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 0, 255, 0.2);
    padding: 10px 0;
    font-size: 0.85em;
}

.admin-user-info span { display: block; margin-bottom: 2px; }
.status-badge { font-weight: bold; padding: 2px 4px; font-size: 0.8em; }
.status-active { color: #33ff33; }
.status-pending { color: #ffff33; }
.status-banned { color: #ff3333; }

/* Purge layout cards rows */
.admin-purge-item {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    padding: 8px 0;
}

.admin-purge-thumb {
    width: 60px; height: 60px;
    object-fit: cover;
    border: 1px solid #00bfff;
}

.admin-purge-details { flex-grow: 1; font-size: 0.8em; }
.admin-purge-details p { margin: 2px 0; color: #ffffff; }

/* High visibility action triggers buttons */
.btn-purge { background: #ff3333; color: #ffffff; border-color: #ff0000; font-size: 0.75em; padding: 3px 6px; }
.btn-purge:hover { background: #ff0000; box-shadow: 0 0 8px #ff3333; }
.btn-approve { background: #33ff33; color: #050310; border-color: #00ff00; font-size: 0.75em; padding: 3px 6px; margin-right: 4px; }
.btn-approve:hover { background: #00ff00; box-shadow: 0 0 8px #33ff33; }



/* ==================================================================== */
/* === ⚙️ CONTENT AREA IMAGE AUTOSCALING CONFIG                     === */
/* ==================================================================== */
#content-area img {
    width: 70%;
    max-width: 480px;
    height: auto;
    display: block;
    margin: 15px auto; /* Centers the image nicely with spacing */
    box-sizing: border-box;
    border: 1px solid rgba(0, 255, 255, 0.4); /* Optional neon cyberpunk border match */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.15); /* Soft matching matrix glow */
}

