/* ===== Pyramid Educational Services - Admin Styles ===== */

body {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

::selection {
    background: #E31E24;
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
    background: #0D1B3D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E31E24;
}

/* Form controls */
.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #F8F9FB;
    color: #2D2D2D;
}
.form-control::placeholder {
    color: #888;
}
.form-control:focus {
    outline: none;
    border-color: #E31E24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0D1B3D;
    display: block;
    margin-bottom: 0.4rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #eef0f3;
}
.table thead th {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0D1B3D;
    text-align: left;
    padding: 0.85rem 1rem;
    background: #F8F9FB;
    border-bottom: 2px solid #eef0f3;
    white-space: nowrap;
}
.table tbody td {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: #2D2D2D;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}
.table tbody tr:last-child td {
    border-bottom: none;
}
.table tbody tr:hover {
    background: #F8F9FB;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
}
.badge-paid   { background: #dcfce7; color: #166534; }
.badge-unpaid { background: #fee2e2; color: #991b1b; }
.badge-partial{ background: #fef9c3; color: #854d0e; }
.badge-navy   { background: #0D1B3D; color: #ffffff; }

/* Card */
.card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 1rem;
    padding: 1.5rem;
}

/* Primary button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-red {
    background: #E31E24;
    color: #fff;
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.25);
}
.btn-red:hover { background: #c41a1f; }
.btn-navy {
    background: #0D1B3D;
    color: #fff;
}
.btn-navy:hover { background: #16295e; }
.btn-ghost {
    background: transparent;
    color: #0D1B3D;
    border: 2px solid #e5e7eb;
}
.btn-ghost:hover { border-color: #0D1B3D; }
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.7rem;
}

/* Stat tiles */
.stat-tile {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 1rem;
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
}
.stat-tile::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 5rem;
    background: rgba(227, 30, 36, 0.08);
    border-radius: 9999px;
    transform: translate(30%, -30%);
}
.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0D1B3D;
    margin-top: 0.3rem;
}
