/* =========================================================
   ALUMNI DIRECTORY — warm brown theme
   ========================================================= */

/* ---------- THEME COLORS ---------- */
:root {
    --brown-light: #a0674a; /* highlight / hover tint */
    --brown-mid: #7b4b32; /* primary accent (left of your image) */
    --brown-deep: #5a3620; /* secondary accent */
    --brown-dark: #3e2618; /* darkest (right of your image) */
    --brown-text: #2b1a10; /* body text */
    --brown-muted: #6b5544; /* secondary text */
    --cream: #f7f0e8; /* soft page bg fallback */
    --gold: #d4a574; /* warm gold accent */
    --danger: #c0392b;
}

/* ---------- BASE ---------- */
body {
    background: linear-gradient(135deg, #7b4b32 0%, #3e2618 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;
    color: var(--brown-text);
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(62, 38, 24, 0.15);
    z-index: -1;
    pointer-events: none;
}

/* ---------- TYPOGRAPHY ---------- */
h2,
h3 {
    text-align: center;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(43, 26, 16, 0.6);
}
h2 {
    font-size: 2.4rem;
}
h3 {
    font-size: 1.7rem;
}

/* ---------- HERO ---------- */
.hero-dashboard {
    position: relative;
    overflow: hidden;
    background: rgba(255, 240, 225, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 240, 225, 0.25);
    border-radius: 25px;
    padding: 40px;
    margin: 30px auto;
    width: 90%;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    z-index: 2;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 240, 225, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: var(--gold);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 240, 225, 0.35);
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(212, 165, 116, 0.25);
    color: var(--gold);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-dashboard h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.hero-dashboard p {
    font-size: 17px;
    color: rgba(255, 240, 225, 0.9);
    margin: 0;
}

/* ---------- COUNT BOX ---------- */
.info-box {
    background: rgba(255, 240, 225, 0.18);
    padding: 18px 28px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    text-align: center;
    font-weight: 600;
    min-width: 220px;
    border: 2px solid rgba(255, 240, 225, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
}
.info-box i {
    font-size: 22px;
    margin-bottom: 10px;
    display: block;
    color: var(--gold);
}

/* ---------- FILTER PANEL ---------- */
.filter-panel {
    background: rgba(255, 240, 225, 0.15);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 240, 225, 0.22);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 35px;
    margin-top: 45px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.filter-panel .premium-label {
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}
.filter-panel .premium-label i {
    margin-right: 6px;
    color: var(--gold);
}

/* ---------- INPUTS / SELECTS ---------- */
.form-control,
.form-select {
    border-radius: 14px;
    border: 2px solid rgba(255, 240, 225, 0.25);
    height: 60px;
    background: rgba(255, 240, 225, 0.85);
    transition: 0.3s;
    font-weight: 500;
    color: var(--brown-text);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.25);
    background: #fff8f0;
}

/* ---------- RESULT COUNT BOX ---------- */
.result-box {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    border-radius: 15px;
    background: linear-gradient(135deg, #7b4b32, #3e2618);
    color: #fff;
    border: 2px solid rgba(212, 165, 116, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.result-box span {
    font-size: 28px;
    margin-right: 8px;
    color: var(--gold);
}

/* ---------- QUICK FILTER CHIPS ---------- */
.quick-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    align-items: center;
}
.chip {
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 240, 225, 0.9);
    color: var(--brown-deep);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border: 2px solid transparent;
}
.chip:hover,
.chip.active {
    background: var(--brown-deep);
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.reset-btn {
    margin-left: auto;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    background: var(--danger);
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}
.reset-btn:hover {
    background: #962d22;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(192, 57, 43, 0.4);
}

/* ---------- ALUMNI CARDS ---------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    width: 90%;
    margin: 0 auto;
}

.alumni-card {
    position: relative;
    background: rgba(255, 240, 225, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 28px;
    overflow: hidden;
    transition: 0.35s;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(45px);
    border: 2px solid rgba(212, 165, 116, 0.4);
    color: var(--brown-text);
}
.alumni-card.show {
    opacity: 1;
    transform: translateY(0);
}
.alumni-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    background: #fff8f0;
    border-color: var(--gold);
}

/* ---------- CARD RIBBON ---------- */
.card-ribbon {
    position: absolute;
    top: 18px;
    right: -35px;
    width: 150px;
    text-align: center;
    padding: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}
.card-ribbon.paid {
    background: var(--brown-deep);
}
.card-ribbon.pending {
    background: var(--danger);
}

/* ---------- CARD HEADER ---------- */
.card-header-custom {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b4b32, #3e2618);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    box-shadow: 0 8px 20px rgba(62, 38, 24, 0.4);
    flex-shrink: 0;
    border: 2px solid var(--gold);
}

.user-info h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--brown-text);
}
.user-info small {
    color: var(--brown-muted);
    font-weight: 500;
}

.card-divider {
    height: 1px;
    background: rgba(123, 75, 50, 0.25);
    margin: 18px 0;
}

/* ---------- INFO ROWS ---------- */
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--brown-text);
}
.info-item i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 75, 50, 0.15);
    border-radius: 12px;
    color: var(--brown-deep);
    flex-shrink: 0;
}

/* ---------- PAYMENT STATUS ---------- */
.payment-box {
    margin-top: 20px;
}
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
}
.status.success {
    background: #d4edda;
    color: #155724;
}
.status.pending {
    background: #f8d7da;
    color: #721c24;
}

/* ---------- PROFILE BUTTON ---------- */
.card-buttons {
    margin-top: 28px;
}
.profile-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 30px;
    background: linear-gradient(135deg, #7b4b32, #3e2618);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid transparent;
}
.profile-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(62, 38, 24, 0.45);
}

/* ---------- FOOTER ---------- */
.public-footer {
    margin-top: 70px;
    padding: 30px;
    background: rgba(43, 26, 16, 0.95);
    color: var(--gold);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-weight: 600;
    border-top: 2px solid rgba(212, 165, 116, 0.3);
}

/* ---------- LOADER ---------- */
#loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #3e2618, #2b1a10);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: 0.6s;
}
.loader-box {
    text-align: center;
    color: #fff;
}
.loader-box h3 {
    color: var(--gold);
}
.loader-logo {
    width: 100px;
    height: 100px;
    margin: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b4b32, #5a3620);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 20px;
    animation: pulse 1.4s infinite;
    border: 2px solid var(--gold);
}
.loader-bar {
    width: 260px;
    height: 8px;
    background: rgba(255, 240, 225, 0.15);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 25px;
}
.loader-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #7b4b32, var(--gold), #7b4b32);
    animation: loading 2s linear forwards;
}

@keyframes loading {
    100% {
        width: 100%;
    }
}
@keyframes pulse {
    50% {
        transform: scale(1.1);
    }
}

/* ---------- PROGRESS BAR ---------- */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0;
    background: linear-gradient(90deg, #7b4b32, var(--gold));
    z-index: 99999;
}

/* ---------- PARTICLES ---------- */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.particles span {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(212, 165, 116, 0.35);
    border-radius: 50%;
    animation: floatParticle 16s linear infinite;
}
.particles span:nth-child(1) {
    left: 8%;
    animation-delay: 0s;
}
.particles span:nth-child(2) {
    left: 18%;
    animation-delay: 3s;
}
.particles span:nth-child(3) {
    left: 30%;
    animation-delay: 6s;
}
.particles span:nth-child(4) {
    left: 45%;
    animation-delay: 2s;
}
.particles span:nth-child(5) {
    left: 60%;
    animation-delay: 8s;
}
.particles span:nth-child(6) {
    left: 75%;
    animation-delay: 5s;
}
.particles span:nth-child(7) {
    left: 90%;
    animation-delay: 1s;
}
.particles span:nth-child(8) {
    left: 96%;
    animation-delay: 10s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(-150px);
        opacity: 0;
    }
}

/* ---------- BACK TO TOP ---------- */
#topBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b4b32, #3e2618);
    color: var(--gold);
    font-size: 22px;
    display: none;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(62, 38, 24, 0.5);
    transition: 0.3s;
    z-index: 999;
    border: 2px solid var(--gold);
}
#topBtn:hover {
    transform: translateY(-8px);
    color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .filter-panel,
    .dashboard-grid {
        width: 92%;
    }
}

@media (max-width: 768px) {
    .hero-dashboard {
        padding: 25px;
        width: 92%;
    }
    .hero-dashboard h1 {
        font-size: 26px;
    }
    .hero-left {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-panel {
        padding: 20px;
        width: 92%;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        width: 92%;
    }
    .result-box {
        font-size: 16px;
        height: 50px;
    }
    .result-box span {
        font-size: 22px;
    }
    .reset-btn {
        margin-left: 0;
    }
}
