/* =============================================
   ADMIN PROJECTS PAGE — #347deb theme
   ============================================= */

/* ---------- Keyframes ---------- */
@keyframes projFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes projShimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

/* ---------- Page Header ---------- */
.container-fluid .d-flex.justify-content-between {
    animation: projFadeUp 0.4s ease both;
}

.container-fluid .d-flex.justify-content-between h1 {
    font-weight: 700;
    color: #1a3f80;
    letter-spacing: -0.4px;
}

.container-fluid .d-flex.justify-content-between .text-muted {
    color: #6b84b0 !important;
    font-size: 0.85rem;
}

/* ---------- Create Project Button ---------- */
.btn-primary {
    background: linear-gradient(135deg, #347deb, #1a3f80);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    box-shadow: 0 3px 12px rgba(52, 125, 235, 0.30);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1f62cc, #12317a);
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 125, 235, 0.38);
}

.btn-primary:active {
    transform: scale(0.97);
}

/* ---------- Filters Card ---------- */
.card.mb-4 {
    border: 1px solid rgba(52, 125, 235, 0.10);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(52, 125, 235, 0.07);
    overflow: hidden;
    animation: projFadeUp 0.45s 0.06s ease both;
}

    .card.mb-4 .card-header {
        background: linear-gradient(90deg, #1a3f80, #2360c8, #347deb) !important;
        border-bottom: none;
        padding: 0.9rem 1.25rem;
        position: relative;
        color: White;
        margin-left: -15px;
        margin-right: -15px;
    }

.card.mb-4 .card-header h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.card.mb-4 .card-header h5 i {
    margin-right: 6px;
    opacity: 0.85;
}

.card.mb-4 .card-body {
    background: #fff;
    padding: 1.25rem 1.5rem;
}

/* Form labels */
.form-label {
    font-size: 0.80rem;
    font-weight: 600;
    color: #1a3f80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

/* Inputs & selects */
.form-control,
.form-select {
    border: 1.5px solid rgba(52, 125, 235, 0.20);
    border-radius: 10px;
    font-size: 0.88rem;
    color: #2d3a55;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #f8faff;
    padding: 0.5rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #347deb;
    box-shadow: 0 0 0 3px rgba(52, 125, 235, 0.15);
    background: #fff;
    outline: none;
}

.form-control::placeholder {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* HR divider in filter card */
.card.mb-4 hr {
    border-color: rgba(52, 125, 235, 0.10);
    margin: 0.5rem 0;
}

/* Apply Filters button */
#applyBtn {
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Apply Date Range button */
#applyDateBtn,
.btn-outline-primary {
    border: 1.5px solid #347deb;
    color: #347deb;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.15s;
    background: transparent;
}

#applyDateBtn:hover,
.btn-outline-primary:hover {
    background: #347deb;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 125, 235, 0.25);
    border-color: #347deb;
}

/* Reset Filters button */
.btn-outline-secondary {
    border: 1.5px solid rgba(52, 125, 235, 0.25);
    color: #6b84b0;
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: rgba(52, 125, 235, 0.07);
    color: #347deb;
    border-color: #347deb;
}

/* ---------- Projects Table Card ---------- */
.card:not(.mb-4) {
    border: 1px solid rgba(52, 125, 235, 0.10);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(52, 125, 235, 0.07);
    overflow: hidden;
    animation: projFadeUp 0.45s 0.14s ease both;
}

/* Table head */
.table thead.table-light tr,
.table-hover thead tr {
    background: linear-gradient(90deg, #1a3f80, #2360c8, #347deb) !important;
}

.table thead th {
    background: transparent !important;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

/* Table body */
.table-hover tbody tr {
    transition: background 0.15s, transform 0.15s;
    border-bottom: 1px solid rgba(52, 125, 235, 0.06);
}

.table-hover tbody tr:last-child {
    border-bottom: none;
}

.table-hover tbody tr:hover {
    background: rgba(52, 125, 235, 0.05) !important;
    transform: scale(1.003);
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border: none;
    color: #2d3a55;
    font-size: 0.88rem;
}

.table tbody td strong {
    color: #1a3f80;
    font-weight: 600;
    font-size: 0.90rem;
}

.table tbody td small {
    color: #6b84b0;
    font-size: 0.82rem;
}

/* ---------- Status Badges ---------- */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.38em 0.8em;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

/* bg-secondary → Not Started */
.badge.bg-secondary {
    background: #e9ecef !important;
    color: #4a5568 !important;
}

/* bg-primary → In Progress */
.badge.bg-primary {
    background: rgba(52, 125, 235, 0.13) !important;
    color: white !important;
}

/* bg-warning → On Hold */
.badge.bg-warning {
    background: #fff3cd !important;
    color: #856404 !important;
}

/* bg-success → Completed */
.badge.bg-success {
    background: #d4f4e3 !important;
    color: #0d6832 !important;
}

/* ---------- Action Buttons ---------- */
.btn-group-sm .btn {
    border-radius: 8px !important;
    font-size: 0.8rem;
    padding: 0.35rem 0.55rem;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
    border-width: 1.5px;
}

.btn-group-sm .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.btn-group-sm .btn-outline-primary {
    border-color: rgba(52, 125, 235, 0.4);
    color: #347deb;
}

.btn-group-sm .btn-outline-primary:hover {
    background: #347deb;
    color: #fff;
    border-color: #347deb;
}

.btn-group-sm .btn-outline-info {
    border-color: rgba(13, 202, 240, 0.4);
    color: #0a7fa3;
}

.btn-group-sm .btn-outline-info:hover {
    background: #0dcaf0;
    color: #fff;
    border-color: #0dcaf0;
}

.btn-group-sm .btn-outline-warning {
    border-color: rgba(255, 193, 7, 0.4);
    color: #a37d00;
}

.btn-group-sm .btn-outline-warning:hover {
    background: #ffc107;
    color: #3d2e00;
    border-color: #ffc107;
}

/* Spacing between btn-group buttons */
.btn-group-sm .btn + .btn {
    margin-left: 4px;
}

/* ---------- Archive Modal ---------- */
.modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(52, 125, 235, 0.18);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, #1a3f80, #347deb);
    border-bottom: none;
    padding: 1.1rem 1.4rem;
}

.modal-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.modal-header .btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.4rem;
    font-size: 0.92rem;
    color: #2d3a55;
    line-height: 1.6;
}

.modal-body #projectName {
    font-weight: 700;
    color: #1a3f80;
}

.modal-body .text-muted {
    font-size: 0.82rem;
    color: #6b84b0 !important;
    margin-top: 0.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(52, 125, 235, 0.10);
    padding: 0.9rem 1.4rem;
    gap: 8px;
}

.modal-footer .btn-secondary {
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(52, 125, 235, 0.08);
    color: #1a3f80;
    border: 1.5px solid rgba(52, 125, 235, 0.18);
    transition: background 0.18s;
}

.modal-footer .btn-secondary:hover {
    background: rgba(52, 125, 235, 0.15);
    color: #1a3f80;
}

.modal-footer .btn-warning {
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    background: #ffc107;
    color: #3d2e00;
    border: none;
    transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
}

.modal-footer .btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}
.text-custom-blue {
    color: #1a3f80
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .container-fluid .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 12px;
        border-radius: 12px;
        border: 1px solid rgba(52, 125, 235, 0.12);
        padding: 8px;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 10px;
        border-bottom: 1px solid rgba(52, 125, 235, 0.06);
    }

    .table tbody td:last-child {
        border-bottom: none;
        justify-content: flex-end;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        color: #6b84b0;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }
   

    
    
}
