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

}

main {
    background: linear-gradient(135deg,
            #EFF6FF 0%,
            #F8FAFC 45%,
            #FFFFFF 100%);
    font-family: "montserrat", sans-serif;
    align-items: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
    gap: 2rem;
}



.admin-header {
    width: 100%;
    text-align: center;
    color: var(--heading-color);
    padding: 2rem;
}

.admin-header h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.admin-header p {
    font-size: 1.2rem;
}

.total-applications {
    display: flex;
    flex-direction: column;
    width: 300px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1.2rem;
    justify-content: center;
    align-items: center;
    padding: 1.3rem 1rem;
    color: #111827;

}

.total-applications span {
    font-size: 1.2rem;
    font-weight: 500;
}

.total-applications strong {
    font-size: 2rem;
    color: #2563EB;
}

.search-section {
    display: flex;
    justify-content: center;
    gap: 4rem;
    width: 650px;
    padding: 2rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1.2rem;

}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1rem;
    flex: 1;
}

.form-group label {
    color: #374151;
    font-weight: 500;
}

.form-group input {
    color: #374151;
    border: 1px solid #D1D5DB;
    border-radius: .6rem;
    padding: .4rem .8rem;
    width: 100%;

}

.form-group input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;

}

.form-group input[type="text"] {
    color: #111827;
}



.form-group select {
    border: 1px solid #D1D5DB;
    border-radius: .6rem;
    padding: .4rem .8rem;
    background: #FFFFFF;
    color: #111827;
    cursor: pointer;
}

.form-group select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.application-card {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 700px;
    margin-bottom: 1rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1.2rem;
    padding: 2rem 3rem;
    gap: 2rem;
}

.card-info {
    line-height: 1.5;
}

.card-info h3 {
    margin-bottom: 1.4rem;
    font-size: 1.2rem;
    color: #2563EB;
}

.card-info p {

    font-size: 1rem;
    color: #111827;
}

.card-status label {
    padding-right: .6rem;
}

.application-card select {
    border: 1px solid #D1D5DB;
    border-radius: .6rem;
    padding: .4rem .8rem;
    background: #FFFFFF;
    color: #111827;
    cursor: pointer;
}

.application-card select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.application-card select.status-submitted {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

.application-card select.status-review {
    background: #FFFBEB;
    color: #B45309;
    border-color: #FDE68A;
}

.application-card select.status-approved {
    background: #F0FDF4;
    color: #15803D;
    border-color: #BBF7D0;
}

.application-card select.status-rejected {
    background: #FEF2F2;
    color: #B91C1C;
    border-color: #FECACA;
}

.empty-card {
    text-align: center;
    line-height: 1.4;
    width: 700px;
    background: #FFFFFF;
    border: 1px solid #FECACA;
    border-radius: 1.2rem;
    padding: 2rem 3rem;

}

.empty-card h4 {
    color: #B91C1C;
    font-size: 1.2rem;
    margin-bottom: .4rem;
}

.empty-card p {
    color: #6B7280;
}



.allocation-details {
    grid-column: 1 / -1;
    border-top: 1px solid #E5E7EB;
    padding-top: 1.5rem;
    margin-top: .5rem;
}

.status-header h3 {
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: .3rem;
}

.status-header p {
    color: #6B7280;
    font-size: .9rem;
    margin-bottom: 1.2rem;
}

.status-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.status-item {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: .8rem;
    padding: .9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.status-item span {
    font-size: .8rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.status-item strong {
    font-size: 1.1rem;
    color: #111827;
}

.allocation-pending {
    grid-column: 1 / -1;
    border-top: 1px solid #E5E7EB;
    padding-top: 1rem;
    margin-top: .5rem;
}

.allocation-pending p {
    color: #B45309;
    font-size: .9rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.reset-btn {
    border: 1px solid #FECACA;
    border-radius: 2rem;
    padding: 1rem 3rem;
    color: #DC2626;
    background: #FEF2F2;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.reset-btn:hover {
    background: #DC2626;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, .25);
}

.reset-btn:active {
    transform: scale(0.95);
    
}

.load-btn {
    border: 1px solid #BFDBFE;
    border-radius: 2rem;
    padding: 1rem 3rem;
    color: #1D4ED8;
    background: #EFF6FF;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.load-btn:hover {
    background: #2563EB;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .25);
}

.load-btn:active {
    transform: scale(0.95);
}


@media (max-width: 1024px) {

    main {
        padding: 1.5rem;
    }

    .admin-header h2 {
        font-size: 2.4rem;
    }

    .total-applications {
        width: 90%;
        max-width: 350px;
    }

    .search-section {
        width: 90%;
        max-width: 650px;
        gap: 2rem;
    }

    .application-card,
    .empty-card {
        width: 90%;
        max-width: 700px;
    }

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

/* ============================
   MOBILE / SMALL TABLET (max-width: 768px)
============================ */
@media (max-width: 768px) {

    main {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .admin-header {
        padding: 1rem;
    }

    .admin-header h2 {
        font-size: 1.9rem;
    }

    .admin-header p {
        font-size: 1rem;
    }

    .total-applications {
        width: 100%;
    }

    .btn-group {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-group button {
        flex: 1 1 45%;
        padding: 0.9rem 1rem;
    }

    .search-section {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .application-card {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }

    .card-status {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .empty-card {
        width: 100%;
        padding: 1.5rem;
    }

    .status-details {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
}

/* ============================
   MOBILE (max-width: 600px)
============================ */
@media (max-width: 600px) {

    .admin-header h2 {
        font-size: 1.5rem;
    }

    .admin-header p {
        font-size: 0.9rem;
    }

    .total-applications strong {
        font-size: 1.6rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group button {
        width: 100%;
    }

    .application-card {
        padding: 1.2rem;
    }

    .card-info h3 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    .status-details {
        grid-template-columns: 1fr;
    }

    .status-item strong {
        font-size: 1rem;
    }
}

#admin-nav-link:hover {
    color: red;
    border-bottom: 2px solid red;
}