/* ==========================================================================
   Applicant Management Dashboard
   Libreng Sakay for CSC Examination
   Honeycomb / Bee Theme
   ========================================================================== */

:root {
    --honey: #f4b400;
    --honey-dark: #d97706;
    --honey-light: #fff8e1;

    --bee-black: #2f2f2f;

    --soft-yellow: #fff9e6;

    --shadow-sm: 0 0.35rem 1rem rgba(0, 0, 0, 0.08);
    --shadow-md: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);

    --transition: 0.25s ease;
}

/* ==========================================================
   Dashboard Cards
========================================================== */

.stat-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);

    box-shadow: var(--shadow-sm);

    position: relative;
    background: #fff;
}

.stat-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(90deg, var(--honey), var(--honey-dark));
}

.stat-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 58px;
    height: 58px;

    border-radius: 16px;

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

    font-size: 1.35rem;
}

/* ==========================================================
   Soft Background Colors
========================================================== */

.bg-primary-subtle {
    background: #fff4cc !important;
    color: #b7791f !important;
}

.bg-success-subtle {
    background: #e8f8ed !important;
}

.bg-warning-subtle {
    background: #fff4cc !important;
}

.bg-danger-subtle {
    background: #ffe8e8 !important;
}

.bg-secondary-subtle {
    background: #f4f4f4 !important;
}

.bg-info-subtle {
    background: #fff8e1 !important;
}

/* ==========================================================
   Bootstrap Table
========================================================== */

.bootstrap-table {
    border-radius: 20px;
}

.bootstrap-table .fixed-table-toolbar {
    padding: 1rem 1.25rem 0.5rem;
}

.bootstrap-table .fixed-table-container {
    border: none;

    border-radius: 20px;

    overflow: hidden;
}

.bootstrap-table table {
    margin-bottom: 0;
}

.bootstrap-table thead {
    background: #fff8e1;
}

.bootstrap-table thead th {
    color: #7a5a00;

    font-size: 0.82rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05rem;

    border-bottom: 2px solid #f4b400;

    white-space: nowrap;
}

.bootstrap-table tbody tr {
    transition: background 0.18s ease;
}

.bootstrap-table tbody tr:hover {
    background: #fffdf5;
}

.bootstrap-table .table > :not(caption) > * > * {
    padding: 0.85rem 1rem;

    vertical-align: middle;
}

.bootstrap-table .btn-action {
    width: 38px;
    height: 38px;

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

    border-radius: 12px;
}

/* ==========================================================
   Search Box
========================================================== */

.bootstrap-table .search input {
    border-radius: 30px;

    border: 1px solid #e8c547;

    padding-left: 1rem;
}

.bootstrap-table .search input:focus {
    border-color: var(--honey);

    box-shadow: 0 0 0 0.2rem rgba(244, 180, 0, 0.18);
}

/* ==========================================================
   Filter Card
========================================================== */

#filter-place {
    min-width: 0;
}

.filter-card {
    border: none;

    border-radius: 20px;

    box-shadow: var(--shadow-sm);
}

/* ==========================================================
   Empty State
========================================================== */

.bootstrap-table .no-records-found {
    padding: 5rem 1rem !important;

    color: #888;
}

.bootstrap-table .no-records-found i {
    font-size: 3rem;

    color: #f4b400;
}

/* ==========================================================
   View Modal
========================================================== */

.modal-content {
    border: none;

    border-radius: 22px;
}

.modal-header {
    background: #fff8e1;

    border-bottom: 1px solid #ffe082;
}

.modal-footer {
    border-top: 1px solid #ffe082;
}

#vm-id-preview img {
    border-radius: 16px;

    box-shadow: var(--shadow-sm);
}

/* ==========================================================
   Sticky Header
========================================================== */

.sticky-header-container {
    z-index: 1020;
}

/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 767px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .stat-card h3 {
        font-size: 1.4rem;
    }

    .bootstrap-table .btn-group .btn-action {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================================
   Print
========================================================== */

@media print {
    .navbar,
    .footer,
    .fixed-table-toolbar,
    .btn,
    #stats-skeleton {
        display: none !important;
    }

    .card {
        box-shadow: none !important;

        border: 1px solid #ddd !important;
    }
}

/* ==========================================================
   Smooth Fade
========================================================== */

.card,
.modal-content,
.bootstrap-table {
    animation: fadeCard 0.35s ease;
}

@keyframes fadeCard {
    from {
        opacity: 0;

        transform: translateY(12px);
    }

    to {
        opacity: 1;

        transform: none;
    }
}

/* ==========================================================
   Dashboard Hero
========================================================== */

.hero-card {
    background:
        linear-gradient(rgba(255, 248, 225, 0.96), rgba(255, 248, 225, 0.96)),
        url("https://www.transparenttextures.com/patterns/honeycomb.png");

    border: 1px solid #ffe082;
}

.hero-icon {
    width: 78px;
    height: 78px;

    border-radius: 20px;

    background: linear-gradient(135deg, #f4b400, #d97706);

    color: #fff;

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

    font-size: 2rem;

    box-shadow: 0 0.75rem 1.5rem rgba(244, 180, 0, 0.25);
}

.hero-card .btn-warning {
    background: #f4b400;

    border-color: #f4b400;

    color: #2f2f2f;

    font-weight: 600;
}

.hero-card .btn-warning:hover {
    background: #e2a300;

    border-color: #e2a300;
}

.hero-card .btn-outline-warning {
    border-color: #f4b400;

    color: #b7791f;
}

.hero-card .btn-outline-warning:hover {
    background: #f4b400;

    color: #fff;
}

.stat-card .card-body {
    min-height: 150px;
}

.stat-card small {
    line-height: 1.35;

    min-height: 42px;

    display: block;
}

.stat-number {
    font-size: 2.2rem;

    line-height: 1;

    color: #2f2f2f;
}

.filter-card {
    border: 1px solid #ffe082;

    background: #fff;
}

.filter-card .card-header {
    background:
        linear-gradient(rgba(255, 248, 225, 0.95), rgba(255, 248, 225, 0.95)),
        url("https://www.transparenttextures.com/patterns/honeycomb.png");
}

.filter-card label {
    color: #555;

    letter-spacing: 0.02rem;
}

.filter-card .form-select,
.filter-card .form-control {
    border-radius: 12px;

    border: 1px solid #e8c547;
}

.filter-card .form-select:focus,
.filter-card .form-control:focus {
    border-color: #f4b400;

    box-shadow: 0 0 0 0.2rem rgba(244, 180, 0, 0.15);
}

/*=====================================================
    Applicant Table
=====================================================*/

.app-card {
    background: #fffef8;
    border: 1px solid rgba(243, 181, 0, 0.18);
}

.app-card .card-header {
    background: linear-gradient(135deg, #fff9df, #fff4c2);
    border-bottom: 1px solid rgba(243, 181, 0, 0.18);
}

.bootstrap-table {
    font-size: 0.93rem;
}

.bootstrap-table table {
    margin-bottom: 0;
}

.bootstrap-table thead th {
    background: #f4b400;
    color: #fff;
    border: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    vertical-align: middle;
}

.bootstrap-table tbody td {
    padding: 1rem 0.9rem;
    vertical-align: middle;
}

.bootstrap-table tbody tr {
    transition: 0.25s;
}

.bootstrap-table tbody tr:hover {
    background: #fff9e4;
}

.bootstrap-table tbody tr:nth-child(even) {
    background: #fffdf6;
}

.bootstrap-table .fixed-table-container {
    border: none;
}

.bootstrap-table .pagination-detail,
.bootstrap-table .page-list {
    color: #8a6d00;
}

.bootstrap-table .search input {
    border-radius: 999px;
    border: 1px solid rgba(243, 181, 0, 0.25);
    padding: 0.55rem 1rem;
}

.bootstrap-table .search input:focus {
    border-color: #f4b400;
    box-shadow: 0 0 0 0.2rem rgba(244, 180, 0, 0.15);
}

.bootstrap-table .btn {
    border-radius: 12px;
}

.bootstrap-table .fixed-table-toolbar {
    padding: 1rem;
    background: #fffef9;
}

.bootstrap-table .no-records-found {
    padding: 4rem 1rem !important;
    color: #8b7a38;
    font-size: 1rem;
}

.bootstrap-table .loading-wrap {
    padding: 3rem;
}

/*==================================================
    Applicant View Modal
==================================================*/

.app-modal-header {
    background: linear-gradient(135deg, #f4b400, #ffcf4d);
    color: #fff;
    padding: 1.5rem 2rem;
}

.app-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.app-section-card {
    background: #fffef8;
    border: 1px solid rgba(244, 180, 0, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a87400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

#vm-id-preview {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #f4b400;
    border-radius: 16px;
    background: #fffdf5;
    overflow: hidden;
}

#vm-id-preview img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 12px;
}

#vm-remarks {
    min-height: 120px;
}

.modal-footer {
    padding: 1rem 2rem 1.5rem;
}

/*==================================================
    Reject Modal
==================================================*/

.reject-modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    padding: 1.5rem 2rem;
}

.reject-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

#reject-remarks {
    resize: vertical;
    min-height: 180px;
    border: 2px solid #f1f1f1;
}

#reject-remarks:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.bg-danger-subtle {
    background: #fff3f3 !important;
}

#reject-counter {
    font-weight: 600;
    color: #dc3545;
}

.alert-warning {
    background: #fff8e6;
    color: #8a6d00;
}
