body {
    margin: 0;
    background: linear-gradient(180deg, #edf4fc 0, #f7f9fc 390px, #f7f9fc 100%);
    color: #27384b;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

::selection {
    background: #d3e6fb;
    color: #243c5a;
}

:focus-visible {
    outline: 3px solid #e7b500;
    outline-offset: 3px;
}

.welcome-text {
    color: #465b72;
    font-family: Arial, sans-serif;
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 400;
    line-height: 1.75;
    margin: 0 auto 28px;
    max-width: 680px;
    text-align: center;
}

.home-hero {
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 204, 41, 0.18), transparent 24%),
        linear-gradient(145deg, #fff 0%, #f5f9ff 100%);
    border: 2px solid #d7e3f1;
    border-radius: 20px;
    box-shadow: 0 12px 0 #dce6f1, 0 20px 38px rgba(51, 81, 116, 0.1);
    box-sizing: border-box;
    margin: clamp(32px, 7vw, 76px) auto 60px;
    max-width: 920px;
    padding: clamp(32px, 7vw, 68px) clamp(22px, 7vw, 74px);
    position: relative;
    text-align: center;
    width: calc(100% - 40px);
}

.hero-kicker {
    color: #507cad;
    font: bold 13px/1.4 Arial, sans-serif;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hero-title {
    color: #243c5a;
    font: bold clamp(34px, 6vw, 58px)/1.1 "Comic Sans MS", sans-serif;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
    text-shadow: 2px 3px 0 #dceafa;
}

.hero-cta {
    margin-top: 2px;
}

.home-social {
    box-sizing: border-box;
    margin: 0 auto 64px;
    max-width: 1100px;
    padding: 0 24px;
    width: 100%;
}

.home-social[hidden],
.home-social-grid[hidden] {
    display: none !important;
}

.home-social-heading,
.home-notifications-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.home-social-heading {
    border-bottom: 2px solid #d7e3f1;
    margin-bottom: 20px;
    padding-bottom: 14px;
}

.home-social-heading .hero-kicker {
    margin-bottom: 5px;
}

.home-social-heading h2 {
    color: #243c5a;
    font: bold 25px "Comic Sans MS", sans-serif;
    margin: 0;
}

.home-social-directory {
    color: #507cad;
    font: bold 14px Arial, sans-serif;
    text-decoration: none;
}

.home-social-directory:hover {
    text-decoration: underline;
}

.home-social-status {
    color: #536981;
    font: 14px Arial, sans-serif;
}

.home-social-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-social-card {
    background: linear-gradient(145deg, #fff, #f8fbff);
    border: 1px solid #d5e1ef;
    border-radius: 12px;
    box-shadow: 0 4px 0 #dce6f1;
    min-width: 0;
    padding: 17px;
}

.home-social-card h3 {
    color: #345d8c;
    font: bold 16px "Comic Sans MS", sans-serif;
    margin: 0;
}

.home-count {
    color: #7b8da2;
    font: 12px Arial, sans-serif;
    margin-left: 4px;
}

.home-social-list {
    list-style: none;
    margin: 12px 0 0;
    max-height: 270px;
    overflow-y: auto;
    padding: 0;
}

.home-social-list li {
    align-items: center;
    border-top: 1px solid #e8eef5;
    color: #536981;
    display: flex;
    flex-wrap: wrap;
    font: 13px/1.45 Arial, sans-serif;
    gap: 7px;
    padding: 9px 2px;
}

.home-social-list li:first-child {
    border-top: 0;
}

.home-social-list a {
    color: #315f91;
    font-weight: bold;
    text-decoration: none;
}

.home-social-list a:hover {
    text-decoration: underline;
}

.home-social-list .home-list-empty {
    color: #75869a;
    font-style: italic;
}

.home-request-item {
    justify-content: space-between;
}

.home-request-actions {
    display: inline-flex;
    gap: 5px;
}

.mini-action-button,
.text-action-button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #345d8c;
    cursor: pointer;
    font: bold 12px "Comic Sans MS", sans-serif;
    padding: 3px 2px;
}

.mini-action-button.secondary,
.text-action-button {
    background: #fff;
    border: 0;
    background: transparent;
    color: #345d8c;
}

.mini-action-button:hover,
.text-action-button:hover {
    color: #1f4775;
    text-decoration: underline;
}

.mini-action-button:disabled,
.text-action-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.home-notification-item {
    align-items: baseline !important;
}

.home-notification-item.unread {
    background: #f1f7fe;
    border-radius: 6px;
    padding-left: 7px;
    padding-right: 7px;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.login-box {
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    border: 2px solid #d5e1ef;
    padding: 32px;
    width: min(390px, 100%);
    box-sizing: border-box;
    border-radius: 14px;
    box-shadow: 0 7px 0 #dce6f1, 0 16px 32px rgba(48, 76, 109, 0.1);
    text-align: center;
}

.login-title {
    font-family: "Comic Sans MS", sans-serif;
    color: #243c5a;
    font-size: 25px;
    margin-top: 0;
    margin-bottom: 20px;
}

.login-label {
    display: block;
    text-align: left;
    font-family: "Comic Sans MS", sans-serif;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.login-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #b9cce1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-input:focus,
.signup-input:focus {
    border-color: #6498d2;
    box-shadow: 0 0 0 3px rgba(100, 152, 210, 0.17);
    outline: none;
}

.signup-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.signup-box {
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    border: 2px solid #d5e1ef;
    padding: 32px;
    width: min(390px, 100%);
    box-sizing: border-box;
    border-radius: 14px;
    box-shadow: 0 7px 0 #dce6f1, 0 16px 32px rgba(48, 76, 109, 0.1);
    text-align: center;
}

.signup-title {
    font-family: "Comic Sans MS", sans-serif;
    color: #243c5a;
    font-size: 25px;
    margin-top: 0;
    margin-bottom: 20px;
}

.signup-label {
    display: block;
    text-align: left;
    font-family: "Comic Sans MS", sans-serif;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.signup-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #b9cce1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Arial, sans-serif; 
}

.forums-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 900px; /* Keeps the forums from stretching too wide on massive monitors */
    margin: 40px auto; /* Centers the whole block horizontally */
    padding: 0 20px;
}

.forums-header h2 {
    font-family: "Comic Sans MS", sans-serif;
    color: #243c5a;
    border-bottom: 2px solid #d7e3f1;
    padding: 0 0 14px;
    margin-bottom: 24px;
    font-size: clamp(24px, 4vw, 34px);
}

/* The retro table layout */
.forum-category {
    width: 100%;
    border-collapse: collapse; /* Merges table borders together cleanly */
    border: 1px solid #d5e1ef;
    border-radius: 12px;
    box-shadow: 0 4px 0 #dce6f1, 0 10px 22px rgba(48, 76, 109, 0.08);
    margin-bottom: 24px;
    background-color: #fff;
    overflow: hidden;
}

.forum-category + .forum-category {
    margin-top: 22px;
}

/* The Blue Header Bars for each category */
.forum-category th {
    background: linear-gradient(110deg, #507cad, #6498d2);
    color: white;
    font-family: "Comic Sans MS", sans-serif;
    font-size: 16px;
    padding: 12px;
    border: 0;
    text-align: left;
}

/* Individual forum rows */
.forum-category td {
    padding: 15px;
    border: 1px solid #edf1f6;
    font-family: Arial, sans-serif;
}

/* Creating an alternating color stripe effect for rows (very retro) */
.forum-category tbody tr:nth-child(even) {
    background-color: #f4f7fb; 
}

/* Links inside the table */
.board-title {
    font-family: "Comic Sans MS", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #0044cc; /* Standard web-link blue */
    text-decoration: none;
}

.board-title:hover {
    text-decoration: underline;
}

.board-desc {
    font-size: 13px;
    color: #444;
    margin-top: 6px;
}

/* Sizing for the stat columns */
.col-stats {
    width: 100px;
    text-align: center !important;
}

.stat-number {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.message-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.message-box {
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    border: 2px solid #d5e1ef;
    padding: 32px;
    width: 400px;
    box-sizing: border-box;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 7px 0 #dce6f1, 0 16px 32px rgba(48, 76, 109, 0.1);
    text-align: center;
}

.message-title {
    font-family: "Comic Sans MS", sans-serif;
    color: #4CAF50; /* Green to indicate success */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 26px;
}

.message-text {
    font-family: Arial, sans-serif;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.message-box a + a {
    margin-left: 6px;
}
[hidden] { display: none !important; }

@media (max-width: 600px) {
    .welcome-text {
        font-size: clamp(20px, 6vw, 26px);
        padding: 0 16px;
    }

    .login-wrapper,
    .signup-wrapper {
        box-sizing: border-box;
        margin-top: 30px;
        padding: 0 16px;
        width: 100%;
    }

    .message-wrapper {
        box-sizing: border-box;
        margin-top: 30px;
        padding: 0 16px;
        width: 100%;
    }

    .login-box,
    .signup-box,
    .message-box {
        max-width: 100%;
        padding: 22px;
        width: 100% !important;
    }

    .forums-wrapper {
        margin-top: 28px;
        padding: 0 12px;
    }

    .forum-category td {
        padding: 10px 8px;
    }

    .forum-category th {
        padding: 9px 7px;
    }

    .home-social {
        padding: 0 16px;
    }

    .home-social-grid {
        grid-template-columns: 1fr;
    }

    .home-social-heading h2 {
        font-size: 22px;
    }
}
