:root {
    --bg-color: #D3D3D3;
    --text-main: #000000;
    --font-stack: 'Fira Code', 'Courier New', monospace;

    /* Exam Colors */
    --yellow: #FFD700;
    --red: #ff3333;
    --blue: #00f3ff;
    --green: #00ff41;
    --light-blue: #ADD1FF;
    --gold: #d4af37;

    --btn-bg: rgba(20, 20, 20, 0.8);
    --crt-line: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to allow padding at top */
    padding: 3rem 1rem;
    /* Added padding for top/bottom gap */
    overflow-y: auto;
    /* Changed to auto to allow scrolling */
    position: relative;
    zoom: 95%;
    /* Shrink everything 5% */
}

/* CRT EFFECTS */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 9;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100px;
    }
}

/* LAYOUT */
.main-container {
    width: 90%;
    max-width: 800px;
    z-index: 11;
    text-align: center;
    border: 1px solid #333;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: relative;
}

.hub-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.hub-header h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff41;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff41;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.intro-text {
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: #888;
    text-align: left;
    padding: 0 2rem;
    border-left: 2px solid #333;
}

.intro-text p {
    margin-bottom: 0.5rem;
}

/* MENU GRID */
.exam-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .exam-menu {
        grid-template-columns: 1fr 1fr;
    }
}

/* BUTTON STYLES */
.exam-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--btn-bg);
    border: 1px solid #333;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.exam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.btn-text {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.btn-sub {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
}

/* COLOR VARIANTS */
.btn-yellow:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.btn-yellow:hover .btn-icon,
.btn-yellow:hover .btn-text {
    color: var(--yellow);
}

.btn-red:hover {
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.2);
}

.btn-red:hover .btn-icon,
.btn-red:hover .btn-text {
    color: var(--red);
}

.btn-blue:hover {
    border-color: var(--blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.btn-blue:hover .btn-icon,
.btn-blue:hover .btn-text {
    color: var(--blue);
}

.btn-green:hover {
    border-color: var(--green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.btn-green:hover .btn-icon,
.btn-green:hover .btn-text {
    color: var(--green);
}

.hub-footer {
    font-size: 0.7rem;
    color: #444;
    border-top: 1px solid #222;
    padding-top: 1rem;
}

/* FITNESS STATS - SHARED COMPONENTS */

.stat-item {
    margin-bottom: 1.5rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: var(--font-stack);
}

.stat-value {
    color: #666;
}

.progress-container {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--green);
    width: 0%;
    transition: width 1s ease-out;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Striped animation for progress bars */
.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
    animation: progress-stripe 1s linear infinite;
}

@keyframes progress-stripe {
    0% {
        background-position: 1rem 0;
    }

    100% {
        background-position: 0 0;
    }
}


/* LAYOUT WRAPPER & NEW STATS POSITIONING */

.layout-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 95%;
    max-width: 1200px;
    z-index: 11;
}

@media (min-width: 900px) {
    .layout-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Remove old Main Container width restrictions since wrapper handles it */
.main-container {
    width: 100%;
    max-width: 800px;
    /* keep other styles */
}

/* Updated Stats Panel & Quote Box Wrapper */
.left-sidebar,
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 1200px) {
    .layout-wrapper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 3rem;
        max-width: 1600px;
    }

    .left-sidebar,
    .right-sidebar {
        flex: 1.2;
        min-width: 300px;
    }

    .main-container {
        flex: 1.5;
        max-width: 700px;
    }
}

.fitness-stats,
.quote-box {
    background: rgba(20, 20, 20, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    width: 100%;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.quote-box h2 {
    color: var(--text-main);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.quote-content p {
    font-style: italic;
    color: #ccc;
    line-height: 1.6;
    font-size: 0.85rem;
}

.fitness-stats h2 {
    color: var(--text-main);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item .stat-label {
    color: #ddd;
}

.stat-item .stat-value {
    color: var(--green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Remove old content-grid styles if present, or override */
/* SOCIAL MEDIA LINKS */
.social-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 4px;
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: #666;
}

.social-icon {
    font-size: 1.2rem;
}

/* Brand specific hover effects */
.btn-youtube:hover {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.btn-instagram:hover {
    border-color: #c13584;
    /* Instagram purplish-pink */
    box-shadow: 0 0 10px rgba(193, 53, 132, 0.2);
    background: linear-gradient(45deg, rgba(30, 30, 30, 0.9), rgba(64, 93, 230, 0.1), rgba(193, 53, 132, 0.1));
    color: #e1306c;
}

/* SECURITY+ HUB BUTTONS */
.security-plus-hub {
    margin-top: 1rem;
}

.security-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.special-exam-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(40, 40, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: #eee;
    transition: all 0.3s ease;
}

.special-exam-btn .btn-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.special-exam-btn .btn-info {
    display: flex;
    flex-direction: column;
}

.special-exam-btn .btn-text {
    font-size: 0.9rem;
    font-weight: bold;
}

.special-exam-btn .btn-sub {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* Purple Theme Hover */
.special-exam-btn.purple-theme:hover {
    background: rgba(126, 34, 206, 0.1);
    border-color: #7e22ce;
    box-shadow: 0 0 15px rgba(126, 34, 206, 0.2);
}

.special-exam-btn.purple-theme:hover .btn-text {
    color: #c084fc;
}

/* Green Theme Hover */
.special-exam-btn.green-theme:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.special-exam-btn.green-theme:hover .btn-text {
    color: #34d399;
}

/* CISSP Theme Hover */
.special-exam-btn.cissp-theme:hover {
    background: rgba(173, 209, 255, 0.1);
    border-color: var(--light-blue);
    box-shadow: 0 0 15px rgba(173, 209, 255, 0.2);
}

.special-exam-btn.cissp-theme:hover .btn-text {
    color: var(--light-blue);
}

/* DAILY ACTIVITY REPORT */
.activity-report {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-navigator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

#current-date-display {
    font-size: 0.9rem;
    color: var(--yellow);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.date-btn {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #444;
    color: #eee;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}

.date-btn:hover {
    background: #555;
    border-color: #666;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.activity-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.activity-item label {
    font-size: 0.75rem;
    color: #ccc;
    text-transform: uppercase;
}

.activity-item input {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    color: var(--green);
    padding: 0.4rem;
    font-family: var(--font-stack);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s;
}

.activity-item input:focus {
    border-color: var(--green);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* EMAIL LINK STYLES */
.dev-services .email-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.dev-services .email-link:hover {
    background: var(--blue);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}