* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fb;
    color: #1f2937;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
}

.auth-container {
    width: 100%;
    max-width: 520px;
}

.auth-card {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.auth-card h1 {
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.primary-button {
    width: 100%;
    padding: 13px;
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.primary-button:hover {
    background-color: #172e6c;
}

.alert {
    padding: 13px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert ul {
    padding-left: 20px;
}

.alert-error {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

.alert-success {
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
}

.auth-link {
    text-align: center;
    margin-top: 18px;
}

.auth-link a {
    color: #1e3a8a;
    font-weight: bold;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.page-container {
    width: min(1200px, 92%);
    margin: 40px auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.page-header h1 {
    margin-bottom: 5px;
}

.page-header p {
    color: #6b7280;
}

.primary-link-button {
    display: inline-block;
    padding: 12px 18px;
    background-color: #1e3a8a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.primary-link-button:hover {
    background-color: #172e6c;
}

.table-container {
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.data-table th {
    background-color: #1e3a8a;
    color: #ffffff;
}

.data-table tr:hover {
    background-color: #f8fafc;
}

.empty-table-message {
    padding: 30px !important;
    color: #6b7280;
    text-align: center !important;
}

.page-link {
    margin-top: 20px;
}

.page-link a {
    color: #1e3a8a;
    font-weight: bold;
}

.event-form-card {
    max-width: 650px;
    margin: auto;
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.secondary-link-button {
    display: inline-block;
    padding: 11px 18px;
    border: 2px solid #1e3a8a;
    border-radius: 8px;
    color: #1e3a8a;
    font-weight: bold;
    text-decoration: none;
}

.secondary-link-button:hover {
    color: #ffffff;
    background-color: #1e3a8a;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    gap: 24px;
}

.event-card {
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.event-image-placeholder {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dbeafe;
    color: #1e3a8a;
    font-size: 20px;
    font-weight: bold;
}

.event-card-content {
    padding: 22px;
}

.event-card-content h2 {
    margin: 12px 0;
}

.event-description {
    min-height: 48px;
    margin-bottom: 18px;
    color: #6b7280;
    line-height: 1.5;
}

.event-information {
    display: grid;
    gap: 9px;
    margin: 20px 0;
}

.event-information p {
    line-height: 1.4;
}

.event-status {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
    background-color: #dcfce7;
    color: #166534;
    font-size: 13px;
    font-weight: bold;
}

.event-button {
    width: 100%;
    margin-top: 5px;
    text-align: center;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 60px 25px;
    border-radius: 14px;
    background-color: #ffffff;
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 10px;
}

.empty-state p {
    color: #6b7280;
}

.event-details-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
    overflow: hidden;
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.event-details-image {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dbeafe;
    color: #1e3a8a;
    font-size: 24px;
    font-weight: bold;
}

.event-details-content {
    padding: 40px;
}

.event-details-content h1 {
    margin: 14px 0;
}

.event-details-description {
    margin-bottom: 24px;
    color: #4b5563;
    line-height: 1.7;
}

.registration-status-box {
    margin-top: 25px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background-color: #eff6ff;
    color: #1e3a8a;
}

.disabled-button {
    cursor: not-allowed;
    background-color: #94a3b8;
}

.disabled-button:hover {
    background-color: #94a3b8;
}

@media (max-width: 768px) {
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-details-card {
        grid-template-columns: 1fr;
    }

    .event-details-image {
        min-height: 250px;
    }

    .event-details-content {
        padding: 25px;
    }
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.status-pending {
    color: #92400e;
    background-color: #fef3c7;
}

.status-approved {
    color: #166534;
    background-color: #dcfce7;
}

.status-rejected {
    color: #991b1b;
    background-color: #fee2e2;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-buttons form {
    margin: 0;
}

.approve-button,
.reject-button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.approve-button {
    background-color: #15803d;
}

.approve-button:hover {
    background-color: #166534;
}

.reject-button {
    background-color: #dc2626;
}

.reject-button:hover {
    background-color: #b91c1c;
}

.completed-action {
    color: #6b7280;
    font-size: 14px;
}

.attendance-present {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    color: #166534;
    background-color: #dcfce7;
    font-size: 13px;
    font-weight: bold;
}

.attendance-absent {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    color: #991b1b;
    background-color: #fee2e2;
    font-size: 13px;
    font-weight: bold;
}

.table-action-link {
    color: #1e3a8a;
    font-weight: bold;
    text-decoration: none;
}

.table-action-link:hover {
    text-decoration: underline;
}

/* ================================================= */
/* CVMS PUBLIC HOMEPAGE */
/* ================================================= */

html {
    scroll-behavior: smooth;
}

.home-body {
    margin: 0;
    background: #f7f9fc;
    color: #14213d;
    font-family: Arial, Helvetica, sans-serif;
}


/* ================= NAVBAR ================= */

.home-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
}

.home-navbar {
    width: min(1180px, calc(100% - 40px));
    min-height: 75px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #14213d;
}

.home-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #173b70;
    color: white;
    font-weight: 800;
}

.home-logo-text {
    display: flex;
    flex-direction: column;
}

.home-logo-text span {
    font-size: 20px;
    font-weight: 800;
}

.home-logo-text small {
    color: #64748b;
    font-size: 11px;
    letter-spacing: 1px;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.home-nav a {
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.home-nav a:hover {
    color: #173b70;
}

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-login-button,
.home-register-button {
    padding: 10px 19px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.home-login-button {
    color: #173b70;
    border: 1px solid #173b70;
}

.home-register-button {
    background: #173b70;
    color: white;
}


/* ================= HERO ================= */

.home-hero {
    min-height: 630px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(73, 147, 255, 0.13),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f8fbff,
            #eef5ff
        );
}

.home-hero-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.home-hero-content {
    max-width: 650px;
}

.home-hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 50px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.home-hero h1 {
    margin: 0;
    color: #102a56;
    font-size: clamp(44px, 5vw, 70px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.home-hero h1 span {
    display: block;
    color: #2563eb;
}

.home-hero-content > p {
    max-width: 590px;
    margin: 24px 0 30px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.8;
}

.home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-primary-button,
.home-secondary-button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
}

.home-primary-button {
    background: #173b70;
    color: white;
    border: 1px solid #173b70;
}

.home-primary-button:hover {
    transform: translateY(-2px);
}

.home-secondary-button {
    background: white;
    color: #173b70;
    border: 1px solid #cbd5e1;
}

.home-secondary-button:hover {
    border-color: #173b70;
}

.home-hero-info {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.home-hero-info div {
    display: flex;
    flex-direction: column;
}

.home-hero-info strong {
    color: #173b70;
    font-size: 16px;
}

.home-hero-info span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}


/* ================= HERO VISUAL ================= */

.home-hero-visual {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-visual-circle {
    position: absolute;
    border-radius: 50%;
}

.circle-one {
    width: 340px;
    height: 340px;
    background: #dbeafe;
}

.circle-two {
    width: 240px;
    height: 240px;
    right: 15px;
    top: 10px;
    background: rgba(147, 197, 253, 0.3);
}

.home-volunteer-card {
    position: relative;
    z-index: 2;
    width: min(390px, 90%);
    padding: 26px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 25px 60px rgba(30, 64, 175, 0.16);
}

.volunteer-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.volunteer-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #ef4444;
    font-size: 23px;
}

.volunteer-card-top small {
    color: #64748b;
}

.volunteer-card-top h3 {
    margin: 4px 0 0;
    color: #173b70;
}

.volunteer-illustration {
    height: 200px;
    margin: 25px 0;
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        #eff6ff,
        #dbeafe
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 45px;
    position: relative;
    overflow: hidden;
}

.illustration-person {
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.person-head {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #f5c9a9;
    margin-bottom: -4px;
    z-index: 2;
}

.person-body {
    width: 68px;
    height: 100px;
    border-radius: 35px 35px 0 0;
    background: #2563eb;
}

.person-two .person-body {
    background: #173b70;
}

.illustration-heart {
    position: absolute;
    top: 45px;
    color: #ef4444;
    font-size: 40px;
}

.volunteer-card-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.volunteer-card-bottom div {
    padding: 12px 5px;
    border-radius: 10px;
    background: #f8fafc;
}

.volunteer-card-bottom strong {
    display: block;
    color: #173b70;
    font-size: 13px;
}

.volunteer-card-bottom span {
    color: #64748b;
    font-size: 10px;
}


/* ================= GENERAL SECTIONS ================= */

.home-section-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.home-section-heading {
    max-width: 650px;
    margin: 0 auto 45px;
    text-align: center;
}

.home-section-heading > span,
.home-about-label {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.home-section-heading h2,
.home-about-box h2,
.home-contact h2 {
    margin: 10px 0 13px;
    color: #102a56;
    font-size: 34px;
}

.home-section-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}


/* ================= FEATURES ================= */

.home-features {
    padding: 90px 0;
    background: white;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-feature-card {
    min-height: 210px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: 0.25s;
}

.home-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.feature-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.home-feature-card h3 {
    margin: 20px 0 10px;
    color: #173b70;
    font-size: 18px;
}

.home-feature-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}


/* ================= EVENTS ================= */

.home-events-section {
    padding: 90px 0;
    background: #f8fafc;
}

.home-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-event-card {
    overflow: hidden;
    border-radius: 18px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.home-event-card-top {
    min-height: 100px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background:
        linear-gradient(
            135deg,
            #173b70,
            #2563eb
        );
}

.home-event-status {
    padding: 6px 11px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.home-event-date {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-event-date strong {
    color: #173b70;
    font-size: 21px;
}

.home-event-date span {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.home-event-content {
    padding: 24px;
}

.home-event-content h3 {
    min-height: 46px;
    margin: 0;
    color: #173b70;
    font-size: 19px;
}

.home-event-description {
    min-height: 68px;
    margin: 12px 0 22px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.home-event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.home-event-details div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-event-details span {
    color: #94a3b8;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.home-event-details strong {
    color: #334155;
    font-size: 12px;
}

.home-event-footer {
    padding: 15px 24px 22px;
}

.home-event-footer a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px;
    border-radius: 8px;
    background: #173b70;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.home-no-events {
    grid-column: 1 / -1;
    padding: 55px;
    border-radius: 16px;
    background: white;
    text-align: center;
    border: 1px dashed #cbd5e1;
}

.home-no-events h3 {
    color: #173b70;
}

.home-no-events p {
    color: #64748b;
}

.home-view-all {
    margin-top: 35px;
    text-align: center;
}


/* ================= ABOUT ================= */

.home-about-section {
    padding: 100px 0;
    background: white;
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.home-about-box p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.home-about-points {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-about-point {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-radius: 14px;
    background: #f8fafc;
}

.home-about-point > span {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.home-about-point h3 {
    margin: 0 0 5px;
    color: #173b70;
    font-size: 16px;
}

.home-about-point p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}


/* ================= CTA ================= */

.home-cta {
    padding: 85px 20px;
    background:
        linear-gradient(
            135deg,
            #102a56,
            #2563eb
        );
    color: white;
    text-align: center;
}

.home-cta-content {
    max-width: 720px;
    margin: auto;
}

.home-cta-content > span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bfdbfe;
}

.home-cta h2 {
    margin: 13px 0;
    font-size: 38px;
}

.home-cta p {
    margin: 0 0 25px;
    color: #dbeafe;
}

.home-cta-button {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 9px;
    background: white;
    color: #173b70;
    text-decoration: none;
    font-weight: 700;
}


/* ================= CONTACT ================= */

.home-contact {
    padding: 80px 0;
    background: #f8fafc;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.home-contact-grid > div:first-child p {
    max-width: 550px;
    color: #64748b;
    line-height: 1.7;
}

.home-contact-card {
    padding: 28px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.home-contact-card strong {
    color: #173b70;
}

.home-contact-card span {
    color: #64748b;
    font-size: 14px;
}


/* ================= FOOTER ================= */

.home-footer {
    padding: 30px 0;
    background: #0f274b;
    color: white;
}

.home-footer-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.home-footer strong {
    font-size: 20px;
}

.home-footer p {
    margin: 5px 0 0;
    color: #bfdbfe;
    font-size: 12px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 950px) {

    .home-nav {
        display: none;
    }

    .home-hero-container {
        grid-template-columns: 1fr;
        padding: 70px 0;
    }

    .home-hero-content {
        text-align: center;
        margin: auto;
    }

    .home-hero-buttons,
    .home-hero-info {
        justify-content: center;
    }

    .home-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-about-grid,
    .home-contact-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .home-navbar {
        width: min(100% - 24px, 1180px);
    }

    .home-logo-text small {
        display: none;
    }

    .home-login-button {
        display: none;
    }

    .home-register-button {
        padding: 9px 13px;
    }

    .home-hero-container,
    .home-section-container {
        width: min(100% - 28px, 1180px);
    }

    .home-hero {
        min-height: auto;
    }

    .home-hero h1 {
        font-size: 43px;
    }

    .home-hero-content > p {
        font-size: 15px;
    }

    .home-hero-visual {
        min-height: 390px;
    }

    .home-feature-grid,
    .home-event-grid {
        grid-template-columns: 1fr;
    }

    .home-section-heading h2,
    .home-about-box h2,
    .home-contact h2 {
        font-size: 27px;
    }

    .home-event-details {
        grid-template-columns: 1fr;
    }

    .home-footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* ========================================= */
/* PROFILE PAGE */
/* ========================================= */

.profile-page {
    min-height: 100vh;
    padding: 60px 20px;
    background: #f4f7fb;
}

.profile-container {
    width: min(1100px, 100%);
    margin: auto;
}

.profile-header {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.profile-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-header h1 {
    margin: 7px 0 5px;
    color: #173b70;
}

.profile-header p {
    margin: 0;
    color: #64748b;
}

.profile-back-button {
    padding: 11px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #173b70;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.profile-summary {
    margin-bottom: 25px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.profile-avatar {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #173b70;
    color: white;
    font-size: 25px;
    font-weight: bold;
}

.profile-summary h2 {
    margin: 0 0 5px;
    color: #173b70;
}

.profile-summary p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.profile-role {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: bold;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.profile-card {
    padding: 30px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
}

.profile-card-title {
    margin-bottom: 25px;
}

.profile-card-title h2 {
    margin: 0 0 7px;
    color: #173b70;
    font-size: 21px;
}

.profile-card-title p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.profile-form-group {
    margin-bottom: 18px;
}

.profile-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: bold;
}

.profile-form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    outline: none;
}

.profile-form-group input:focus {
    border-color: #2563eb;
}

.profile-form-group input[readonly] {
    background: #f1f5f9;
    color: #64748b;
}

.profile-form-group small {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 11px;
}

.profile-primary-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #173b70;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.profile-primary-button:hover {
    background: #102a56;
}

.profile-message {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
}

.profile-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.profile-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.password-requirements {
    margin: 5px 0 22px;
    padding: 15px;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
}

.password-requirements strong {
    color: #334155;
}

.password-requirements ul {
    margin: 9px 0 0 18px;
    padding: 0;
    line-height: 1.8;
}

@media (max-width: 800px) {

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
    }

}

/* =====================================================
   CVMS SHARED ADMIN + STUDENT SIDEBAR THEME
   RESPONSIVE + COLLAPSIBLE
   ===================================================== */

:root {
    --cvms-primary: #123a78;
    --cvms-primary-dark: #0f2f68;
    --cvms-sidebar-text: #ffffff;
    --cvms-sidebar-muted: #dbeafe;

    --cvms-page-bg: #f4f7fb;
    --cvms-card-bg: #ffffff;

    --cvms-text: #111827;
    --cvms-muted: #64748b;

    --cvms-border: #e2e8f0;

    --cvms-sidebar-width: 250px;
}


/* =========================
   GENERAL
========================= */

body.cvms-app,
body.admin-dashboard-page {
    margin: 0;
    min-height: 100vh;
    background: var(--cvms-page-bg);
    color: var(--cvms-text);
    font-family: Arial, Helvetica, sans-serif;
}


body.cvms-app *,
body.cvms-app *::before,
body.cvms-app *::after,
body.admin-dashboard-page *,
body.admin-dashboard-page *::before,
body.admin-dashboard-page *::after {
    box-sizing: border-box;
}


/* =========================
   SIDEBAR
========================= */

.cvms-sidebar,
.cv-admin-sidebar {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;

    z-index: 1000 !important;

    width: var(--cvms-sidebar-width) !important;
    height: 100vh !important;

    padding: 26px 20px !important;

    overflow-y: auto;

    background: var(--cvms-primary) !important;
    color: var(--cvms-sidebar-text) !important;

    transform: translateX(0);

    transition:
        transform 0.3s ease !important;
}


/* =========================
   BRAND
========================= */

.cvms-sidebar-brand,
.cv-admin-brand {
    margin-bottom: 40px;
}


.cvms-sidebar-brand h1,
.cv-admin-brand h1 {
    margin: 0;

    color: #ffffff;

    font-size: 30px;

    font-weight: 800;

    letter-spacing: 0.3px;
}


.cvms-sidebar-brand p,
.cv-admin-brand p {
    margin: 6px 0 0;

    color: var(--cvms-sidebar-muted);

    font-size: 13px;
}


/* =========================
   NAVIGATION
========================= */

.cvms-sidebar-menu,
.cv-admin-menu {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.cvms-sidebar-menu a,
.cv-admin-menu a {
    display: block;

    width: 100%;

    padding: 14px 15px;

    border-radius: 8px;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    line-height: 1.3;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.cvms-sidebar-menu a:hover,
.cv-admin-menu a:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.12
        );
}


.cvms-sidebar-menu a.active,
.cv-admin-menu a.active {
    background: #ffffff;

    color: var(--cvms-primary);

    font-weight: 700;
}


/* =========================
   DIVIDER
========================= */

.cvms-sidebar-divider,
.cv-admin-menu-divider {
    height: 1px;

    margin: 18px 0;

    background:
        rgba(
            255,
            255,
            255,
            0.18
        );
}


/* =========================
   MAIN CONTENT
========================= */

.cvms-main,
.cv-admin-main {
    width:
        calc(
            100% - var(--cvms-sidebar-width)
        ) !important;

    min-height: 100vh;

    margin-left:
        var(--cvms-sidebar-width) !important;

    transition:
        margin-left 0.3s ease,
        width 0.3s ease !important;
}


.cvms-main {
    padding:
        28px 35px 45px;
}


/* =========================
   SIDEBAR TOGGLE BUTTON
========================= */

.cvms-sidebar-toggle,
.cv-sidebar-toggle {
    position: fixed !important;

    top: 18px !important;

    left: 205px !important;

    z-index: 1200 !important;

    width: 38px !important;

    height: 38px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.25
        ) !important;

    border-radius: 8px !important;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        ) !important;

    color: white !important;

    box-shadow: none !important;

    font-size: 21px !important;

    line-height: 1 !important;

    cursor: pointer !important;

    transition:
        left 0.3s ease,
        background 0.2s ease !important;
}


.cvms-sidebar-toggle:hover,
.cv-sidebar-toggle:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.22
        ) !important;
}


/* =========================
   SIDEBAR CLOSED - DESKTOP
========================= */

body.sidebar-collapsed
.cvms-sidebar,
body.sidebar-collapsed
.cv-admin-sidebar,
body.sidebar-closed
.cvms-sidebar,
body.sidebar-closed
.cv-admin-sidebar {
    transform:
        translateX(-100%) !important;
}


body.sidebar-collapsed
.cvms-main,
body.sidebar-collapsed
.cv-admin-main,
body.sidebar-closed
.cvms-main,
body.sidebar-closed
.cv-admin-main {
    width: 100% !important;

    margin-left: 0 !important;
}


body.sidebar-collapsed
.cvms-sidebar-toggle,
body.sidebar-collapsed
.cv-sidebar-toggle,
body.sidebar-closed
.cvms-sidebar-toggle,
body.sidebar-closed
.cv-sidebar-toggle {
    left: 18px !important;

    background:
        var(--cvms-primary) !important;

    border-color:
        var(--cvms-primary) !important;
}


/* =========================
   SHARED TOP BAR
========================= */

.cvms-topbar {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 20px;

    margin-bottom: 30px;

    padding-left: 0;
}


.cvms-topbar-title h1,
.cvms-topbar-title h2 {
    margin: 0;

    color: var(--cvms-text);

    font-size: 28px;
}


.cvms-topbar-title p {
    margin: 7px 0 0;

    color: var(--cvms-muted);

    font-size: 14px;
}


.cvms-user-info {
    text-align: right;
}


.cvms-user-info strong {
    display: block;

    color: var(--cvms-text);

    font-size: 14px;
}


.cvms-user-info span {
    display: block;

    margin-top: 4px;

    color: var(--cvms-muted);

    font-size: 13px;
}


/* =========================
   SAME BLUE BUTTON THEME
========================= */

.cvms-primary-button {
    display: inline-block;

    padding: 11px 17px;

    border: none;

    border-radius: 7px;

    background: var(--cvms-primary);

    color: #ffffff;

    text-decoration: none;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease;
}


.cvms-primary-button:hover {
    background:
        var(--cvms-primary-dark);
}


/* =========================
   CARDS
========================= */

.cvms-card {
    background: var(--cvms-card-bg);

    border:
        1px solid
        var(--cvms-border);

    border-radius: 12px;

    box-shadow:
        0 2px 10px
        rgba(
            15,
            23,
            42,
            0.04
        );
}


/* =====================================================
   RESPONSIVE
===================================================== */


/* =========================
   MEDIUM DESKTOP
========================= */

@media (
    max-width: 1300px
) {

    .cv-stats-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }


    .cv-quick-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }
}


/* =====================================================
   SMALL BROWSER / TABLET
   Sidebar becomes overlay
===================================================== */

@media (
    max-width: 1100px
) {

    /* Sidebar hidden by default */

    .cvms-sidebar,
    .cv-admin-sidebar {
        transform:
            translateX(-100%) !important;
    }


    /* Main content full width */

    .cvms-main,
    .cv-admin-main {
        width:
            100% !important;

        margin-left:
            0 !important;
    }


    .cvms-main {
        padding:
            75px 28px 40px !important;
    }


    /* Hamburger always visible */

    .cvms-sidebar-toggle,
    .cv-sidebar-toggle {
        top: 18px !important;

        left: 18px !important;

        background:
            var(--cvms-primary) !important;

        border-color:
            var(--cvms-primary) !important;

        color: white !important;
    }


    /* Open sidebar as overlay */

    body.mobile-sidebar-open
    .cvms-sidebar,
    body.mobile-sidebar-open
    .cv-admin-sidebar {
        transform:
            translateX(0) !important;
    }


    body.mobile-sidebar-open
    .cvms-sidebar-toggle,
    body.mobile-sidebar-open
    .cv-sidebar-toggle {
        left: 205px !important;

        background:
            rgba(
                255,
                255,
                255,
                0.12
            ) !important;

        border-color:
            rgba(
                255,
                255,
                255,
                0.25
            ) !important;
    }


    /* Dashboard cards */

    .cv-stats-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }


    .cv-quick-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;
    }


    .cv-admin-topbar-left {
        display: block !important;
    }


    .cvms-topbar {
        flex-direction: column;
    }


    .cvms-user-info {
        text-align: left;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (
    max-width: 650px
) {

    .cvms-main,
    .cv-admin-main {
        width:
            100% !important;

        margin-left:
            0 !important;
    }


    .cvms-main {
        padding:
            72px 18px 35px !important;
    }


    .cv-admin-topbar {
        flex-direction:
            column !important;

        gap:
            12px !important;
    }


    .cv-admin-profile {
        text-align:
            left !important;

        padding:
            0 !important;
    }


    .cv-admin-welcome {
        flex-direction:
            column !important;

        align-items:
            flex-start !important;
    }


    .cv-stats-grid,
    .cv-quick-grid {
        grid-template-columns:
            1fr !important;
    }


    .cv-admin-heading h2 {
        font-size:
            24px !important;
    }
}

.home-logo .home-jpkk-logo {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.home-contact p a {
    color: #0f2f68;
    font-weight: 600;
    text-decoration: none;
}

.home-contact p a:hover {
    text-decoration: underline;
}

.home-contact p a {
    color: #0f2f68;
    font-weight: 600;
    text-decoration: none;
}

.home-contact p a:hover {
    text-decoration: underline;
}