﻿/* ============================
   CUSTOM STYLING
============================ */
body {
    color: #1f2937; /* darker text */
    font-size: 15px;
    line-height: 1.6;
    background-color: #f5f7fb;
}

.text-muted {
    color: #6b7280 !important;
}

/* ============================
   HEADER & TITLES
============================ */
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    font-weight: 600;
}

.section-title {
    color: #0d6efd;
    font-weight: 600;
}

/* ============================
   ADVERTISEMENT STRIP
============================ */
.advt-strip {
    background: linear-gradient(90deg, #eef2ff, #f8fafc);
    border-bottom: 1px solid #dbeafe;
}

    .advt-strip .badge {
        background-color: #5b5bf0;
    }

/* ============================
   ACCORDION (INSTRUCTIONS)
============================ */
.accordion-button {
    background-color: #f0f6ff;
    color: #0d47a1;
    font-weight: 600;
}

    .accordion-button:not(.collapsed) {
        background-color: #dbeafe;
        color: #0d47a1;
    }

.accordion-body {
    background-color: #ffffff;
    color: #1f2937;
}

    .accordion-body li {
        margin-bottom: 0.6rem;
    }

/* ============================
   RIGHT SIDE ACTION CARDS
============================ */
.card {
    border-radius: 10px;
}

.card-body {
    color: #1f2937;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-success {
    border-color: #22c55e;
    color: #16a34a;
}

    .btn-outline-success:hover {
        background-color: #22c55e;
        color: #ffffff;
    }

/* ============================
   HELP CARD
============================ */
.help-card {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

    .help-card strong {
        color: #166534;
    }

/* ============================
   FOOTER
============================ */
.card-footer {
    background-color: #f8fafc;
    color: #475569;
}

/* ============================
   STATUS BADGES
============================ */
.status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.status-open {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-closed {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-upcoming {
    background-color: #e0e7ff;
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

.validation-summary-errors li {
    list-style: none;
}

.validation-summary-errors ul {
    margin: 0;
    padding: 0;
}

/* Controls equal space between header & footer */
.login-page-wrapper {
    min-height: calc(100vh - 280px); /* adjust only if header/footer change */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reduced width */
.login-card-wrapper {
    width: 100%;
    max-width: 520px;
}

/* Thin border for clarity */
.login-card {
    border: 1px solid #e3e8f0;
}

.clockdiv-cus {
    margin-top: 30px;
    margin-bottom: 30px;
}

    .clockdiv-cus .time {
        color: #475569; /* replace with your secondary color if different */
        font-size: 25px;
        font-weight: 600;
        position: relative;
        margin-right: 20px;
        display: inline-block;
        min-width: 28px;
        text-align: center;
    }

        .clockdiv-cus .time::before {
            content: ":";
            position: absolute;
            right: -15px;
            top: 50%;
            transform: translateY(-56%);
        }

        .clockdiv-cus .time:last-child::before {
            display: none;
        }

.session-bar {
    width: 100%;
    padding: 10px 20px;
}

.session-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.session-warning {
    grid-column: 2;
    text-align: center;
    font-size: 16px;
    color: #6c757d;
}

.clockdiv-cus {
    grid-column: 3;
    justify-self: end;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 1px;
}

    /* Countdown warning colors */
    .clockdiv-cus.warning .time {
        color: #fd7e14; /* orange */
    }

    .clockdiv-cus.danger .time {
        color: #dc3545; /* red */
        animation: pulse 1s infinite;
    }

/* Pulse animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Toast styling */
.session-toast {
    position: fixed;
    top: 90px;
    right: 30px;
    background: #fff3cd;
    color: #664d03;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #ffecb5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    font-size: 14px;
    z-index: 9999;
}

    .session-toast.show {
        display: flex;
    }


.bg-light-blue {
    background: #f5f9ff;
}


/* Tabs container */
.recruitment-tabs {
    background: #f5f9ff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #dbe7ff;
}

    /* Tab list */
    .recruitment-tabs .nav-tabs {
        border-bottom: none;
        gap: 6px;
    }

    /* Default tab */
    .recruitment-tabs .nav-link {
        border: none;
        border-radius: 8px;
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 500;
        color: #5f6f8c;
        background: #ffffff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        transition: all 0.25s ease;
    }

        /* Hover effect */
        .recruitment-tabs .nav-link:hover {
            background: #eef4ff;
            color: #0d6efd;
            transform: translateY(-1px);
        }

        /* Active tab */
        .recruitment-tabs .nav-link.active {
            background: linear-gradient(135deg, #0d6efd, #4f8dff);
            color: #ffffff;
            font-weight: 600;
            box-shadow: 0 6px 14px rgba(13,110,253,0.35);
        }

        /* Disabled / future tabs */
        .recruitment-tabs .nav-link.disabled {
            background: #f1f3f7;
            color: #9aa4b2;
            box-shadow: none;
            cursor: not-allowed;
        }

.session-warning-wrapper {
    display: flex;
    justify-content: center;
}

.toast-session {
    background: #fff3cd;
    color: #664d03;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #ffecb5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    align-items: center;   
    width: 37%;
    margin: auto;
    font-size: 14px;
    display: none;
}

.toast-session.show {
    display: flex;
}

/*.session-toast {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px; 
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}*/
.session-toast i {
    font-size: 18px;
}

/* Error style same as Category dropdown */
.field-error {
    border: 2px solid #dc3545 !important;
    border-radius: 10px;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, .25);
}

.field-error + .text-danger {
    display: block !important;
    font-size: 0.9rem;
    margin-top: 4px;
}

.badge-missing {
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-uploaded {
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.cus-bg {
    background: #f9fafd !important;
}

.form-locked input,
.form-locked select,
.form-locked textarea,
.form-locked button {
    pointer-events: none;
    background-color: #f8f9fa;
    opacity: 0.85;
}

.text-justify {
    text-align: justify;
}

.ml-3{
    margin-left: 3rem;
}

.dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.admin-card {
    border: 1px solid #e5e5e5;
    padding: 28px !important;
    color: rgb(83, 83, 83);
    background-color:#f5f9ff;
    font-size: 16px;
}

/* Center DataTables empty message */
table.dataTable td.dataTables_empty {
    text-align: center !important;
    vertical-align: middle;
    font-weight: 500;    
}

/* Modal Enhancements */
#actionModal .modal-content {
    transition: all 0.3s ease;
}

#modalIcon i {
    font-size: 48px;
}

.modal-success #modalHeaderBar {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.modal-error #modalHeaderBar {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.modal-warning #modalHeaderBar {
    background: linear-gradient(90deg, #ffc107, #ffb703);
}

.screening-timeline {
    position: relative;
    padding-left: 0;
    margin-left: 0;
}

    .screening-timeline .timeline-item {
        list-style: none; /* remove default bullet */
        position: relative;
        padding-left: 30px; /* space for custom dot */
        margin-bottom: 20px;
    }

        .screening-timeline .timeline-item::before {
            content: '';
            position: absolute;
            left: 8px;
            top: 6px;
            width: 10px;
            height: 10px;
            background-color: #0d6efd; /* primary blue */
            border-radius: 50%;
        }

.timeline-content {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #0d6efd;
}
