/* Global Styles */
body { font-family: 'Poppins', sans-serif; margin: 0; background-color: #e0e0e0; color: #333; display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, h4 { color: #2c3e50; font-weight: 700; }
a { text-decoration: none; }

/* Header Styles */
.header { background: linear-gradient(135deg, #001f3f 0%, #0056b3 100%); color: white; padding: 0 5%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: 96px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); flex-shrink: 0; position: sticky; top: 0; z-index: 1000; box-sizing: border-box; }
.header-center { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; }
.header h1 { margin: 10px 0 5px 0; font-size: 1.8em; font-weight: 700; text-align: center; color: white; }
.header-sub { font-size: 0.75em; font-weight: 400; margin: -4px 0 8px 0; text-align: center; color: rgba(255,255,255,0.85); letter-spacing: 0.5px; }
.header-logo { height: 100%; width: auto; object-fit: contain; }
.header-logos { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.header-logo-container { width: 80px; height: 60px; display: flex; align-items: center; justify-content: center; }

/* Navigation */
.nav-bar { display: flex; gap: 0; }
.nav-btn { color: #333; background: linear-gradient(to bottom, #ffffff, #f1f1f1); text-decoration: none; padding: 10px 20px; border: 1px solid #ddd; border-radius: 6px; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.nav-bar .nav-btn { border-radius: 0; margin-right: -1px; }
.nav-bar .nav-btn:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.nav-bar .nav-btn:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; margin-right: 0; }
.nav-btn:hover { background: linear-gradient(to bottom, #f8f9fa, #e2e6ea); color: #0056b3; transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.nav-btn.active { background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%); color: #000; border-color: #e0a800; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }

/* Layout Containers */
.container { max-width: 1280px; margin: 40px auto; padding: 20px; width: 100%; box-sizing: border-box; }
.main-content { flex: 1; padding: 30px; background-color: #e0e0e0; display: flex; justify-content: center; align-items: center; min-width: 0; }

/* Cards */
.card { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); margin-bottom: 30px; }
.login-card, .register-card { background: white; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); width: 400px; max-width: 100%; overflow: hidden; margin: auto; }
.profile-card { background: white; padding: 50px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); text-align: center; }
.main-card { text-align: center; background: white; padding: 50px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 50px; border-top: 5px solid #FFD700; }

/* Forms */
form { padding: 40px; } /* Default padding for login/register forms */
.card form { padding: 0; } /* Reset padding for forms inside generic cards */
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="file"], select, textarea { width: 100%; padding: 14px; margin-bottom: 15px; box-sizing: border-box; border: 1px solid #e1e4e8; border-radius: 8px; font-family: 'Poppins', sans-serif; background-color: #f9f9f9; transition: all 0.3s; }
input:focus, select:focus, textarea:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); background-color: #fff; }
button { padding: 14px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 16px; transition: all 0.3s ease; background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: white; box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2); }
button[type="submit"] { width: 100%; }
button:hover, button[type="submit"]:hover { background: linear-gradient(135deg, #0056b3 0%, #004085 100%); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3); }

/* Buttons */
.btn-download { background: linear-gradient(135deg, #007bff, #0056b3); color: white; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-download:hover { background: linear-gradient(135deg, #0056b3, #004085); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.btn-view { background: linear-gradient(135deg, #007bff, #0056b3); color: white; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 500; display: inline-block; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-view:hover { background: linear-gradient(135deg, #0056b3, #004085); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.btn-back { display: inline-block; margin-top: 10px; background-color: transparent; color: #262626; padding: 5px 9px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid #dbdbdb; }
.btn-back:hover { background-color: #fafafa; }
.btn-cancel { background: linear-gradient(135deg, #6c757d, #5a6268); color: white; width: 100%; text-align: center; padding: 14px; border-radius: 8px; font-weight: 600; font-size: 16px; display: inline-block; box-sizing: border-box; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-cancel:hover { background: linear-gradient(135deg, #5a6268, #495057); transform: translateY(-1px); }
.btn-approve { background: linear-gradient(135deg, #28a745, #218838); color: white; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-approve:hover { background: linear-gradient(135deg, #218838, #1e7e34); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.action-btn { display: inline-block; margin-top: 15px; margin-right: 10px; text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 0.9em; font-weight: 500; transition: opacity 0.3s; width: auto !important; }
.btn-edit { background: linear-gradient(135deg, #FFD700, #FFC107); color: #343a40; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-edit:hover { background: linear-gradient(135deg, #FFC107, #e0a800); transform: translateY(-1px); }
.btn-delete { background: linear-gradient(135deg, #dc3545, #c82333); color: white; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.3s; }
.btn-delete:hover { background: linear-gradient(135deg, #c82333, #bd2130); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.btn-toggle { background: linear-gradient(135deg, #007bff, #0056b3); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9em; font-weight: 500; transition: all 0.3s; width: auto; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-toggle:hover { background: linear-gradient(135deg, #0056b3, #004085); transform: translateY(-1px); }

/* Alerts */
.alert, .alert-danger { color: #721c24; background-color: #f8d7da; padding: 12px; border-radius: 8px; margin-bottom: 15px; font-size: 0.9em; }
.success, .alert-success { color: #155724; background-color: #d4edda; padding: 12px; border-radius: 8px; margin-bottom: 15px; font-size: 0.9em; }
.alert-login_error { color: #721c24; background-color: #f8d7da; padding: 10px; border-radius: 5px; margin-bottom: 10px; text-align: center; font-size: 0.9em; }

/* Tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 20px; font-size: 0.95em; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid #f0f2f5; }
th { background-color: #fafbfc; font-weight: 600; color: #6c757d; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.5px; }
tr:hover { background-color: #f9f9f9; }

/* Modals */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fff; margin: 10% auto; padding: 40px; border: none; width: 90%; max-width: 400px; border-radius: 16px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover, .close:focus { color: #333; text-decoration: none; cursor: pointer; }
.modal h2 { text-align: center; margin-top: 0; font-size: 1.8em; color: #2c3e50; margin-bottom: 20px; }
.modal .links { text-align: center; margin-top: 15px; }
.modal .links a { color: #007bff; text-decoration: none; font-size: 0.9em; font-weight: 500; }

/* Profile (Instagram-like) */
.profile-container { max-width: 935px; width: 100%; background: white; padding: 40px; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); border: 1px solid #dbdbdb; margin: 40px auto; }
.profile-wrapper { display: flex; gap: 50px; margin-top: 20px; }
.profile-left { flex: 0 0 250px; display: flex; flex-direction: column; align-items: center; }
.profile-right { flex: 1; }
.profile-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 1px solid #dbdbdb; margin-bottom: 20px; }
.profile-placeholder, .no-img { width: 150px; height: 150px; border-radius: 50%; background-color: #fafafa; border: 1px solid #dbdbdb; display: flex; align-items: center; justify-content: center; color: #8e8e8e; font-weight: 600; margin-bottom: 20px; }
.username-header { font-size: 28px; font-weight: 300; color: #262626; margin-bottom: 5px; line-height: 32px; }
.dept { color: #8e8e8e; font-weight: 600; margin-bottom: 20px; display: block; font-size: 1rem; }
.info-section { margin-bottom: 20px; }
.info-section h3 { font-weight: 600; color: #262626; font-size: 1rem; margin: 0 0 5px 0; }
.info-section p { white-space: pre-wrap; line-height: 1.5; color: #262626; margin: 0; }
.button-group { margin-top: 30px; display: flex; gap: 10px; }
.button-group button { background-color: #0095f6; color: white; width: auto; padding: 8px 20px; } /* Instagram Blue */
.button-group button:hover { background-color: #0085dd; }

/* Dashboard Sidebar */
.dashboard-container { display: flex; flex: 1; width: 100%; }
.dashboard-container .main-content { display: block; }
.sidebar { width: 260px; background: linear-gradient(180deg, #001f3f, #0056b3); padding: 15px; color: white; flex-shrink: 0; height: calc(100vh - 96px); display: flex; flex-direction: column; position: sticky; top: 96px; overflow-y: auto; box-sizing: border-box; transition: width 0.3s ease; }
.sidebar a { display: block; color: white; padding: 10px; text-decoration: none; margin-bottom: 5px; border-radius: 5px; transition: 0.3s; font-weight: 500; font-size: 0.9em; white-space: nowrap; }
.sidebar a:hover { background-color: #495057; color: white; }
.sidebar a.active, .dropdown-btn.active { background-color: #495057; color: white; border-left: 4px solid #FFD700; padding-left: 6px; }
.sidebar-menu { flex-grow: 1; }
.sidebar-footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; }
.sidebar-pic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); }
.sidebar-pic-placeholder { width: 40px; height: 40px; border-radius: 50%; background-color: #adb5bd; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; border: 2px solid rgba(255,255,255,0.2); font-size: 1.2em; }
.sidebar-logout { color: #ff6b6b !important; padding: 5px 0 !important; margin-bottom: 0 !important; font-size: 0.85em !important; }
.sidebar-logout:hover { color: #ff8787 !important; background: none !important; text-decoration: underline; }
.sidebar-toggle { position: absolute; top: 10px; right: 10px; background: none; border: none; color: white; font-size: 1.5em; cursor: pointer; z-index: 10; padding: 0; line-height: 1; }
.sidebar-toggle:hover { color: white; }
@media (min-width: 769px) {
    .sidebar.collapsed { width: 60px; padding: 15px 5px; }
    .sidebar.collapsed .sidebar-menu, .sidebar.collapsed .sidebar-footer, .sidebar.collapsed .dropdown-container { display: none !important; }
}
.notification-badge { background-color: #dc3545; color: white; border-radius: 10px; padding: 2px 8px; font-size: 0.75em; font-weight: bold; margin-left: auto; }
.dashboard-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 30px; }

/* The Grid Container */
.stealth-theme .instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Slightly wider for a premium feel */
    gap: 35px;
    width: 100%;
}

/* Floating Dark Cards */
.stealth-theme .instructor-card {
    background: #04101e !important; /* Matches the stealth background */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 40px 30px !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Bouncy smooth hover */
    position: relative;
    overflow: hidden;
}

.stealth-theme .instructor-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Subtle Ambient Glow behind the profile picture */
.stealth-theme .instructor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 23, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.4s;
}

.stealth-theme .instructor-card:hover::before {
    background: radial-gradient(circle, rgba(255, 215, 23, 0.15) 0%, transparent 70%);
}

/* Ensure content stays above the ambient glow */
.stealth-theme .instructor-img-wrapper,
.stealth-theme .instructor-card h3,
.stealth-theme .instructor-card p,
.stealth-theme .instructor-card .btn-view {
    position: relative;
    z-index: 1;
}

/* Profile Images - Double Ring Effect */
.stealth-theme .instructor-img {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 25px !important;
    padding: 5px; /* Creates the dark gap between image and border */
    background: #04101e;
    transition: border-color 0.4s ease;
}

/* Profile Image Placeholder */
.stealth-theme .instructor-placeholder {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 3px solid rgba(255, 255, 255, 0.15) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 5px;
    transition: border-color 0.4s ease;
}

/* Yellow glow on ring when hovering card */
.stealth-theme .instructor-card:hover .instructor-img,
.stealth-theme .instructor-card:hover .instructor-placeholder {
    border-color: var(--accent-yellow) !important;
}

/* Typography */
.stealth-theme .instructor-card h3 {
    margin: 0 0 8px 0 !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.5px;
}

.stealth-theme .instructor-card p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.95rem !important;
    margin: 0 0 30px !important;
}

/* Role Badges (e.g. Administrator) */
.stealth-theme .instructor-card p span {
    background: rgba(255, 215, 23, 0.1) !important;
    color: var(--accent-yellow) !important;
    border: 1px solid rgba(255, 215, 23, 0.25) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Sleek View Profile Button */
.stealth-theme .instructor-card .btn-view {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 30px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.stealth-theme .instructor-card .btn-view:hover {
    background: #ffffff !important;
    color: #04101e !important;
    border-color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5in;
    margin-top: 50px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.news-item {
    background: white;
    padding: 35px;
    border-radius: 28px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.07);
    max-width: 720px;
    width: 100%;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(0,0,0,0.12);
}

/* Move footer to top using order */
.news-item-footer {
    order: -2;
    margin-top: 0;
    margin-bottom: 25px;
    padding-top: 0;
    padding-bottom: 20px;
    border-top: none;
    border-bottom: 1px solid #f0f2f5;
    color: #65676b;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-item h3 {
    order: -1;
    margin-top: 0;
    color: var(--primary-blue);
    font-size: 1.9em;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.news-item .tag-badge-container {
    order: 0;
    margin-bottom: 20px;
}

.news-item p {
    order: 1;
    white-space: pre-wrap;
    line-height: 1.8;
    font-weight: 400;
    color: #444;
    overflow-wrap: break-word;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.news-item .post-carousel {
    order: 2;
}

.news-item .attachments-container {
    order: 3;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
}

.news-img {
    width: 100%;
    height: auto;
    max-height: 550px;
    margin: 0;
    border-radius: 20px;
    object-fit: contain;
    background-color: #000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.tag-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.author-info { display: flex; align-items: center; gap: 14px; }
.author-img { 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}
.author-img-placeholder { 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #e0e0e0, #cfcfcf); 
    display: inline-block; 
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.post-attachment-link {
    background-color: #f0f2f5 !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    color: var(--secondary-blue) !important;
}

.post-attachment-link:hover {
    background-color: #e4e6eb !important;
}

/* Documents */
.doc-group { border: 1px solid #e1e4e8; border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.doc-group-header { background-color: #e0e0e0; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.doc-group-header h3 { margin: 0; font-size: 1.1em; color: #2c3e50; font-weight: 600; border: none; padding: 0; }
.doc-group-files { padding: 0; display: none; border-top: 1px solid #e1e4e8; }
.doc-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }

/* VMG Section (Index) */
/* Technical Block VMG Section */
.vmg-section {
    padding: 100px 0;
    background: #04101e;
    color: white;
}

.vmg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vmg-header {
    margin-bottom: 60px;
    border-left: 10px solid var(--accent-yellow);
    padding-left: 30px;
}

.vmg-header h2 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}

.vmg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vmg-card {
    background: #0a192f;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

/* Distinct color accents for each block */
.vmg-vision { border-bottom: 6px solid #007bff; }
.vmg-mission { border-bottom: 6px solid #00d4ff; }
.vmg-goal { border-bottom: 6px solid var(--accent-yellow); }

.vmg-label {
    font-family: monospace;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 30px;
}

.vmg-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.vmg-icon {
    font-size: 2rem;
}

.vmg-card h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vmg-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.vmg-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vmg-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.vmg-list li::before {
    content: "—";
    margin-right: 10px;
    color: var(--accent-yellow);
    font-weight: bold;
}

@media (max-width: 992px) {
    .vmg-grid { grid-template-columns: 1fr; gap: 30px; }
    .vmg-header h2 { font-size: 2rem; }
}

/* Post List Container (Admin/Faculty) */
.card.post-list { background: linear-gradient(135deg, rgba(0, 31, 63, 0.85), rgba(0, 86, 179, 0.85)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); color: white; }
.card.post-list h3 { color: white; }
.card.post-list .btn-maximize { color: rgba(255,255,255,0.8); }
.card.post-list .btn-maximize:hover { color: white; }

/* Welcome Card (Admin/Faculty) */
.welcome-card { background: linear-gradient(135deg, rgba(0, 31, 63, 0.85), rgba(0, 86, 179, 0.85)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); color: white; }
.welcome-card h2 { color: white; }
.welcome-card p { color: #e0e0e0; }

/* Dashboard Hero Section */
.dashboard-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #2c3e50; /* Fallback */
    min-height: 250px;
    display: flex;
    align-items: flex-end;
}
.dashboard-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.dashboard-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
}
.dashboard-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
    color: white;
}
.hero-profile-pic { width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.9); object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-profile-placeholder { width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 3em; font-weight: bold; color: white; backdrop-filter: blur(5px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-text h2 { margin: 0 0 5px 0; color: white; font-size: 2.2em; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-text p { margin: 0; color: rgba(255,255,255,0.9); font-size: 1.1em; font-weight: 500; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }

/* Status Card (Replaces old Welcome Card content) */
.status-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Scrollable Post List */
.post-item { border: 1px solid #e1e4e8; border-radius: 10px; padding: 20px; margin-bottom: 20px; background-color: white; color: #333; }
.post-item h4 { margin-top: 0; color: #2c3e50; font-size: 1.5em; font-weight: 600; margin-bottom: 10px; }
.post-item p { white-space: pre-wrap; line-height: 1.8; font-weight: 400; color: #333; overflow-wrap: break-word; }
.post-item small { color: #6c757d; font-size: 0.9em; }
.post-img { width: 100%; height: auto; margin: 15px 0; border-radius: 8px; max-height: 600px; object-fit: contain; background-color: #000; }
.post-carousel { position: relative; margin: 15px 0; border-radius: 8px; overflow: hidden; }
.carousel-inner { position: relative; width: 100%; height: 100%; overflow: hidden; }
.carousel-item { display: none; width: 100%; }
.carousel-item.active { display: block; animation: fadeIn 0.5s; }
.carousel-item img, .carousel-item video { margin-bottom: 0 !important; }
@keyframes fadeIn { from { opacity: .4 } to { opacity: 1 } }
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    transition: background-color 0.3s;
}
.carousel-control:hover { background-color: rgba(0, 0, 0, 0.7); }
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

.posts-scroll-container { max-height: 600px; overflow-y: auto; padding-right: 10px; }
.posts-scroll-container::-webkit-scrollbar { width: 6px; }
.posts-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.posts-scroll-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Links */
.links { text-align: center; font-size: 14px; margin-top: 20px; }
.links a { color: #007bff; text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .header { height: auto; padding: 5px 3%; flex-direction: column; gap: 5px; }
    .header-logo { height: 40px; }
    .header h1 { font-size: 1.2em; margin: 2px 0; }
    .header-sub { font-size: 0.65em; margin-bottom: 5px; }
    .header-center { width: 100%; }
    
    /* Responsive Navigation */
    .nav-bar { flex-wrap: wrap; justify-content: center; width: 100%; gap: 3px; }
    .nav-btn { flex: 1 1 auto; text-align: center; padding: 6px 8px; font-size: 0.75em; margin: 0; }
    .nav-bar .nav-btn { border-radius: 6px; margin-right: 0; }
    .nav-bar .nav-btn:first-child { border-radius: 6px; }
    .nav-bar .nav-btn:last-child { border-radius: 6px; margin-right: 0; }

    .container { padding: 10px; margin: 20px auto; }
    .vmg-section { grid-template-columns: 1fr; }
    
    .main-content { padding: 10px; }
    .card { padding: 15px; }
    .post-item { padding: 15px; }
    h2 { font-size: 1.4em; }
    h3 { font-size: 1.2em; }
    
    .profile-wrapper { flex-direction: column; align-items: center; }
    .profile-left { flex: 0 0 auto; margin-bottom: 20px; }
    .username-header, .dept { text-align: center; }
    
    /* Admin/Faculty Dashboard Hero */
    .dashboard-hero {
        min-height: auto;
    }
    .dashboard-hero-content {
        flex-direction: row;
        padding: 15px;
        text-align: left;
        gap: 15px;
        align-items: center;
    }
    .hero-profile-pic, .hero-profile-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
        border-width: 2px;
    }
    .hero-text h2 { font-size: 1.2em; margin-bottom: 2px; }
    .hero-text p { font-size: 0.85em; }

    .dashboard-grid { grid-template-columns: 1fr; gap: 15px; }
    .dashboard-container { flex-direction: column; }
    
    /* Mobile Sidebar Overlay */
    .sidebar { 
        position: fixed; 
        top: 0; 
        left: -280px; 
        width: 260px; 
        height: 100vh; 
        z-index: 1100; 
        transition: left 0.3s ease; 
        padding-top: 60px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    .sidebar.collapsed { left: 0; width: 260px; padding: 15px; padding-top: 60px; }
    .sidebar-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        right: auto;
        width: auto;
        z-index: 1101;
        background: rgba(0, 31, 63, 0.9);
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* Mobile Adjustments */
    .login-card, .register-card { width: 100%; box-shadow: none; border: 1px solid #eee; }
    .doc-group-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .doc-group-header > div { width: 100%; }
    .footer-content { flex-direction: column; gap: 30px; }
    
    /* Default table behavior */
    table { display: block; overflow-x: auto; white-space: nowrap; }

    /* Documents & Private Room Mobile Fixes */
    .doc-group-files table { display: block; overflow-x: visible; white-space: normal; width: 100%; }
    .doc-group-files tbody { display: block; width: 100%; }
    .doc-group-files tr { display: flex; flex-direction: column; border-bottom: 1px solid #eeeeee; padding: 15px 0; width: 100%; }
    .doc-group-files td { display: block; width: 100%; padding: 5px 0; text-align: left !important; border: none; word-break: break-word; white-space: normal; }
    .doc-group-files td:last-child { margin-top: 5px; }
    
    /* Submission Form Mobile */
    .submission-form input[type="text"], 
    .submission-form input[type="file"] {
        width: auto;
        display: inline-block;
        margin-bottom: 0;
        margin-right: 10px;
    }
    .submission-form button { width: auto; }

    /* Filter Form Mobile */
    .filter-container form { flex-direction: column; align-items: stretch !important; }
    .filter-container form > div { width: 100%; min-width: 0 !important; }

    .modal-content { width: 90%; margin: 20% auto; padding: 20px; }
}

/* Calendar Styles */
.calendar-container { text-align: center; background: linear-gradient(135deg, rgba(0, 31, 63, 0.85), rgba(0, 86, 179, 0.85)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); color: white; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-weight: 700; color: #ffffff; font-size: 1.2em; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-day-name { font-weight: 600; color: #e0e0e0; font-size: 0.9em; padding: 5px 0; }
.calendar-day { padding: 10px; background: #ffffff; border-radius: 6px; font-size: 0.9em; min-height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex-direction: column; color: #333; }
.calendar-day:hover { background-color: #f0f0f0; }
.calendar-day.today { background-color: #007bff; color: white; font-weight: bold; }
.calendar-day.empty { background: transparent; cursor: default; }
.event-marker {
    width: 6px;
    height: 6px;
    background-color: #dc3545;
    border-radius: 50%;
    margin-top: 2px;
}
.calendar-event-list { list-style: none; padding: 0; margin: 0; }
.calendar-event-item { padding: 10px; border-bottom: 1px solid #eee; }
.calendar-event-item:last-child { border-bottom: none; }
.calendar-event-title { font-weight: 600; color: #2c3e50; }
.calendar-event-desc { font-size: 0.9em; color: #666; margin-top: 5px; }

/* Submission Form */
.submission-form { margin-top: 10px; padding: 15px; background: #f1f1f1; border-radius: 8px; }
.submission-form input[type="text"] { width: auto; display: inline-block; margin-right: 10px; margin-bottom: 0; padding: 8px; }
.submission-form input[type="file"] { width: auto; display: inline-block; margin-right: 10px; margin-bottom: 0; padding: 5px; }
.submission-form button { width: auto; padding: 8px 16px; font-size: 14px; }

/* Page Titles */
.page-title { font-size: 2.5em; margin-bottom: 30px; text-align: center; color: #2c3e50; }

/* Uploader Pic Styles */
.uploader-pic { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.uploader-pic-placeholder { width: 50px; height: 50px; border-radius: 50%; background-color: #adb5bd; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 1.2em; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* Sidebar Dropdown */
.dropdown-btn { width: 100%; text-align: left; background: none; border: none; color: white; padding: 10px; cursor: pointer; font-family: inherit; font-size: 0.9em; font-weight: 500; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; white-space: nowrap; }
.dropdown-btn:hover { background-color: #495057; color: white; }
.dropdown-container { display: none; background-color: rgba(0,0,0,0.2); border-radius: 5px; margin-bottom: 5px; }
.dropdown-container a { padding-left: 25px; font-size: 0.85em; }

/* Personal Drive */
.drive-grid { display: flex; flex-direction: column; gap: 10px; }
.drive-item { display: flex; align-items: center; justify-content: space-between; background: white; border: 1px solid #000; border-radius: 8px; padding: 15px 20px; text-align: left; transition: background-color 0.2s; gap: 15px; }
.drive-item:hover { background-color: #f8f9fa; }
.drive-link { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; flex-grow: 1; }
.drive-icon { font-size: 1.5em; margin-bottom: 0; width: 30px; text-align: center; flex-shrink: 0; }
.folder-icon { color: #ffc107; }
.file-icon { color: #6c757d; }
.drive-name { font-size: 1em; font-weight: 500; color: #343a40; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0; flex-grow: 1; }
.drive-actions { display: flex; align-items: center; gap: 10px; margin-top: 0; flex-shrink: 0; }
.btn-delete-icon, .btn-download-icon { background: none; border: none; cursor: pointer; font-size: 1.1em; color: #adb5bd; padding: 2px 5px; transition: color 0.2s; }
.btn-delete-icon:hover { color: #dc3545; }
.btn-download-icon:hover { color: #007bff; }
.drive-delete { position: static; padding: 0; }
.drive-actions form { margin: 0; }

/* Action Menu (3 dots) */
.action-menu-container { position: relative; }
.action-menu-btn { background: none; border: none; font-size: 1.5em; cursor: pointer; color: #000; padding: 0 5px; line-height: 1; display: flex; align-items: center; height: 100%; outline: none; }
.action-menu-btn:hover { color: #343a40; }
.action-dropdown { display: none; position: absolute; right: 0; top: 100%; background: white; border: 1px solid #e9ecef; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 1000; min-width: 160px; overflow: hidden; }
.action-dropdown.show { display: block; }
.action-dropdown button, .action-dropdown a { display: block; width: 100%; text-align: left; padding: 10px 15px; background: none; border: none; color: #333; text-decoration: none; font-size: 0.9em; cursor: pointer; box-sizing: border-box; transition: background 0.2s; font-weight: 400; }
.action-dropdown button:hover, .action-dropdown a:hover { background-color: #f8f9fa; color: #007bff; }
.action-dropdown form { padding: 0; margin: 0; }
.action-dropdown form button { color: #dc3545; }
.action-dropdown form button:hover { background-color: #fff5f5; color: #dc3545; }

/* Share Modal List */
.share-list-container { max-height: 300px; overflow-y: auto; border: 1px solid #e1e4e8; border-radius: 8px; padding: 10px; background: #f9f9f9; text-align: left; }
.share-checkbox-item { display: flex; align-items: center; padding: 8px; border-bottom: 1px solid #eee; cursor: pointer; }
.share-checkbox-item:last-child { border-bottom: none; }
.share-checkbox-item:hover { background-color: #e9ecef; }
.share-checkbox-item input { width: auto; margin: 0 10px 0 0; }
.share-checkbox-item span { font-size: 0.95em; color: #333; }
.share-checkbox-item small { color: #6c757d; margin-left: 5px; }

/* Preview Modal */
.preview-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.preview-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background: rgba(0,0,0,0.2);
    z-index: 2001;
}
#previewFileName { font-weight: 500; }
.preview-close { font-size: 2.5em; font-weight: 300; color: white; background: none; border: none; cursor: pointer; line-height: 1; padding: 0; }
.preview-body { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding-top: 60px; box-sizing: border-box; }
.preview-body img { max-width: 100%; max-height: 100%; border: none; object-fit: contain; }
.preview-body iframe { width: 90vw; height: calc(100vh - 80px); border: none; background: white; }
.preview-loader, .preview-error { color: white; font-size: 1.2em; background: rgba(0,0,0,0.3); padding: 15px 25px; border-radius: 8px; }
.preview-text { background: white; padding: 20px; border-radius: 5px; max-width: 90%; max-height: 90%; overflow: auto; white-space: pre-wrap; word-wrap: break-word; color: #333; }

/* Styles for docx-preview library */
.docx-wrapper {
    background: transparent !important;
    padding: 20px !important;
    width: auto !important;
    min-height: auto !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.docx-wrapper > section.docx { 
    padding: 1in !important; 
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

/* Weekly Schedule Calendar */
.schedule-card { padding: 20px; }
.schedule-container {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr); /* Time column + 7 days */
    grid-template-rows: 40px; /* Day header row */
    position: relative;
    background: white;
    border: 2px solid #000;
    border-radius: 8px;
    overflow: hidden;
}
.schedule-header {
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
    background: #fafbfc;
    position: sticky;
    top: 0;
    z-index: 10;
}
.schedule-time-labels {
    grid-column: 1 / 2;
    padding-top: 40px; /* Offset for header */
}
.schedule-time-label {
    height: 60px; /* Corresponds to 1 hour */
    text-align: right;
    padding-right: 10px;
    font-size: 0.8em;
    color: #000;
    position: relative;
}
.schedule-time-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
    border-top: 1px solid #000;
}
.schedule-days-grid {
    grid-column: 2 / 9;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding-top: 40px; /* Offset for header */
}
.schedule-day-column {
    border-left: 1px solid #000;
    position: relative;
    height: 780px; /* 7 AM to 8 PM (13 hours * 60px) */
}
.schedule-event {
    position: absolute;
    left: 4px;
    right: 4px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    padding: 5px;
    font-size: 0.8em;
    overflow: hidden;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}
.schedule-event-title { font-weight: 600; }
.schedule-event-time { font-size: 0.9em; }

/* Schedule Modal */
#scheduleModal .modal-content { max-width: 500px; }
#scheduleModal form { padding: 0; }
#scheduleModal .button-group { display: flex; gap: 10px; margin-top: 20px; }
#scheduleModal .btn-delete { background-color: #dc3545; color: white; }
#editPostModal .modal-content { max-width: 800px; }

/* Post Attachments */
.post-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background-color: #f8f9fa;
    margin-bottom: 5px;
    transition: all 0.2s;
    width: fit-content;
}
.post-attachment-link:hover { background-color: #e9ecef; border-color: #d3d6d8; }
.post-attachment-icon { font-size: 1.2em; color: #6c757d; }
.post-attachment-name { color: #007bff; font-weight: 500; }

/* Maximized Post Modal */
.modal-content.maximized {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    margin: 2% auto; /* Override default margin */
}
.modal-content.maximized .posts-scroll-container {
    max-height: none !important;
    flex: 1;
    height: auto;
}
.btn-maximize {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #6c757d;
    transition: color 0.3s;
    padding: 0 10px;
    line-height: 1;
}
.btn-maximize:hover {
    color: #007bff;
}

/* Edit Post Modal Internal Styles */
.current-images-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; margin-bottom: 15px; }
.current-image-item { position: relative; width: 100px; height: 100px; }
.current-image-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.current-image-item .btn-delete-img { position: absolute; top: -5px; right: -5px; background: #dc3545; color: white; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; line-height: 1; padding: 0; display: flex; align-items: center; justify-content: center; }

.current-attachments-container { margin-top: 10px; margin-bottom: 15px; }
.current-attachment-item { display: flex; align-items: center; justify-content: space-between; background: #f8f9fa; padding: 8px 12px; border-radius: 6px; margin-bottom: 5px; border: 1px solid #e1e4e8; font-size: 0.9em; }
.current-attachment-item a { color: #007bff; text-decoration: none; font-weight: 500; }
.current-attachment-item .btn-delete-att { background: #dc3545; color: white; border: none; border-radius: 4px; padding: 2px 8px; cursor: pointer; font-size: 0.8em; margin-left: 10px; width: auto; }

/* Organizational Chart */
.org-editor-wrapper {
    width: 100%;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin-top: 20px;
}
.org-chart-canvas {
    background: linear-gradient(135deg, #001f3f 0%, #0056b3 100%);
    border: 2px dashed #ccc;
    position: relative;
    overflow: hidden;
}
.org-node {
    position: absolute;
    cursor: grab;
    user-select: none;
    box-sizing: border-box;
}
.org-node:active { cursor: grabbing; }
.org-circle {
    border-radius: 50%;
    background-color: #e9ecef;
    border: 3px solid #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.org-circle img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; border-radius: 50%; }
.org-text {
    padding: 5px 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 4px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 50px;
    text-align: center;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.org-text:focus { border-color: #007bff; outline: none; background: white; }
.org-toolbar { display: flex; gap: 10px; margin-bottom: 10px; }

/* Resize Handle */
.resize-handle {
    width: 12px;
    height: 12px;
    background-color: #007bff;
    position: absolute;
    right: -6px;
    bottom: -6px;
    cursor: se-resize;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 20;
    display: none;
}
.org-node:hover .resize-handle { display: block; }

/* Always show controls for nodes */
.org-node .resize-handle { display: block; }

.org-line {
    z-index: 1;
}

/* Rotation Handle for Lines */
.rotation-handle {
    width: 12px;
    height: 12px;
    background-color: #28a745; /* Green for rotate */
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: alias;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 20;
    display: none;
}
.org-line:hover .rotation-handle,
.org-line.selected .rotation-handle { display: block; }

/* Selected Node Indicator */
.org-node.selected {
    outline: 2px dashed #ff0000;
    z-index: 100;
}

/* Context Menu */
.context-menu {
    display: none;
    position: absolute;
    z-index: 2000;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 5px 0;
    min-width: 150px;
}
.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}
.context-menu-item:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* File Upload Previews */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}
.file-preview-item img, .file-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-preview-item .file-info {
    font-size: 0.7em;
    text-align: center;
    padding: 5px;
    word-break: break-all;
}
.btn-remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-add-file {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: inline-block;
    width: auto;
}
.btn-add-file:hover {
    background-color: #218838;
}

/* Facebook-style Profile */
.fb-container { max-width: 1000px; margin: 0 auto; width: 100%; }
.fb-header-card { background: white; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); margin-bottom: 20px; overflow: hidden; position: relative; }
.fb-cover { height: 250px; background: linear-gradient(135deg, #00c6ff, #0072ff); position: relative; }
.fb-profile-main { padding: 0 20px 20px; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fb-profile-pic-container { margin-top: -84px; position: relative; margin-bottom: 15px; }
.fb-profile-pic { width: 168px; height: 168px; border-radius: 50%; border: 4px solid white; object-fit: cover; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.fb-camera-btn { position: absolute; bottom: 10px; right: 10px; background: #e4e6eb; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 1.2em; transition: background 0.2s; }
.fb-camera-btn:hover { background: #d8dadf; }
.fb-name { font-size: 2em; font-weight: 700; color: #050505; margin: 0; }
.fb-bio { color: #65676b; font-size: 1.1em; margin: 5px 0 15px; max-width: 600px; }
.fb-divider { height: 1px; background: #ced0d4; width: 100%; margin: 20px 0; }
.fb-grid { display: grid; grid-template-columns: 4fr 6fr; gap: 15px; text-align: left; }
.fb-card { background: white; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); padding: 15px; margin-bottom: 15px; }
.fb-card-header { font-size: 1.25em; font-weight: 700; color: #050505; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.fb-intro-item { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #050505; font-size: 0.95em; }
.fb-icon { width: 20px; text-align: center; color: #8c939d; font-size: 1.2em; }
.fb-icon { width: 20px; text-align: center; color: #8c939d; font-size: 1.2em; }
.fb-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; background: #f0f2f5; font-size: 0.95em; box-sizing: border-box; margin-bottom: 10px; transition: background 0.2s; font-family: inherit; }
.fb-input:focus { background: white; border-color: #1877f2; outline: none; }
.fb-input[readonly] { background: transparent; border-color: transparent; padding: 0; margin-bottom: 5px; color: #050505; font-weight: 500; }
.fb-label { font-size: 0.85em; color: #65676b; font-weight: 600; margin-bottom: 2px; display: block; }
.fb-btn-blue { background: #1877f2; color: white; border: none; padding: 0 30px; height: 36px; border-radius: 6px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95em; transition: background 0.2s; }
.fb-btn-blue:hover { background: #166fe5; }
.fb-btn-gray { background: #e4e6eb; color: #050505; border: none; padding: 0 15px; height: 36px; border-radius: 6px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 0.95em; transition: background 0.2s; }
.fb-btn-gray:hover { background: #d8dadf; }
.fb-edit-controls { display: none; margin-top: 15px; justify-content: flex-end; gap: 10px; }

@media (max-width: 768px) { 
    .fb-grid { grid-template-columns: 1fr; } 
    .fb-profile-pic { width: 140px; height: 140px; }
    .fb-profile-pic-container { margin-top: -70px; }
}

/* Landing Footer */
.landing-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    padding: 40px 20px 20px;
    margin-top: auto;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}
.footer-section h3 { color: #FFD700; margin-bottom: 15px; font-size: 1.2em; }
.footer-section p { margin: 5px 0; color: #ccc; }
.social-icons { display: flex; gap: 15px; justify-content: center; margin-top: 10px; }
.social-icons img { width: 40px; height: 40px; object-fit: contain; transition: transform 0.3s; }
.social-icons img:hover { transform: scale(1.2); }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85em; color: #888; }

/* --- NEW MODERN LANDING PAGE STYLES --- */
:root {
    --primary-blue: #083358;
    --secondary-blue: #0D63A5;
    --accent-yellow: #FFD717;
    --text-dark: #2c3e50;
    --text-light: #f8f9fa;
}

/* Modern Header */
.main-header {
    background-color: var(--primary-blue);
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 50px;
    width: auto;
}

.brand-text h1 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.brand-tagline {
    color: var(--accent-yellow);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.nav-cta {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 23, 0.3);
}

.secondary-logo-container {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.brand-logo-small {
    height: 40px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-color: var(--primary-blue);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 51, 88, 0.9) 0%, rgba(13, 99, 165, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-yellow);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 23, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 23, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 33px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-blue);
}

/* Quick Access Section */
.quick-access-section {
    background-color: #f4f7f9;
    padding: 80px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 50px 50px 0 0;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.quick-access-info h3 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.quick-access-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--secondary-blue);
}

.feature-list li span {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.quick-access-form-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

/* Override modern-form for light background in Quick Access */
.quick-access-form-card .modern-form label {
    color: var(--primary-blue);
}

.quick-access-form-card .modern-form input,
.quick-access-form-card .modern-form select {
    background: #f8f9fa;
    border-color: #e1e4e8;
    color: #333;
}

.quick-access-form-card .modern-form input::placeholder {
    color: #adb5bd;
}

.quick-access-form-card .modern-form input:focus,
.quick-access-form-card .modern-form select:focus {
    background: #fff;
    border-color: var(--secondary-blue);
    color: #000;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.form-header p {
    color: #888;
    font-size: 0.9rem;
}

/* Main Content Area */
.landing-main {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    margin: 0;
    padding: 80px 20px 120px;
    background: #04101e; /* Extremely dark blue/black */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    z-index: 1;
    color: #ffffff; /* Base text color white */
}

/* Ensure all content sits in a perfect reading column */
.landing-main > * {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 950px; 
}

/* 2. Page Title */
.landing-main .page-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -1px;
}
.landing-main .page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 20px auto 0;
    border-radius: 10px;
}

/* 3. Filter Container - Same background color, delicate border */
.landing-main .filter-container {
    background: #04101e; /* Same as background */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Thin white outline */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); /* Deep shadow to pop off the bg */
    border-radius: 24px;
    padding: 35px 40px;
    margin-bottom: 60px;
}

/* Filter Labels & Clear Button */
.landing-main .filter-group label {
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.landing-main .btn-reset {
    color: #ff6b6b;
    font-weight: 600;
    transition: all 0.3s;
}
.landing-main .btn-reset:hover {
    color: #ff8787;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

/* Filter Buttons - White text outlines */
.landing-main .filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.landing-main .filter-btn:hover {
    background: rgb(255, 238, 0);
    border-color: #ffffff;
}
.landing-main .filter-btn.active {
    background: #ffea00;
    color: #04101e; /* Dark text only for the active pill to stand out */
    border-color: #ffffff;
    font-weight: 700;
}

/* 4. News Cards - Exact same bg, forced white text */
.landing-main .news-item {
    background: #04101e !important; /* EXACT same color as main background */
    border-radius: 5px;
    padding: 50px;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Thin white outline */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); /* Lifts the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-main .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Force All Text in Feed to White */
.landing-main .news-item h3 {
    font-size: 2.3rem;
    color: #ffffff !important;
    margin-bottom: 25px;
}
.landing-main .news-item p {
    color: rgba(255, 255, 255, 0.85) !important; /* Slightly softened white for reading comfort */
    font-size: 1.15rem;
}
.landing-main .author-info span strong {
    color: #ffffff !important;
}

/* 5. Glowing Translucent Tags (White text, colored glow) */
.landing-main .tag-badge {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #ffffff !important;
}
.landing-main .tag-badge[style*="background-color: #17a2b8;"] { background: rgba(23, 162, 184, 0.3) !important; border: 1px solid rgba(23, 162, 184, 0.6); }
.landing-main .tag-badge[style*="background-color: #6610f2;"] { background: rgba(102, 16, 242, 0.3) !important; border: 1px solid rgba(102, 16, 242, 0.6); }
.landing-main .tag-badge[style*="background-color: #e83e8c;"] { background: rgba(232, 62, 140, 0.3) !important; border: 1px solid rgba(232, 62, 140, 0.6); }
.landing-main .tag-badge[style*="background-color: #28a745;"] { background: rgba(40, 167, 69, 0.3) !important; border: 1px solid rgba(40, 167, 69, 0.6); }

/* 6. Media / Carousels */
.landing-main .post-carousel {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.landing-main .carousel-control {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.landing-main .carousel-control:hover {
    background: #ffffff;
    color: #04101e;
}

/* 7. Attachments - Dark Mode adjustments */
.landing-main .news-item strong {
    color: #ffffff !important;
}
.landing-main .post-attachment-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
}
.landing-main .post-attachment-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}
.landing-main .post-attachment-name {
    color: #ffffff !important;
}
.landing-main .post-attachment-icon {
    color: var(--accent-yellow) !important;
}

/* 8. Footer of the News Card */
.landing-main .news-item-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* White line instead of grey */
    color: rgba(255, 255, 255, 0.6) !important; /* Light grey text */
}
.landing-main .author-img {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 9. Empty State */
.landing-main .card[style*="text-align: center"] {
    background: #04101e !important;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 60px;
}
.landing-main .card[style*="text-align: center"] h3 {
    color: #ffffff !important;
}
.landing-main .card[style*="text-align: center"] p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 10. Pagination */
.landing-main .pagination {
    margin-top: 30px;
    gap: 8px;
}
.landing-main .pagination .page-link {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 30px !important;
}
.landing-main .pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}
.landing-main .pagination .page-link.active {
    background: #ffffff !important;
    color: #04101e !important;
    border-color: #ffffff !important;
    font-weight: bold;
}
.landing-main > .card[style*="border-top: none"] {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}

/* 2. Page Header & Access Code Form */
.landing-main .page-header-row {
    margin-bottom: 40px !important;
    align-items: center;
}
.landing-main .page-header-row .page-title {
    font-size: 2.8rem !important;
    margin-bottom: 0 !important;
    text-align: left !important;
}
.landing-main .page-header-row .page-title::after {
    margin: 15px 0 0 0 !important; /* Left-align the yellow underline */
}

/* Sleek Room Code Input & GO Button */
.access-code-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.landing-main .access-code-form input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 0 20px !important;
    height: 48px !important; /* Fixed height */
    font-size: 1rem;
    transition: all 0.3s;
    width: 200px;
    margin-bottom: 0 !important;
}

.btn-go {
    height: 48px !important;
    padding: 0 25px !important;
    background: #ffffff !important;
    color: #04101e !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s !important;
}

.btn-go:hover {
    background: var(--accent-yellow) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 23, 0.4) !important;
}

/* Modern Filter Form */
.filter-form-modern {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 0 !important;
}

.filter-group-modern {
    display: flex;
    flex-direction: column;
}

.filter-group-modern label {
    font-size: 0.85em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-filter {
    flex: 1;
    min-width: 200px;
}

.title-search {
    flex: 2;
    min-width: 300px;
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    align-items: flex-end;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.filter-actions-modern {
    display: flex;
    gap: 10px;
}

.btn-filter-modern {
    height: 48px;
    padding: 0 30px;
    background: #ffffff !important;
    color: #04101e !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter-modern:hover {
    background: var(--accent-yellow) !important;
}

.btn-reset-modern {
    height: 48px;
    line-height: 48px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #ff6b6b !important;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-reset-modern:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

/* 3. Filter Container Override */
.landing-main .filter-container[style*="background: #f8f9fa"] {
    background: #04101e !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    border-radius: 20px !important;
}
.landing-main .filter-container label {
    color: rgba(255, 255, 255, 0.8) !important;
}
.landing-main .filter-container select,
.landing-main .filter-container input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 10px;
}
.landing-main .filter-container select option {
    background: #04101e; /* Dropdown options dark */
    color: white;
}
.landing-main .filter-container .btn-download {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
}
.landing-main .filter-container .btn-download:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}
.landing-main .filter-container .btn-cancel {
    background: transparent !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
    border-radius: 10px !important;
}
.landing-main .filter-container .btn-cancel:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    border-color: #ff6b6b !important;
}

/* 4. Document Groups (The Cards) */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.5in;
    width: 100%;
}

.landing-main .doc-group {
    background: #04101e !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.landing-main .doc-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.doc-group-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 25px !important;
}

.doc-group-header h3 {
    margin: 0 0 5px 0 !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
}

.upload-info {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.upload-info strong {
    color: var(--accent-yellow);
}

.doc-description {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.doc-group-files {
    background: rgba(0, 0, 0, 0.2) !important;
}

.doc-group-files table {
    width: 100%;
    margin: 0;
}

.doc-group-files td {
    padding: 15px 25px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    vertical-align: middle;
}

.file-icon-span {
    margin-right: 12px;
    font-size: 1.3em;
    opacity: 0.7;
}

.download-cell {
    text-align: right;
}

/* 5. Private Room Submission Area */
.submission-area {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.landing-main .submission-form {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    padding: 20px !important;
}

.submission-title {
    display: block;
    margin-bottom: 15px;
    color: var(--accent-yellow);
    font-size: 1.1rem;
}

.submission-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.submission-inputs input[type="text"] {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    margin-bottom: 0 !important;
}

.btn-submit {
    background: var(--accent-yellow) !important;
    color: #04101e !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 12px 30px !important;
    width: auto !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    cursor: pointer;
    border: none;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 23, 0.3) !important;
}

/* Class Submissions Container */
.class-submissions-container {
    margin-top: 15px;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 30px;
}

.submissions-header {
    margin-top: 0;
    color: var(--accent-yellow);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.submissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.submission-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.submission-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.student-name {
    color: #ffffff;
    font-size: 1.1rem;
    display: block;
}

.upload-time {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.doc-group-files.nested {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent !important;
}

.nested-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.nested-file-item:last-child {
    border-bottom: none;
}

.nested-file-item .file-name {
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.nested-file-item a {
    color: var(--accent-yellow);
    font-weight: 600;
    text-decoration: none;
}

.no-submissions {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 0;
}

.btn-toggle.small {
    font-size: 0.75em;
    padding: 6px 12px;
    border-radius: 20px;
}
.landing-main div[style*="background: white; border-radius: 6px"] strong {
    color: #ffffff !important;
}
.landing-main div[style*="background: white; border-radius: 6px"] div[style*="color: #888"] {
    color: rgba(255, 255, 255, 0.5) !important;
}
.landing-main div[style*="border-bottom: 1px dashed #eee"] {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 6. Empty State */
.landing-main .card[style*="text-align: center"] {
    background: #04101e !important;
    border: 1px dashed rgba(255, 255, 255, 0.3) !important;
    border-radius: 28px !important;
}
.landing-main .card[style*="text-align: center"] h3 {
    color: #ffffff !important;
}
.landing-main .card[style*="text-align: center"] p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* "Back to Public Documents" Button */
.landing-main .btn-back {
    color: var(--accent-yellow) !important;
    border: 1px solid rgba(255, 215, 23, 0.3) !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
}
.landing-main .btn-back:hover {
    background: rgba(255, 215, 23, 0.1) !important;
    border-color: var(--accent-yellow) !important;
}

/* Video Section */
.video-section {
    margin-bottom: 80px;
    text-align: center;
}

.section-header h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.section-divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-yellow);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.video-description {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: black;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

/* VMG Cards */
.vmg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.vmg-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid transparent;
    text-align: center;
}

.vmg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.vmg-card.vision { border-top-color: var(--primary-blue); }
.vmg-card.mission { border-top-color: var(--secondary-blue); }
.vmg-card.goal { border-top-color: var(--accent-yellow); }

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.vmg-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.vmg-card p, .vmg-card li {
    color: #555;
    line-height: 1.6;
}

.vmg-card ul {
    text-align: left;
    padding-left: 20px;
}


/* Modern Footer */
.modern-footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.brand-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 300px;
}

.contact-col p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-socials img {
    width: 36px;
    height: 36px;
    transition: transform 0.2s;
}

.footer-socials img:hover {
    transform: scale(1.1);
}

.logo-col img {
    max-width: 150px;
    height: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* Modern Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 10, 20, 0.85); /* Deepest dark blue with high opacity */
    backdrop-filter: blur(12px); /* Strong frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #04101e; /* Stealth dark background */
    width: 90%;
    max-width: 480px;
    padding: 50px 40px;
    border-radius: 28px; /* Softer, modern corners */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Thin glass rim */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy entrance */
}

/* Close Button Animation */
.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}
.modal-close:hover { 
    color: #ff6b6b; /* Soft red on hover to indicate "close" */
    transform: rotate(90deg); /* Sleek spin effect */
}

/* Modal Typography */
.modal-header {
    text-align: center;
    margin-bottom: 35px;
}
.modal-header h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.modal-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 1rem;
}

/* Form Styling */
.modern-form .input-group {
    margin-bottom: 25px;
    text-align: left;
}
.modern-form label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.modern-form input, 
.modern-form select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05); /* Translucent dark input */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Fix for select dropdown options in dark mode */
.modern-form select option {
    background: #04101e;
    color: #ffffff;
}

/* Placeholder color */
.modern-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.modern-form input:focus, 
.modern-form select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(255, 215, 23, 0.15); /* Yellow ambient glow */
    outline: none;
}

/* Main Call-to-Action Button */
.btn-full {
    width: 100%;
    padding: 18px;
    background: #083358 !important; /* True Brand Primary Blue */
    color: #ffffff !important; /* Pure white text for maximum readability */
    border: 2px solid #083358 !important;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 31, 63, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-full:hover {
    background: #0D63A5 !important; /* Lighter secondary blue on hover */
    border-color: #0D63A5 !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 31, 63, 0.3);
}

/* Footer Links (Create Account / Forgot Password) */
.modal-footer-links {
    margin-top: 25px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}
.modal-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}
.modal-footer-links a:hover {
    color: var(--accent-yellow);
}

/* Smooth Entrance Animation */
@keyframes modalSlideIn {
    0% { opacity: 0; transform: scale(0.95) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Flash Messages in new container */
.flash-container {
    position: fixed;
    top: 100px;
    right: 20px;
    width: auto;
    max-width: 400px;
    z-index: 1100;
}

/* 5. Class Submissions Design */
.class-submissions-container {
    margin-top: 25px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
}

.submissions-header {
    margin-top: 0;
    color: var(--accent-yellow);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.submission-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.submission-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.student-name {
    color: #ffffff;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 4px;
}

.upload-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.nested-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.nested-file-item:last-child {
    border-bottom: none;
}

.nested-file-item .file-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
}

.btn-download-small {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-download-small:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.no-submissions {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Modern */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 20px 0;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
    }
    
    .main-nav.active {
        clip-path: circle(150% at 100% 0);
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        margin-bottom: 5px;
        border-radius: 2px;
    }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; gap: 10px; padding: 0 40px; }
    
    .quick-access-grid { grid-template-columns: 1fr; gap: 40px; }
    .quick-access-section { padding: 60px 0; margin-top: -30px; border-radius: 30px 30px 0 0; }
    
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .contact-col p { justify-content: center; }
    .footer-socials { justify-content: center; }
}

/* Pop-up Flash Messages */
.flash-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Allow clicking through the container */
}

.flash-message {
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 200px;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    pointer-events: auto; /* Re-enable clicks on the message itself */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.flash-message.alert-success, .flash-message.success {
    background-color: #28a745;
    border-left: 5px solid #1e7e34;
}

.flash-message.alert-danger, .flash-message.error, .flash-message.alert-login_error {
    background-color: #dc3545;
    border-left: 5px solid #bd2130;
}

.flash-message.alert-warning {
    background-color: #ffc107;
    color: #333;
    border-left: 5px solid #d39e00;
}

.flash-message.alert-info {
    background-color: #17a2b8;
    border-left: 5px solid #117a8b;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


.flash-message.alert-message {
    background-color: #333; /* Default dark grey */
    border-left: 5px solid #000;
}


.flash-overlay { z-index: 99999 !important; }


.flash-message.alert-view_grades_error {
    background-color: #dc3545;
    border-left: 5px solid #bd2130;
}


.btn-close-flash {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
    margin-left: 10px;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.btn-close-flash:hover {
    opacity: 1;
}


/* Header Clock Styles */
.header-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 20px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    white-space: nowrap;
}

.clock-time {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.clock-date {
    font-weight: 500;
    opacity: 0.9;
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

@media (max-width: 768px) {
    .header-clock {
        display: none; /* Hide on mobile to save space */
    }
}


/* Dashboard Header Clock */
.dashboard-header-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 15px;
    color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
}

.dashboard-header-clock .clock-time {
    font-size: 1rem;
}

.dashboard-header-clock .clock-date {
    font-size: 0.7rem;
    color: var(--accent-yellow);
}

