/* --------- Google Fonts --------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;600;700&display=swap');

/* --------- CSS Variables --------- */
:root {
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    --color-primary: #b02141;
    --color-primary-light: #d94a6a;

    --heading-color: var(--color-primary);
    --nav-bg: #b02141;

    --text-muted: #666;
}

html {
    scroll-behavior: smooth;
}

/* --------- Base --------- */
body {
    font-size: 16px;
    margin-top: 1em;
    background-color: #fff;
    font-family: var(--font-body);
}

/* --------- Header --------- */
.header img {
    height: 60px;
    max-width: 100%;
}

/* --------- Navbar --------- */
.mynavbar {
    font-size: 1em;
    border-radius: 0.5em;
    background-color: var(--nav-bg);
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #3a010f, #8c1a34);
    /* flex-wrap: nowrap; */
    min-height: 60px;
}

.mynavbar .container {
    align-items: center;
}
.navbar-collapse {
    transition: all 0.25s ease-in-out;
    background: transparent; /* or same navbar color */
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.nav-item {
    margin-right: 0.6rem; /* was 1rem */
}

.nav-item a.nav-link {
    color: #eee !important;
    font-weight: 400;
    text-transform: uppercase;
    position: relative;

    font-size: 0.9rem;
    padding: 0.5rem 0.6rem !important;
}

.nav-item a.nav-link:hover {
    color: #fff !important;
}

.nav-item a.nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: #fff;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-item a.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* --------- Pagination --------- */

/* --------- Cards --------- */
.card-header,
.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

.card-text {
    font-family: var(--font-body);
}

/* --------- Typography --------- */
h1.head1 {
    font-size: 1.8em;
    margin: 0.5em 0 1em;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--heading-color);
}

h2,
h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
}

h2 {
    font-size: 1.3em;
    font-weight: 700;
}

h4 {
    font-size: 1.2em;
    font-weight: 500;
}

/* --------- Forms --------- */
.form-group {
    margin-bottom: 1em;
}

.form-group label {
    margin-bottom: 0.2em;
}

/* --------- Table --------- */
table th {
    font-family: var(--font-heading);
}

/* --------- Utility --------- */
.highlight {
    background-color: yellow;
    font-weight: bold;
}

/* --------- Footer --------- */
.footer {
    width: 100%;
    margin-top: 3em;
    padding-top: 1em;
    font-size: 0.85em;
    color: #333;
    /* border-top: 1px dashed var(--color-primary); */
    font-family: var(--font-body);
}

.footer a {
    text-decoration: none;
    margin: 0 10px;
    color: var(--color-primary);
}

.footer a:hover {
    text-decoration: underline;
}

.footer .social-icons {
    margin-top: 10px;
}
.footer .container {
    border-top: 1px dashed var(--color-primary);
    padding-top: 1em;
}

/* --------- Responsive --------- */

.dashboard-header {
    background: rgba(176, 33, 65, 0.04);
    border: 1px solid rgba(176, 33, 65, 0.08);
}

h2 i {
    transition: transform 0.3s ease;
}

h2:hover i {
    transform: rotate(10deg) scale(1.1);
}
/* Cards */
.dashboard-card {
    border: none;
    border-radius: 16px;
    padding: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Card Icon */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-icon i {
    font-size: 1.3rem;
}

/* Softer colors */
.bg-soft-primary {
    background: rgba(176, 33, 65, 0.1);
    color: #b02141;
}

.bg-soft-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.bg-soft-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Accent Button */
.btn-accent {
    background-color: #b02141;
    color: #fff;
    border: none;
}

.btn-accent:hover {
    background-color: #8c1a34;
    color: #fff;
}

.btn-accent-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-accent-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(176, 33, 65, 0.2);
}

/* Row background (like table-warning) */
.table-accent {
    --bs-table-bg: rgba(176, 33, 65, 0.08);
    --bs-table-striped-bg: rgba(176, 33, 65, 0.12);
    --bs-table-hover-bg: rgba(176, 33, 65, 0.16);
    --bs-table-color: #000;

    background-color: rgba(176, 33, 65, 0.12);
}

/* ---------- Page Header ---------- */
.page-header {
    margin-bottom: 1rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* ---------- Form Cards ---------- */
.form-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.form-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

/* Header subtle (NO COLORS) */
.form-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    position: relative;
    padding-left: 1rem;
}

/* Accent line (your brand color) */
.form-card .card-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background: var(--color-primary);
    border-radius: 4px;
}

/* ---------- Form Inputs ---------- */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* padding: 0.5rem 0.65rem; */
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(176, 33, 65, 0.08);
}
/* ---------- Labels ---------- */
.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

/* ---------- Buttons ---------- */
.btn-light {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-light:hover {
    background: #f1f1f1;
}

.dt-paging .pagination {
    --bs-pagination-color: #b02141;

    --bs-pagination-bg: #fff;

    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: #b02141;
    --bs-pagination-hover-border-color: #b02141;

    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #b02141;
    --bs-pagination-active-border-color: #b02141;

    --bs-pagination-focus-color: #fff;
    --bs-pagination-focus-bg: #b02141;
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(176, 33, 65, 0.25);

    --bs-pagination-disabled-color: #aaa;
    --bs-pagination-disabled-bg: #fff;

    --bs-pagination-border-color: rgba(0, 0, 0, 0.08);
}

.logout-anim::after {
    content: '';
    animation: dots 1s steps(3, end) infinite;
    margin-left: 4px;
}

@keyframes dots {
    0% {
        content: '';
    }
    33% {
        content: '.';
    }
    66% {
        content: '..';
    }
    100% {
        content: '...';
    }
}

#logoutBtn {
    transition: all 0.2s ease;
}

#logoutBtn.logout-anim {
    color: var(--color-primary);
    opacity: 0.8;
}

#loader::after {
    content: '';
    width: 100px;
    height: 100px;
    border: 4px solid #ccc;
    border-top-color: #d9534f;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.placeholder {
    display: inline-block;
    height: 12px;
    background: #e0e0e0;
    border-radius: 4px;
}

.placeholder-glow .placeholder {
    animation: placeholder-glow 1.5s infinite;
}

@keyframes placeholder-glow {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}
