/* --- Hall 3B MySpace Global Core Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #e5e5e5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333333;
    line-height: 1.4;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: #003399;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Cast Switcher Bar (Dorm Directory) */
.cast-bar {
    background: #111111;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    border-bottom: 2px solid #ff7700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cast-bar span.cast-title {
    color: #ff9933;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.cast-chip {
    background: #2a2a2a;
    color: #cccccc;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #444444;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.cast-chip:hover {
    background: #ff7700;
    color: #ffffff;
    border-color: #ff7700;
    text-decoration: none;
    transform: translateY(-1px);
}

.cast-chip.active {
    background: #003399;
    color: #ffffff;
    border-color: #6699ff;
    font-weight: bold;
}

/* Top Nav Bar */
.myspace-nav {
    background-color: #003399;
    color: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid #002266;
}

.nav-container {
    width: 820px;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-container .logo {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.nav-container .tagline {
    font-size: 11px;
    color: #b3c6ff;
    margin-left: 6px;
}

.nav-links a {
    color: #ffffff;
    font-size: 11px;
    margin: 0 4px;
}

/* Main Container */
.main-container {
    width: 820px;
    max-width: 95%;
    margin: 12px auto;
    display: flex;
    gap: 15px;
}

.column-left {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Common Boxes */
.profile-box, .contact-box, .about-box, .banner-box, .friends-box, .bulletin-box, .interactive-box, .interests-box {
    background-color: #ffffff;
    border: 1px solid #b3c6ff;
    padding: 10px;
}

h2, h3 {
    background-color: #b3c6ff;
    color: #003399;
    font-size: 13px;
    padding: 4px 6px;
    margin: -10px -10px 10px -10px;
    border-bottom: 1px solid #99b3ff;
}

/* Profile Box */
.profile-content {
    display: flex;
    gap: 10px;
}

.profile-pic-container {
    width: 110px;
    height: 140px;
    background-color: #f0f0f0;
    border: 1px solid #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.profile-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.headline-badge {
    font-size: 11px;
    font-style: italic;
    color: #666;
}

.online-now {
    color: #009900;
    font-weight: bold;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.offline-now {
    color: #999999;
    font-weight: bold;
    font-size: 11px;
}

/* Contact Box */
.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.contact-btn {
    background-color: #f7f7f7;
    border: 1px solid #cccccc;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 11px;
    text-align: left;
    color: #003399;
    font-weight: bold;
    border-radius: 2px;
    transition: background-color 0.1s;
}

.contact-btn:hover {
    background-color: #e6ecf7;
    border-color: #003399;
}

/* Banner Box */
.banner-box {
    background-color: #fff9e6;
    border: 1px dashed #ff9900;
    text-align: center;
    padding: 12px;
}

.banner-box h1 {
    font-size: 16px;
    color: #cc6600;
    margin-bottom: 4px;
}

/* Flash Style Profile Music Player */
.flash-player-box {
    background: linear-gradient(180deg, #2b2b2b 0%, #151515 100%);
    border: 2px solid #555555;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.2), 0 2px 5px rgba(0,0,0,0.4);
    color: #ffffff;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: #ff9933;
    font-family: monospace;
    text-transform: uppercase;
}

.player-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-btn {
    background: linear-gradient(180deg, #ff8800 0%, #cc5500 100%);
    border: 1px solid #ffaa44;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.play-btn:hover {
    background: linear-gradient(180deg, #ffa033 0%, #e66000 100%);
}

.track-display {
    flex: 1;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 3px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-title {
    color: #00ff66;
    font-family: monospace;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-progress-container {
    width: 100%;
    height: 4px;
    background: #222222;
    border-radius: 2px;
    overflow: hidden;
}

.player-progress-bar {
    width: 0%;
    height: 100%;
    background: #ff7700;
    transition: width 0.1s linear;
}

.equalizer {
    display: flex;
    gap: 2px;
    height: 16px;
    align-items: flex-end;
}

.eq-bar {
    width: 3px;
    height: 3px;
    background: #ff7700;
    border-radius: 1px;
}

.equalizer.bouncing .eq-bar:nth-child(1) { animation: eqBounce 0.4s infinite alternate; }
.equalizer.bouncing .eq-bar:nth-child(2) { animation: eqBounce 0.3s infinite alternate 0.1s; }
.equalizer.bouncing .eq-bar:nth-child(3) { animation: eqBounce 0.5s infinite alternate 0.2s; }
.equalizer.bouncing .eq-bar:nth-child(4) { animation: eqBounce 0.35s infinite alternate 0.15s; }
.equalizer.bouncing .eq-bar:nth-child(5) { animation: eqBounce 0.45s infinite alternate 0.05s; }

@keyframes eqBounce {
    0% { height: 3px; background: #ff7700; }
    50% { height: 14px; background: #ffaa33; }
    100% { height: 6px; background: #ff5500; }
}

/* Top 8 Ranking Controls */
.rank-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
}

.rank-btn {
    background: #f0f0f0;
    border: 1px solid #cccccc;
    color: #333333;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    cursor: pointer;
    line-height: 1;
}

.rank-btn:hover {
    background: #ff7700;
    color: #ffffff;
    border-color: #ff7700;
}

.rank-num {
    font-size: 9px;
    font-weight: bold;
    color: #ff6600;
}

/* Top 8 Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.friend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: transform 0.15s, background-color 0.15s;
}

.friend-card:hover {
    transform: scale(1.05);
    background-color: #f5f8ff;
}

.friend-pic {
    width: 65px;
    height: 65px;
    background-color: #f0f0f0;
    border: 1px solid #b3c6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.friend-name {
    font-size: 11px;
    font-weight: bold;
    color: #003399;
    line-height: 1.1;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-role {
    font-size: 9px;
    color: #888888;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Table of Details */
.details-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.details-table td {
    padding: 3px 4px;
}

.details-table td.label {
    font-weight: bold;
    color: #003399;
    width: 80px;
}

/* Bulletin Board & Scrolling Items */
.scrolling-bulletins {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.bulletin-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 8px;
    border-radius: 2px;
}

.bulletin-header {
    font-size: 10px;
    color: #ff6600;
    font-weight: bold;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.bulletin-body {
    font-size: 11px;
    color: #222222;
}

.typing-box {
    background-color: #f7f9fa;
    border-left: 3px dashed #ff9900;
    font-style: italic;
    color: #777777;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Comment Box */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #b3c6ff;
    font-size: 11px;
    border-radius: 2px;
}

.input-group button {
    background-color: #003399;
    color: #ffffff;
    border: 1px solid #002266;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
}

.input-group button:hover {
    background-color: #002266;
}

.hint {
    font-size: 10px;
    color: #666666;
    margin-top: 4px;
    font-style: italic;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.message-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 2px solid #003399;
    width: 380px;
    padding: 15px;
    z-index: 101;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.message-modal h3 {
    margin-bottom: 10px;
}

.message-modal textarea {
    width: 100%;
    height: 90px;
    margin-bottom: 10px;
    padding: 6px;
    font-family: inherit;
    font-size: 11px;
    border: 1px solid #cccccc;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-buttons button {
    padding: 5px 12px;
    font-weight: bold;
    cursor: pointer;
    background: #003399;
    color: #ffffff;
    border: 1px solid #002266;
}

.modal-buttons button.cancel {
    background: #eeeeee;
    color: #333333;
    border-color: #cccccc;
}

/* ========================================================
   THEME STYLES (Custom Character Quirks)
   ======================================================== */

/* 1. Jessica Theme: Pink, Drama, Sparkles */
body.theme-jessica {
    background-color: #ffe6f2;
}
body.theme-jessica h2, body.theme-jessica h3 {
    background-color: #ffb3d9;
    color: #99004d;
    border-bottom-color: #ff80bf;
}
body.theme-jessica .profile-box, 
body.theme-jessica .contact-box, 
body.theme-jessica .about-box, 
body.theme-jessica .friends-box, 
body.theme-jessica .bulletin-box, 
body.theme-jessica .interactive-box,
body.theme-jessica .interests-box {
    border-color: #ffb3d9;
}
body.theme-jessica .banner-box {
    background-color: #fff0f5;
    border-color: #ff66b2;
}
body.theme-jessica .banner-box h1 {
    color: #cc0066;
}
body.theme-jessica a {
    color: #cc0066;
}

/* 2. Chad Theme: Varsity Gym Bro (Neon Green & Slate) */
body.theme-chad {
    background-color: #e2e8e2;
}
body.theme-chad h2, body.theme-chad h3 {
    background-color: #2b3d2b;
    color: #39ff14;
    border-bottom: 2px solid #39ff14;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.theme-chad .profile-box, 
body.theme-chad .contact-box, 
body.theme-chad .about-box, 
body.theme-chad .friends-box, 
body.theme-chad .bulletin-box, 
body.theme-chad .interactive-box,
body.theme-chad .interests-box {
    border: 2px solid #2b3d2b;
}
body.theme-chad .banner-box {
    background-color: #1a261a;
    border: 2px solid #39ff14;
}
body.theme-chad .banner-box h1 {
    color: #39ff14;
    font-family: Impact, Charcoal, sans-serif;
    letter-spacing: 1px;
}
body.theme-chad .friend-pic {
    border-color: #39ff14;
}
body.theme-chad a {
    color: #1b5e20;
}

/* 3. Sarah Theme: Deep Emo / Goth */
body.theme-sarah {
    background-color: #0f0f0f;
    color: #cccccc;
}
body.theme-sarah .profile-box, 
body.theme-sarah .contact-box, 
body.theme-sarah .about-box, 
body.theme-sarah .friends-box, 
body.theme-sarah .bulletin-box, 
body.theme-sarah .interactive-box,
body.theme-sarah .interests-box {
    background-color: #1a1a1a;
    border: 1px solid #800000;
    color: #cccccc;
}
body.theme-sarah h2, body.theme-sarah h3 {
    background-color: #800000;
    color: #ffffff;
    border-bottom: 1px solid #cc0000;
    font-family: "Georgia", serif;
}
body.theme-sarah .banner-box {
    background-color: #140000;
    border: 1px solid #ff0000;
}
body.theme-sarah .banner-box h1 {
    color: #ff3333;
    font-family: "Georgia", serif;
    font-style: italic;
}
body.theme-sarah .bulletin-item {
    background-color: #242424;
    border-color: #444444;
}
body.theme-sarah .bulletin-body {
    color: #dddddd;
}
body.theme-sarah .contact-btn {
    background-color: #2a2a2a;
    color: #ff6666;
    border-color: #555555;
}
body.theme-sarah a {
    color: #ff4d4d;
}

/* 4. Kevin Theme: Retro CRT Hacker Terminal */
body.theme-kevin {
    background-color: #040904;
    color: #00ff66;
    font-family: "Courier New", Courier, monospace;
}
body.theme-kevin .profile-box, 
body.theme-kevin .contact-box, 
body.theme-kevin .about-box, 
body.theme-kevin .friends-box, 
body.theme-kevin .bulletin-box, 
body.theme-kevin .interactive-box,
body.theme-kevin .interests-box {
    background-color: #0a140a;
    border: 1px solid #00ff66;
    color: #00ff66;
}
body.theme-kevin h2, body.theme-kevin h3 {
    background-color: #003311;
    color: #00ff66;
    border-bottom: 1px solid #00ff66;
    font-family: monospace;
}
body.theme-kevin .banner-box {
    background-color: #001a08;
    border: 1px dashed #00ff66;
}
body.theme-kevin .banner-box h1 {
    color: #00ff66;
    font-family: monospace;
}
body.theme-kevin .friend-pic {
    background-color: #001f0a;
    border-color: #00ff66;
}
body.theme-kevin .friend-name {
    color: #00ff66;
}
body.theme-kevin .bulletin-item {
    background-color: #081a08;
    border-color: #004d1a;
}
body.theme-kevin .bulletin-body {
    color: #88ffaa;
}
body.theme-kevin .contact-btn {
    background-color: #002b0e;
    color: #00ff66;
    border-color: #00ff66;
}
body.theme-kevin a {
    color: #33ff77;
}

/* 5. RA Dan Theme: Institutional Dorm Administration */
body.theme-radan {
    background-color: #f4efe6;
}
body.theme-radan h2, body.theme-radan h3 {
    background-color: #1a365d;
    color: #ffffff;
    border-bottom: 2px solid #c53030;
}
body.theme-radan .banner-box {
    background-color: #fffaf0;
    border: 2px solid #1a365d;
}
body.theme-radan .banner-box h1 {
    color: #1a365d;
    font-family: "Trebuchet MS", sans-serif;
}
body.theme-radan a {
    color: #1a365d;
}

/* 6. Tom Theme: Authentic Classic MySpace */
body.theme-tom {
    background-color: #e5e5e5;
}
/* --- Additional Styles for 32-Student Roster & Weekly Clubs --- */

/* Weekly Clubs Box */
.clubs-box {
    background-color: #ffffff;
    border: 1px solid #b3c6ff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.club-card {
    background: #fbfbfb;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.club-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: bold;
}

.club-name {
    color: #003399;
    display: flex;
    align-items: center;
    gap: 4px;
}

.drama-badge {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.drama-badge.high {
    background-color: #ffe6e6;
    color: #cc0000;
    border: 1px solid #ff9999;
}

.drama-badge.tension {
    background-color: #fff9e6;
    color: #cc6600;
    border: 1px solid #ffcc66;
}

.drama-badge.stable {
    background-color: #e6f9e6;
    color: #008800;
    border: 1px solid #99e699;
}

.club-story {
    font-size: 10px;
    color: #555555;
    font-style: italic;
    line-height: 1.2;
}

.club-members-row {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2px;
}

.club-member-chip {
    background: #ffffff;
    border: 1px solid #b3c6ff;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.club-member-chip:hover {
    background: #003399;
    color: #ffffff;
    border-color: #003399;
    text-decoration: none;
}

/* Full Dorm Directory Modal */
.directory-modal-content {
    background: #ffffff;
    border: 3px solid #003399;
    width: 900px;
    max-width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff7700;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.directory-header h2 {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 16px;
    color: #003399;
}

.close-btn {
    background: #cc0000;
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

.room-card {
    background: #fdfdfd;
    border: 1px solid #c2d1f0;
    border-radius: 3px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.room-card-header {
    font-size: 11px;
    font-weight: bold;
    color: #cc6600;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #d9d9d9;
    padding-bottom: 4px;
}

.roommates-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.roommate-subcard {
    background: #f7f9fc;
    border: 1px solid #e1e8f5;
    padding: 6px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.roommate-subcard:hover {
    background: #eaf0fa;
    border-color: #003399;
    text-decoration: none;
}

.roommate-subcard .rm-avatar {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 2px;
    flex-shrink: 0;
}

.roommate-subcard .rm-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.roommate-subcard .rm-name {
    font-size: 11px;
    font-weight: bold;
    color: #003399;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roommate-subcard .rm-club {
    font-size: 9px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* --- Session Disclaimer & DDoS Gatekeeper Modal --- */
.disclaimer-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 3px solid #ff7700;
    width: 520px;
    max-width: 92%;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
}

.disclaimer-header {
    background: linear-gradient(90deg, #ff7700 0%, #cc4400 100%);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.disclaimer-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 11px;
    line-height: 1.5;
}

.disclaimer-notice-box {
    background-color: #fff9e6;
    border: 1px solid #ffd280;
    border-radius: 3px;
    padding: 10px;
}

.disclaimer-notice-box strong {
    color: #cc6600;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.disclaimer-security-badge {
    background-color: #f0f4f8;
    border: 1px solid #d0dbe5;
    border-radius: 3px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #555555;
}

.disclaimer-security-badge span.shield-icon {
    font-size: 20px;
}

.disclaimer-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #003399;
    user-select: none;
}

.disclaimer-footer {
    background: #f7f7f7;
    border-top: 1px solid #e0e0e0;
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
}

.enter-btn {
    background: linear-gradient(180deg, #003399 0%, #002266 100%);
    color: #ffffff;
    border: 1px solid #001a4d;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: background 0.15s;
}

.enter-btn:hover {
    background: linear-gradient(180deg, #0044cc 0%, #002b80 100%);
}

.enter-btn:disabled {
    background: #cccccc;
    border-color: #bbbbbb;
    color: #888888;
    cursor: not-allowed;
    box-shadow: none;
}
/* --- Lecture Hall & Classroom View Styles --- */
.lecture-modal-content {
    background: #1e1e1e;
    border: 3px solid #ff7700;
    width: 860px;
    max-width: 95%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    border-radius: 4px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.lecture-header-bar {
    background: linear-gradient(90deg, #1b3a57 0%, #0d1e2e 100%);
    border-bottom: 2px solid #ff7700;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lecture-header-bar h2 {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: #ff9933;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Green Chalkboard */
.chalkboard-container {
    background: #1e3f20;
    border: 8px solid #5a3818;
    margin: 14px;
    padding: 14px;
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 4px 8px rgba(0,0,0,0.5);
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Chalkboard', cursive, sans-serif;
    color: #f0fdf0;
    text-shadow: 0 0 1px rgba(255,255,255,0.4);
}

.chalkboard-prof {
    font-size: 13px;
    color: #ffe066;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    padding-bottom: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chalkboard-text {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Classroom Seating Chart */
.classroom-seating {
    padding: 0 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seating-title {
    font-size: 11px;
    font-weight: bold;
    color: #ff9933;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.desk-card {
    background: #2b2b2b;
    border: 1px solid #444444;
    padding: 6px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.desk-card:hover {
    background: #383838;
    border-color: #ff7700;
    transform: translateY(-1px);
}

.desk-avatar {
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 2px;
    flex-shrink: 0;
}

.desk-name {
    font-size: 11px;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Classroom Discussion Feed */
.class-feed-container {
    padding: 0 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.class-discussion-box {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 3px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.class-chat-input-row {
    display: flex;
    gap: 8px;
}

.class-chat-input-row input {
    flex: 1;
    padding: 7px 10px;
    background: #2a2a2a;
    border: 1px solid #555555;
    color: #ffffff;
    font-size: 11px;
    border-radius: 3px;
}

.class-chat-input-row button {
    background: #ff7700;
    color: #ffffff;
    border: none;
    font-weight: bold;
    padding: 7px 14px;
    border-radius: 3px;
    cursor: pointer;
}

.class-chat-input-row button:hover {
    background: #e66000;
}

/* Campus Live Observer Widget */
.observer-box {
    background: #ffffff;
    border: 1px solid #b3c6ff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.observer-header {
    background: #003399;
    color: #ffffff;
    padding: 4px 8px;
    margin: -10px -10px 6px -10px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-indicator-dot {
    width: 8px;
    height: 8px;
    background: #00ff66;
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Retro AdSense Box */
.adsense-box {
    background: #ffffff;
    border: 1px solid #b3c6ff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.adsense-header {
    background: #b3c6ff;
    color: #003399;
    padding: 4px 8px;
    margin: -10px -10px 6px -10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.adsense-inner {
    background: #fdfdfd;
    border: 1px dashed #cccccc;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ========================================================
   4-CHANNEL PROCEDURAL CCTV SURVEILLANCE STYLES
   ======================================================== */

.cctv-monitor-box {
    background: #ffffff;
    border: 1px solid #b3c6ff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.cctv-header {
    background: #111827 !important;
    color: #00ff66 !important;
    font-family: monospace;
    padding: 5px 8px !important;
    margin: -10px -10px 4px -10px !important;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ff7700;
    box-sizing: border-box;
}

.cctv-mode-btn {
    background: #003311;
    color: #00ff66;
    border: 1px solid #00aa44;
    font-size: 9px;
    font-family: monospace;
    padding: 2px 6px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.cctv-mode-btn:hover {
    background: #005522;
}

.cctv-channel-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    background: #1a1a1a;
    padding: 4px;
    border-radius: 2px;
    width: 100%;
    box-sizing: border-box;
}

.cctv-ch-btn {
    width: 100%;
    background: #2b2b2b;
    color: #aaaaaa;
    border: 1px solid #444444;
    font-size: 8px;
    font-family: monospace;
    padding: 4px 1px;
    cursor: pointer;
    border-radius: 2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.15s;
    box-sizing: border-box;
}

.cctv-ch-btn:hover {
    background: #ff7700;
    color: #ffffff;
    border-color: #ff9933;
}

.cctv-ch-btn.active {
    background: #003399;
    color: #ffffff;
    border-color: #6699ff;
    font-weight: bold;
}

.cctv-screen-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 2px solid #222222;
    border-radius: 3px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

#cctv-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    image-rendering: pixelated;
    box-sizing: border-box;
}

.cctv-scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.65;
}

.cctv-static {
    display: none;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-radial-gradient(#000 0 0.0001%,#fff 0 0.0002%) 50% 0/2500px 2500px, repeating-conic-gradient(#000 0 0.0001%,#fff 0 0.0002%) 50% 50%/2500px 2500px;
    background-blend-mode: difference;
    opacity: 0.85;
    pointer-events: none;
    animation: staticFuzz 0.1s infinite alternate;
}

@keyframes staticFuzz {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.cctv-sighting-bar {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 3px solid #ff7700;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    color: #334155;
    border-radius: 2px;
    width: 100%;
    box-sizing: border-box;
}

#cctv-sighting-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.cctv-teleport-action {
    background: #ff7700;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: bold;
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.cctv-teleport-action:hover {
    background: #e66000;
}

/* ========================================================
   COMPREHENSIVE RESPONSIVE DESIGN (Mobile, Tablet, Desktop)
   ======================================================== */

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    body {
        font-size: 11px;
    }

    /* 1. Main Layout Stacking */
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px auto !important;
        padding: 0 8px !important;
        flex-direction: column !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .column-left {
        width: 100% !important;
        order: 1;
        box-sizing: border-box !important;
    }

    .column-right {
        width: 100% !important;
        order: 2;
        box-sizing: border-box !important;
    }

    /* 2. Campus Navigator & Top Nav Bar */
    .cast-bar {
        padding: 6px 8px;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cast-bar::-webkit-scrollbar {
        display: none;
    }

    .cast-chip {
        font-size: 10px;
        padding: 4px 8px;
        flex-shrink: 0;
    }

    .myspace-nav {
        padding: 8px 10px;
    }

    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 8px;
        font-size: 11px;
        line-height: 1.4;
    }

    /* 3. Profile & Contact Boxes */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .contact-btn {
        padding: 8px;
        text-align: center;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 4. Top 8 Grid */
    .friends-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .friend-pic {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .friend-name {
        font-size: 10px;
    }

    /* 5. Modals Responsive Fit */
    .message-modal,
    .directory-modal-content,
    .lecture-modal-content,
    .disclaimer-modal {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        margin: 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        transform: translate(-50%, -50%) !important;
        overflow-y: auto !important;
    }

    /* 6. Lecture Classroom Desks */
    .desks-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .desk-card {
        padding: 6px 4px !important;
    }

    .class-chat-input-row {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .class-chat-input-row input {
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 36px;
    }

    .class-chat-input-row button {
        width: 100% !important;
        min-height: 36px;
    }

    /* 7. Flash Music Player */
    .player-main {
        flex-wrap: wrap;
        gap: 8px;
    }

    .play-btn {
        padding: 6px 14px;
        min-height: 32px;
    }

    /* 8. Interactive Comment Box */
    .input-group {
        flex-direction: column;
        gap: 6px;
    }

    .input-group input {
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 36px;
        font-size: 13px !important; /* Prevents iOS auto-zoom on input focus */
    }

    .input-group button {
        width: 100% !important;
        min-height: 36px;
    }

    /* 9. Footer Links */
    .myspace-footer {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 8px !important;
        box-sizing: border-box !important;
    }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    .friends-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 clean columns on small phones */
        gap: 8px !important;
    }

    .friend-pic {
        width: 62px;
        height: 62px;
        font-size: 26px;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Single column large tap targets */
    }

    .desks-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .banner-box h1 {
        font-size: 14px;
    }

    .profile-heading {
        font-size: 14px;
    }

    .chalkboard-text {
        font-size: 12px;
    }

    /* CCTV on small phones */
    .cctv-header {
        font-size: 10px !important;
    }
    .cctv-channel-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
    }
    .cctv-ch-btn {
        font-size: 9.5px !important;
        padding: 6px 4px !important;
    }
    .cctv-sighting-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .cctv-teleport-action {
        width: 100% !important;
        text-align: center !important;
    }
}
