:root {
    --deep-green: #0a2e1f;
    --athletic-yellow: #f1c40f;
    --sidebar-width: 280px;
}

/* Base Body Style for Dashboard Pages */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Login Page Specific Centering (Only applies when <body class="login-page">) */
body.login-page {
    background: #051a12;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    border-top: 5px solid var(--athletic-yellow);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    width: 80px;
    display: block;
    margin: 0 auto 15px;
}

.btn-primary {
    background: var(--deep-green);
    border: none;
    font-weight: 700;
    padding: 0.6rem;
}

.btn-primary:hover {
    background: #144d34;
}

.form-control:focus {
    border-color: var(--deep-green);
    box-shadow: 0 0 0 0.25rem rgba(10, 46, 31, 0.25);
}

.form-check-input:checked {
    background-color: var(--deep-green);
    border-color: var(--deep-green);
}

/* Verification Code Specific Style */
.code-input {
    letter-spacing: 8px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Dashboard Sidebar Navigation */
.sidenav {
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--deep-green);
    border-right: 4px solid var(--athletic-yellow);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1040;
    transition: all 0.3s ease;
}

/* Main Dashboard Content Wrapper */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 40px;
    transition: all 0.3s ease;
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

/* Media & News Section (index.php) */
.media-news-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
}

.video-fixed-height {
    height: 600px;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.video-fixed-height video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.news-updates-card {
    width: 30%;
    height: 600px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--deep-green);
    display: flex;
    flex-direction: column;
}

.news-scroll-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
}

/* Attendance Log Table Styles (student_attendance.php) */
.log-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-top: 4px solid var(--deep-green);
}

.table th {
    background-color: #f1f4f2;
    color: var(--deep-green);
    font-weight: 700;
}

.pagination .page-link { 
    color: var(--deep-green); 
}

.pagination .page-item.active .page-link {
    background-color: var(--deep-green);
    border-color: var(--deep-green);
    color: white;
}

/* Transform the OneSignal custom link container into a full sidebar button */
.onesignal-customlink-container {
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Dashboard Responsive Breakpoints */
@media (max-width: 992px) {
    .media-news-wrapper {
        flex-direction: column;
    }
    .video-fixed-height {
        width: 100%;
        height: 350px;
    }
    .news-updates-card {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .sidenav {
        height: auto;
        width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 4px solid var(--athletic-yellow);
        padding: 15px 20px;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    .video-fixed-height {
        height: 280px;
    }
    .mobile-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .pagination {
        font-size: 0.85rem;
    }
    .pagination .page-link {
        padding: 0.375rem 0.6rem;
    }
}

/* ==========================================================================
   ISOLATED LANDING PAGE STYLES (home.php only)
   ========================================================================== */

body.landing-page-body {
    display: flex;
    min-height: 100vh;
    background: url('uploads/webbg.png') no-repeat center center fixed;
    background-size: cover;
    box-sizing: border-box;
}

.landing-sidebar {
    width: 260px;
    background-color: var(--deep-green);
    border-right: 4px solid var(--athletic-yellow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 30px 20px;
    box-sizing: border-box;
}

.landing-sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-bottom: 30px;
}

.landing-sidebar-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 12px;
}

.landing-sidebar .landing-brand-text {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-align: center;
}

.landing-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.landing-sidebar-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.landing-sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--athletic-yellow);
}

.landing-sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-btn-google {
    background: var(--athletic-yellow);
    color: var(--deep-green);
    border: none;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.landing-btn-google:hover {
    opacity: 0.9;
    color: var(--deep-green);
}

.landing-main-wrapper {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

.landing-content-container {
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.landing-content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    border-left: 5px solid var(--deep-green);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.landing-content-card h2 {
    color: var(--deep-green);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--athletic-yellow);
    padding-bottom: 8px;
    display: inline-block;
}

.landing-announcement-item,
.landing-schedule-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.landing-announcement-item:last-child,
.landing-schedule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.landing-announcement-item h3,
.landing-schedule-item h3 {
    font-size: 1.2rem;
    color: #1a202c;
    margin-bottom: 5px;
}

.landing-meta-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.landing-announcement-item p,
.landing-schedule-item p {
    line-height: 1.6;
    color: #4a5568;
}

.landing-contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.landing-contact-box {
    background: #f7fafc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.landing-contact-box h4 {
    color: var(--deep-green);
    margin-bottom: 5px;
}

.landing-site-footer {
    background-color: var(--deep-green);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    border-top: 2px solid var(--athletic-yellow);
    margin-top: auto;
}

@media (max-width: 768px) {
    body.landing-page-body {
        flex-direction: column;
    }
    .landing-sidebar {
        width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 4px solid var(--athletic-yellow);
        padding: 15px 20px;
    }
    .landing-main-wrapper {
        margin-left: 0;
    }
    .landing-content-container {
        padding: 20px;
    }
}