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

/* =========================
   BODY
========================= */

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(
        135deg,
        #b9ddff,
        #ffffff 50%,
        #ffc1df
    );
    color: #222;
}


/* =========================
   NAVIGATION
========================= */

nav {
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px 0 0;
    background-color: #123B7A;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.brand h2 {
    margin-left: 10px;
    font-size: 25px;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff3f91;
}


/* Sign In */

.signin-btn {
    border: 1px solid white;
    padding: 8px 18px;
    border-radius: 6px;
    transition: 0.3s;
    margin-left: 5px;
}

.signin-btn:hover {
    background-color: white;
    color: #123B7A !important;
}


/* Join Now */

.join-btn {
    background-color: #ff3f91;
    color: white !important;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
    margin-left: -15px;
}

.join-btn:hover {
    background-color: white;
    color: #123B7A !important;
}


/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-content {
    max-width: 750px;
}

.hero-small-text {
    color: #ff3f91;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 60px;
    color: #123B7A;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.hero button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    background-color: #123B7A;
    color: white;
    transition: 0.3s;
}

.hero button:hover {
    background-color: #ff3f91;
    transform: translateY(-2px);
}


/* =========================
   HOMEPAGE RESOURCES
========================= */

.resources {
    text-align: center;
    padding: 60px 30px;
}

.resources h2 {
    font-size: 36px;
    color: #123B7A;
    margin-bottom: 10px;
}

.resources-subtitle {
    color: #555;
    margin-bottom: 35px;
}

.resource-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.resource-card {
    background-color: white;
    width: 240px;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.resource-card:hover {
    transform: translateY(-8px);
}

.resource-card h3 {
    color: #123B7A;
    margin-bottom: 15px;
}

.resource-card p {
    color: #555;
    line-height: 1.5;
}

.resource-card a {
    display: inline-block;
    margin-top: 15px;
    color: #ff3f91;
    text-decoration: none;
    font-weight: bold;
}


/* =========================
   RESOURCE PAGE
========================= */

.resource-page {
    text-align: center;
    padding: 55px 30px;
}

.resource-page h1 {
    font-size: 48px;
    color: #123B7A;
    margin-bottom: 10px;
}

.resource-page > p,
.semester-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
}


/* =========================
   SEMESTER CARDS
========================= */

.semester-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 45px;
    padding: 0 30px;
}

.semester-card {
    display: block;
    width: 250px;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.semester-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(18, 59, 122, 0.15);
}

.semester-card h2 {
    color: #123B7A;
    margin-bottom: 12px;
}

.semester-card p {
    color: #ff3f91;
}


/* =========================
   SUBJECTS
========================= */

.subjects {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

#subjects-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.subject-card {
    width: 100%;
    min-height: 215px;
    background: white;
    padding: 30px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30, 70, 120, 0.2);
}
.subject-card h2 {
    color: #173f7a;
    margin-bottom: 12px;
}
.subject-card p {
    color: #555;
    margin-bottom: 20px;
}
.subject-card a,
.subject-card span {
    color: #f34b9a;
    text-decoration: none;
    font-weight: bold;
}
.subject-card a:hover {
    text-decoration: underline;
}
/* =========================
   STUDY MATERIAL
========================= */
#material-section {
    display: none;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
#material-section h2 {
    color: #17427e;
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
}
.material-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.material-item {
    padding: 18px;
    background: #f8f9ff;
    border-radius: 12px;
    text-align: center;
    color: #17427e;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.material-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 70, 120, 0.12);
}
/* =========================
   BACK BUTTON
========================= */
.back-btn {
    display: inline-block;
    margin-bottom: 25px;
    color: #123B7A;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}
.back-btn:hover {
    color: #ff3f91;
    transform: translateX(-3px);
}
/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 900px) {
    #subjects-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .material-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    nav {
        height: auto;
        min-height: 65px;
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .brand img {
        width: 50px;
        height: 50px;
    }
    .brand h2 {
        font-size: 18px;
        margin-left: 6px;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .nav-links a {
        font-size: 13px;
    }
    .signin-btn {
        padding: 6px 12px;
        margin-left: 0;
    }
    .join-btn {
        padding: 7px 12px;
        margin-left: 0;
    }
    .hero h1 {
        font-size: 42px;
    }
    .resource-page h1 {
        font-size: 38px;
    }
    #subjects-container {
        grid-template-columns: 1fr;
    }
    .material-list {
        grid-template-columns: 1fr;
    }
    .subjects {
        width: 95%;
    }
    #material-section {
        width: 95%;
    }
}


/* =========================
   SIGN IN PAGE
========================= */

.signin-page {
    min-height: calc(100vh - 65px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.signin-card {
    width: 100%;
    max-width: 430px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.signin-card h1 {
    color: #123B7A;
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.signin-card > p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.signin-card form {
    display: flex;
    flex-direction: column;
}

.signin-card label {
    color: #123B7A;
    font-weight: bold;
    margin-bottom: 8px;
}

.signin-card input {
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    outline: none;
}

.signin-card input:focus {
    border-color: #123B7A;
}

.signin-card button {
    background-color: #123B7A;
    color: white;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.signin-card button:hover {
    background-color: #ff3f91;
    transform: translateY(-2px);
}

.signup-text {
    margin-top: 25px;
    margin-bottom: 0 !important;
}

.signup-text a {
    color: #ff3f91;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   ABOUT PAGE
========================= */

.about-page {
    min-height: calc(100vh - 65px);
    padding: 70px 30px;
    text-align: center;
}

.about-header {
    max-width: 750px;
    margin: 0 auto 50px;
}

.about-label {
    color: #ff3f91;
    font-size: 14px !important;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px !important;
}

.about-header h1 {
    font-size: 52px;
    line-height: 1.15;
    color: #123B7A;
    margin-bottom: 20px;
}

.about-intro {
    color: #555;
    font-size: 19px !important;
    line-height: 1.6;
    margin-bottom: 0 !important;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.about-card {
    background: white;
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30, 70, 120, 0.15);
}

.about-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.about-card h2 {
    color: #123B7A;
    margin-bottom: 15px;
    font-size: 24px;
}

.about-card p {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}


/* =========================
   ADMIN DASHBOARD
========================= */

.admin-page {
    min-height: calc(100vh - 70px);
    padding: 45px 6%;
    background: linear-gradient(
        135deg,
        #eef7ff,
        #ffffff,
        #fff0f8
    );
}

.admin-header {
    margin-bottom: 35px;
}

.admin-header .about-label {
    color: #ff3f91;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.admin-header h1 {
    color: #173f7a;
    font-size: 42px;
    margin: 0 0 10px;
}

.admin-header p:last-child {
    color: #666;
    font-size: 17px;
    margin: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.admin-grid .about-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(20, 60, 120, 0.10);
    border: 1px solid rgba(23, 63, 122, 0.08);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.admin-grid .about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(20, 60, 120, 0.15);
}

.admin-grid .about-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5ff;
    border-radius: 16px;
    font-size: 30px;
    margin-bottom: 18px;
}

.admin-grid .about-card h2 {
    color: #173f7a;
    font-size: 25px;
    margin: 0 0 8px;
}

.admin-grid .about-card > p {
    color: #666;
    margin-bottom: 22px;
}

/* Admin buttons */

.admin-grid button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #173f7a;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-grid button:hover {
    background: #ff3f91;
    transform: translateY(-1px);
}

/* Admin selects */

.admin-grid select,
.admin-grid input[type="text"],
.admin-grid input[type="number"] {
    border: 1px solid #d7dce5;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: white;
    outline: none;
    margin: 5px 4px 5px 0;
}

.admin-grid select:focus,
.admin-grid input[type="text"]:focus,
.admin-grid input[type="number"]:focus {
    border-color: #173f7a;
    box-shadow: 0 0 0 3px rgba(23, 63, 122, 0.08);
}

/* File input */

.admin-grid input[type="file"] {
    display: block;
    margin: 12px 0;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px dashed #bfc7d6;
    border-radius: 10px;
    background: #f8fafc;
}

/* Subject/resource lists */

#admin-subject-list,
#resource-list {
    margin-top: 20px !important;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 13px 15px;
    margin-bottom: 10px;
    background: #f7f9fc;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
}

.material-item button {
    margin-left: auto;
    padding: 7px 11px;
    font-size: 12px;
}

.material-item button + button {
    margin-left: 0;
}

/* Logout */

#logout-btn {
    cursor: pointer;
}

/* Mobile */

@media (max-width: 800px) {

    .admin-page {
        padding: 30px 18px;
    }

    .admin-header h1 {
        font-size: 32px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid .about-card {
        padding: 24px;
    }

    .admin-grid select,
    .admin-grid input[type="text"],
    .admin-grid input[type="number"] {
        width: 100%;
        box-sizing: border-box;
        margin: 5px 0;
    }

    .admin-grid button {
        margin-top: 6px;
    }

}

/* =========================
   ADMIN STATISTICS
========================= */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(23, 63, 122, 0.08);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 25px rgba(20, 60, 120, 0.08);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(20, 60, 120, 0.13);
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5ff;
    border-radius: 14px;
    font-size: 26px;
}

.stat-card h2 {
    margin: 0;
    color: #173f7a;
    font-size: 28px;
}

.stat-card p {
    margin: 3px 0 0;
    color: #777;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 900px) {

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 500px) {

    .admin-stats {
        grid-template-columns: 1fr;
    }

}

/* =========================
   USER MANAGEMENT
========================= */

.user-management {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(23, 63, 122, 0.08);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(20, 60, 120, 0.10);
}

.user-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.user-management-header .about-label {
    margin: 0 0 5px;
}

.user-management-header h2 {
    color: #173f7a;
    font-size: 26px;
    margin: 0 0 5px;
}

.user-management-header p:last-child {
    color: #666;
    margin: 0;
}

.user-management-header button {
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    background: #173f7a;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.user-management-header button:hover {
    background: #ff3f91;
}


/* User rows */

#user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    background: #f7f9fc;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info strong {
    color: #173f7a;
    font-size: 15px;
}

.user-info span {
    color: #777;
    font-size: 14px;
}

.user-role {
    padding: 6px 12px;
    border-radius: 20px;
    background: #eef5ff;
    color: #173f7a;
    font-size: 12px;
    font-weight: 700;
}


/* Mobile */

@media (max-width: 600px) {

    .user-management {
        padding: 22px;
    }

    .user-management-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-row {
        flex-direction: column;
        align-items: flex-start;
    }

}
/* =========================
   DELETE USER BUTTON
========================= */

.delete-user-btn {
    border: none;
    border-radius: 9px;
    padding: 8px 14px;
    background: #fff0f0;
    color: #d93636;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.delete-user-btn:hover {
    background: #d93636;
    color: white;
}

/* =========================
   RESOURCE SEARCH
========================= */

#resource-search {
    width: 420px;
    max-width: 70%;
    padding: 14px 18px;
    border: 1px solid #d7dce5;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: white;
}

#resource-search:focus {
    border-color: #173f7a;
    box-shadow: 0 0 0 4px rgba(23, 63, 122, 0.08);
}

#resource-search + button {
    padding: 14px 22px;
    margin-left: 8px;
    border: none;
    border-radius: 12px;
    background: #173f7a;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#resource-search + button:hover {
    background: #ff3f91;
    transform: translateY(-1px);
}


/* Search results */

#search-results {
    width: min(850px, 90%);
    margin: 30px auto;
    text-align: left;
}

#search-results h2 {
    color: #173f7a;
    margin-bottom: 18px;
}

#search-results .material-item {
    background: white;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 5px 18px rgba(20, 60, 120, 0.07);
}

#search-results .material-item a {
    color: #173f7a;
    font-weight: 600;
    text-decoration: none;
}

#search-results .material-item a:hover {
    color: #ff3f91;
}


/* Mobile */

@media (max-width: 600px) {

    #resource-search {
        width: 100%;
        max-width: 100%;
    }

    #resource-search + button {
        width: 100%;
        margin: 10px 0 0;
    }

}

/* ===============================
   PROFILE PAGE
================================ */

.profile-page {
    min-height: calc(100vh - 80px);
    padding: 60px 20px;
}

.profile-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* PROFILE HEADER */

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf2ff;

    font-size: 34px;
}

.profile-header h1 {
    margin: 0;
    color: #173f7a;
    font-size: 34px;
}

.profile-header p {
    margin: 6px 0 0;
    color: #666;
    font-size: 15px;
}


/* PROFILE CARD */

.profile-card {
    background: white;

    border-radius: 18px;

    padding: 28px;

    margin-bottom: 22px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-card h2 {
    margin-top: 0;
    margin-bottom: 22px;

    color: #173f7a;

    font-size: 21px;
}


/* PERSONAL INFORMATION */

.profile-info {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 16px;

    background: #f8faff;

    border-radius: 12px;
}

.profile-label {
    font-size: 13px;

    color: #777;

    font-weight: 600;
}

.profile-value {
    font-size: 16px;

    color: #222;

    font-weight: 600;

    word-break: break-word;
}


/* ACCOUNT OPTIONS */

.profile-options {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.profile-option {
    width: 100%;

    display: grid;

    grid-template-columns:
        40px 1fr 25px;

    align-items: center;

    text-align: left;

    padding: 16px;

    border: 1px solid #e5e9f2;

    border-radius: 12px;

    background: white;

    cursor: pointer;

    transition: 0.2s ease;
}

.profile-option:hover {
    background: #f6f9ff;

    transform: translateY(-1px);
}

.profile-option > span:first-child {
    font-size: 23px;
}

.profile-option strong {
    display: block;

    color: #173f7a;

    font-size: 15px;
}

.profile-option small {
    display: block;

    margin-top: 4px;

    color: #777;

    font-size: 13px;
}

.profile-option > span:last-child {
    font-size: 20px;

    color: #777;

    text-align: center;
}


/* LOGOUT */

.profile-logout-btn {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 12px;

    background: #fff0f0;

    color: #d93636;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.profile-logout-btn:hover {
    background: #d93636;

    color: white;
}


/* ===============================
   PROFILE MOBILE
================================ */

@media (max-width: 700px) {

    .profile-page {
        padding: 35px 15px;
    }

    .profile-header {
        gap: 14px;
    }

    .profile-avatar {
        width: 58px;
        height: 58px;

        font-size: 28px;
    }

    .profile-header h1 {
        font-size: 27px;
    }

    .profile-header p {
        font-size: 13px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

}
/* ===============================
   SAVED RESOURCE REMOVE BUTTON
================================ */

.profile-option .saved-remove-btn {
    width: auto;
    min-width: 80px;
    padding: 9px 16px;

    border: 1px solid #dc2626;
    border-radius: 8px;

    background: white;
    color: #dc2626;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    flex-shrink: 0;

    transition: all 0.2s ease;
}

.profile-option .saved-remove-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

.profile-option .saved-remove-btn:active {
    transform: translateY(0);
}
/* ===============================
   SAVED RESOURCE ITEMS
================================ */

.saved-resource-item {
    display: flex;
    align-items: center;
    gap: 16px;

    width: 100%;
    box-sizing: border-box;

    padding: 18px 20px;
    margin-bottom: 12px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* PDF ICON */

.saved-resource-item > span {
    font-size: 26px;
    flex-shrink: 0;
}


/* RESOURCE INFORMATION */

.saved-resource-item > div {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* RESOURCE TITLE */

.saved-resource-item strong {
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 700;
}


/* SUBJECT + DATE */

.saved-resource-item small {
    color: #64748b;
    font-size: 13px;
}


/* REMOVE BUTTON */

.saved-resource-item .saved-remove-btn {
    width: auto;
    min-width: 82px;

    padding: 9px 15px;

    border: 1px solid #dc2626;
    border-radius: 8px;

    background: #ffffff;
    color: #dc2626;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    flex-shrink: 0;

    transition: all 0.2s ease;
}


.saved-resource-item .saved-remove-btn:hover {
    background: #dc2626;
    color: #ffffff;
}


/* MOBILE */

@media (max-width: 600px) {

    .saved-resource-item {
        align-items: flex-start;
        padding: 15px;
    }

    .saved-resource-item .saved-remove-btn {
        min-width: auto;
        padding: 7px 10px;
        font-size: 13px;
    }

}
/* ===============================
   SAVED RESOURCE TITLE
================================ */

.saved-resource-title {
    display: block;

    color: #1e3a8a;
    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    margin-bottom: 5px;

    cursor: pointer;
}

.saved-resource-title:hover {
    text-decoration: underline;
}

/* =================================
   PROJECT SUBMISSION FORM
================================= */

.project-form {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input[readonly] {
    background: #eef4ff;
    color: #475569;
    cursor: not-allowed;
}

.form-group small {
    font-size: 12px;
    color: #64748b;
}


/* Full width fields */

.form-group:nth-child(2),
.form-group:nth-child(3),
.form-group:nth-child(7) {
    grid-column: 1 / -1;
}


/* File input */

.form-group input[type="file"] {
    padding: 10px;
    background: #ffffff;
    cursor: pointer;
}


/* Submit button */

.project-form .profile-logout-btn {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 5px;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-form .profile-logout-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.20);
}


/* =================================
   MOBILE
================================= */

@media (max-width: 700px) {

    .project-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group:nth-child(2),
    .form-group:nth-child(3),
    .form-group:nth-child(7) {
        grid-column: auto;
    }

    .project-form .profile-logout-btn {
        grid-column: auto;
    }

}
/* =================================
   PROJECT CARDS
================================= */

.project-card {
    display: flex;
    overflow: hidden;
    width: 100%;
    margin-bottom: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.project-card-image {
    width: 220px;
    min-width: 220px;
    height: 190px;
    overflow: hidden;
    background: #eef4ff;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
}

.project-card-content {
    flex: 1;
    padding: 22px 24px;
    min-width: 0;
}

.project-card-content h3 {
    margin: 0 0 7px;
    color: #1e3a8a;
    font-size: 21px;
}

.project-student {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.project-description {
    margin: 0 0 15px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 17px;
}

.project-technologies span {
    padding: 5px 10px;
    border-radius: 20px;
    background: #eef4ff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-links a {
    padding: 8px 14px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.project-links a:hover {
    background: #1d4ed8;
}

@media (max-width: 700px) {

    .project-card {
        flex-direction: column;
    }

    .project-card-image {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .project-card-content {
        padding: 18px;
    }

}
/* ===============================
   PROJECT DETAILS PAGE
================================ */

.project-details-container {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.project-details-card {
    display: flex;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.project-details-image {
    width: 48%;
    min-width: 48%;
    height: 480px;
    overflow: hidden;
    background: #eef4ff;
}

.project-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-details-image .project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
}

.project-details-content {
    flex: 1;
    padding: 45px;
}

.project-details-content h1 {
    margin: 0 0 10px;
    color: #1e3a8a;
    font-size: 36px;
}

.project-details-student {
    margin: 0 0 30px;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.project-details-content h3 {
    margin: 25px 0 10px;
    color: #1e293b;
    font-size: 18px;
}

.project-details-description {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.project-details-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-details-technologies span {
    padding: 7px 13px;
    border-radius: 20px;
    background: #eef4ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
}

.project-details-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.project-details-links a {
    padding: 11px 18px;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.project-details-links a:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* MOBILE */

@media (max-width: 750px) {

    .project-details-container {
        margin: 30px auto;
        padding: 0 15px;
    }

    .project-details-card {
        flex-direction: column;
    }

    .project-details-image {
        width: 100%;
        min-width: 100%;
        height: 280px;
    }

    .project-details-content {
        padding: 25px 20px;
    }

    .project-details-content h1 {
        font-size: 28px;
    }

}

/* ===============================
   ADMIN PROJECT SUBMISSIONS
================================ */

.admin-section {
    width: 100%;
    margin-top: 45px;
    padding: 32px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.admin-section-header {
    margin-bottom: 25px;
}

.admin-section-header h2 {
    margin: 0 0 7px;
    color: #1e3a8a;
    font-size: 28px;
}

.admin-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}


/* PROJECT CARD */

.admin-project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding: 22px;
    margin-bottom: 16px;
    box-sizing: border-box;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;

    transition: all 0.2s ease;
}

.admin-project-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 5px 18px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}


/* PROJECT INFORMATION */

.admin-project-info {
    flex: 1;
    min-width: 0;
}

.admin-project-info h3 {
    margin: 0 0 10px;
    color: #1e3a8a;
    font-size: 21px;
}

.admin-project-info p {
    margin: 7px 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.admin-project-info strong {
    color: #1e293b;
}

.admin-project-info a {
    display: inline-block;
    margin-top: 8px;
    margin-right: 8px;
    padding: 7px 12px;

    background: #eef4ff;
    color: #1e3a8a;

    border-radius: 7px;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.admin-project-info a:hover {
    background: #dbeafe;
}


/* ACTION BUTTONS */

.admin-project-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 115px;
}

.admin-project-actions button {
    width: 115px;
    padding: 10px 14px;

    border: none;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
    transition: all 0.2s ease;
}


/* APPROVE */

.admin-project-actions button:first-child {
    background: #16a34a;
    color: #ffffff;
}

.admin-project-actions button:first-child:hover {
    background: #15803d;
    transform: translateY(-1px);
}


/* REJECT */

.admin-project-actions button:last-child {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.admin-project-actions button:last-child:hover {
    background: #dc2626;
    color: #ffffff;
}


/* EMPTY MESSAGE */

#admin-projects-container > p {
    margin: 0;
    padding: 25px;

    text-align: center;

    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;

    color: #64748b;
    font-size: 14px;
}


/* MOBILE */

@media (max-width: 700px) {

    .admin-section {
        margin-top: 30px;
        padding: 20px 15px;
    }

    .admin-section-header h2 {
        font-size: 23px;
    }

    .admin-project-card {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .admin-project-actions {
        flex-direction: row;
        width: 100%;
    }

    .admin-project-actions button {
        flex: 1;
        width: auto;
    }

}
/* ===============================
   ADMIN DELETE PROJECT BUTTON
================================ */

.admin-delete-project-btn {
    width: 115px;
    padding: 10px 14px;
    border: 1px solid #dc2626 !important;
    border-radius: 8px;
    background: #ffffff !important;
    color: #dc2626 !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-delete-project-btn:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

@media (max-width: 700px) {

    .admin-delete-project-btn {
        width: auto;
        flex: 1;
    }

}
/* ===============================
   OPPORTUNITY MANAGEMENT
================================ */

.opportunity-admin-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding: 25px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
}

.opportunity-admin-form input,
.opportunity-admin-form select,
.opportunity-admin-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.opportunity-admin-form input:focus,
.opportunity-admin-form select:focus,
.opportunity-admin-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.opportunity-admin-form textarea {
    min-height: 100px;
    resize: vertical;
    grid-column: span 2;
}

.opportunity-admin-form > button {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.opportunity-admin-form > button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* ===============================
   ADMIN OPPORTUNITY CARDS
================================ */

.admin-opportunity-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    margin-top: 18px;
    padding: 22px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);

    transition: 0.2s;
}

.admin-opportunity-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
}

.admin-opportunity-info {
    flex: 1;
    min-width: 0;
}

.admin-opportunity-info h3 {
    margin: 0 0 10px;

    color: #1e3a8a;
    font-size: 21px;
}

.admin-opportunity-info p {
    margin: 7px 0;

    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.admin-opportunity-info strong {
    color: #1e293b;
}


/* ===============================
   OPPORTUNITY ACTIONS
================================ */

.admin-opportunity-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;

    min-width: 120px;
}

.admin-opportunity-actions button {
    width: 120px;

    padding: 10px 14px;

    border: none;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.2s;
}

.admin-opportunity-actions button:first-child {
    background: #eef4ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.admin-opportunity-actions button:first-child:hover {
    background: #2563eb;
    color: #ffffff;
}

.admin-delete-opportunity-btn {
    background: #ffffff !important;
    color: #dc2626 !important;
    border: 1px solid #dc2626 !important;
}

.admin-delete-opportunity-btn:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}


/* ===============================
   EMPTY OPPORTUNITY MESSAGE
================================ */

#admin-opportunities-container > p {
    margin-top: 18px;
    padding: 25px;

    text-align: center;

    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;

    color: #64748b;
    font-size: 14px;
}


/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {

    .opportunity-admin-form {
        grid-template-columns: 1fr;
    }

    .opportunity-admin-form textarea {
        grid-column: span 1;
    }

    .opportunity-admin-form > button {
        width: 100%;
    }

    .admin-opportunity-card {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-opportunity-actions {
        flex-direction: row;
        width: 100%;
    }

    .admin-opportunity-actions button {
        flex: 1;
        width: auto;
    }
}
/* ===============================
   STUDENT OPPORTUNITY CARDS
================================ */

.opportunity-card {
    width: 100%;
    margin-bottom: 20px;
    padding: 25px;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);

    transition: 0.2s;
}

.opportunity-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.09);
    transform: translateY(-2px);
}

.opportunity-main {
    width: 100%;
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.opportunity-header h3 {
    margin: 0 0 7px;
    color: #1e3a8a;
    font-size: 23px;
}

.opportunity-company {
    margin: 0;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

.opportunity-type {
    padding: 7px 12px;
    border-radius: 20px;

    background: #eef4ff;
    color: #1d4ed8;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.opportunity-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 20px;
}

.opportunity-details span {
    padding: 8px 12px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;

    color: #475569;
    font-size: 13px;
}

.opportunity-info {
    margin-top: 18px;
}

.opportunity-info p {
    margin: 8px 0;

    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.opportunity-info strong {
    color: #1e293b;
}

.opportunity-description {
    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #e2e8f0;

    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.opportunity-actions {
    margin-top: 20px;
}

.apply-opportunity-btn {
    display: inline-block;

    padding: 11px 18px;

    background: #2563eb;
    color: #ffffff;

    border-radius: 8px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    transition: 0.2s;
}

.apply-opportunity-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.no-apply-link {
    color: #94a3b8;
    font-size: 13px;
}


/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {

    .opportunity-card {
        padding: 20px;
    }

    .opportunity-header {
        flex-direction: column;
        gap: 12px;
    }

    .opportunity-type {
        align-self: flex-start;
    }

    .opportunity-details {
        flex-direction: column;
    }

    .opportunity-details span {
        width: 100%;
        box-sizing: border-box;
    }

    .apply-opportunity-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* ===============================
   EXTERNAL INTERNSHIP PLATFORMS
================================ */

.external-platforms {
    margin-top: 25px;
}

.external-platforms-subtitle {
    margin-top: -5px;
    margin-bottom: 22px;
    color: #64748b;
    font-size: 14px;
}

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

.platform-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;

    text-decoration: none;
    transition: 0.2s;
}

.platform-card:hover {
    border-color: #bfdbfe;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.platform-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #eef4ff;
    border-radius: 12px;

    font-size: 23px;
}

.platform-card div:nth-child(2) {
    flex: 1;
}

.platform-card h3 {
    margin: 0 0 5px;

    color: #1e3a8a;
    font-size: 17px;
}

.platform-card p {
    margin: 0;

    color: #64748b;
    font-size: 13px;
}

.platform-card > span {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}


/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-card {
        padding: 17px;
    }
}
/* ===============================
   CAMPUSAI CHATBOT
================================ */

#campus-ai-button {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    background: #ff3b8d;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

    z-index: 9999;

    transition: 0.3s;
}

#campus-ai-button:hover {
    transform: scale(1.08);
}


/* CHAT WINDOW */

#campus-ai-chat {
    position: fixed;

    right: 25px;
    bottom: 100px;

    width: 360px;
    height: 500px;

    background: white;

    border-radius: 18px;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);

    display: none;

    flex-direction: column;

    overflow: hidden;

    z-index: 9998;
}


/* HEADER */

.campus-ai-header {
    background: #123f7a;

    color: white;

    padding: 16px 18px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.campus-ai-header strong {
    display: block;

    font-size: 18px;
}

.campus-ai-header small {
    display: block;

    margin-top: 3px;

    opacity: 0.8;
}

.campus-ai-header button {
    border: none;

    background: transparent;

    color: white;

    font-size: 26px;

    cursor: pointer;
}


/* MESSAGES */

.campus-ai-messages {
    flex: 1;

    padding: 18px;

    overflow-y: auto;

    background: #f7f9fc;
}

.ai-message {
    background: white;

    padding: 12px 14px;

    border-radius: 12px;

    max-width: 85%;

    font-size: 14px;

    line-height: 1.5;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* INPUT */

.campus-ai-input {
    display: flex;

    padding: 12px;

    border-top: 1px solid #e5e7eb;

    background: white;
}

.campus-ai-input input {
    flex: 1;

    border: 1px solid #d5dbe5;

    border-radius: 10px;

    padding: 11px 12px;

    outline: none;

    font-size: 14px;
}

.campus-ai-input input:focus {
    border-color: #123f7a;
}

.campus-ai-input button {
    width: 45px;

    margin-left: 8px;

    border: none;

    border-radius: 10px;

    background: #ff3b8d;

    color: white;

    font-size: 18px;

    cursor: pointer;
}


/* MOBILE */

@media (max-width: 600px) {

    #campus-ai-chat {
        right: 12px;
        bottom: 85px;

        width: calc(100% - 24px);

        height: 70vh;
    }

    #campus-ai-button {
        right: 18px;
        bottom: 18px;
    }
}
/* AI RESPONSE FORMATTING */

.ai-message h2,
.ai-message h3,
.ai-message h4 {
    margin: 8px 0;
    color: #123f7a;
}

.ai-message strong {
    color: #123f7a;
}

.ai-message li {
    margin: 5px 0;
}

.ai-message pre {
    background: #f1f3f6;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 10px;
}

.ai-message code {
    font-family: monospace;
    font-size: 13px;
}
/* ===============================
   CAMPUSAI MAXIMIZE
================================ */

.campus-ai-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.campus-ai-header-buttons button {
    border: none;
    background: transparent;
    color: white;
    font-size: 22px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
}

.campus-ai-header-buttons button:hover {
    opacity: 0.75;
}


/* LARGE / MAXIMIZED MODE */

#campus-ai-chat.ai-maximized {
    right: 3%;
    bottom: 3%;

    width: 94%;
    height: 94vh;

    border-radius: 20px;
}

#campus-ai-chat.ai-maximized .campus-ai-messages {
    padding: 25px 8%;
}

#campus-ai-chat.ai-maximized .ai-message {
    max-width: 850px;
    font-size: 16px;
    line-height: 1.7;
}

#campus-ai-chat.ai-maximized .campus-ai-input {
    padding: 18px 8%;
}

#campus-ai-chat.ai-maximized .campus-ai-input input {
    font-size: 16px;
    padding: 14px;
}
/* CampusAI Typing Indicator */

.ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.typing-dots {
    display: inline-block;
    width: 20px;
    overflow: hidden;
    animation: typingDots 1.2s infinite;
}

@keyframes typingDots {
    0% {
        width: 0;
    }

    33% {
        width: 7px;
    }

    66% {
        width: 14px;
    }

    100% {
        width: 20px;
    }
}
.copy-ai-btn {
    margin-top: 10px;

    border: 1px solid #dbe2ea;

    background: #ffffff;

    color: #123f7a;

    padding: 6px 10px;

    border-radius: 7px;

    font-size: 12px;

    cursor: pointer;
}

.copy-ai-btn:hover {
    background: #f1f5f9;
}
/* ===============================
   CAMPUSAI CODE BLOCKS
================================ */

.code-block {
    margin: 12px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1f2937;
    color: #d1d5db;
    font-size: 12px;
    font-family: monospace;
}

.code-header button {
    border: 1px solid #4b5563;
    background: transparent;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
}

.code-header button:hover {
    background: #374151;
}

.code-block pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    background: #111827;
}

.code-block code {
    color: #f9fafb;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre;
}