/* -------------------------------------------------------
   ADMIN DASHBOARD THEME 
   Blue + Orange Hybrid Theme
--------------------------------------------------------*/
:root {
    --authority-orange: #D85F19;
    --authority-blue: #1A4C8A;
    --bg-light: #F1F1F1;
    --card-bg: #FFFFFF;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --radius: 20px;
}

/* Body */
body {
    background: var(--bg-light);
    font-family: system-ui, sans-serif;
    padding: 25px;
    position: relative; /* To make sure everything is in the same layout */
}

/* Admin GIF style */
.admin-gif {
    background-image: url('../images/Buffer-rafiki.png'); /* Make sure this path is correct */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* Ensures the character is fully visible */
    width: 40%; /* The gif will take up the entire width */
    height:1000px; /* Set a fixed height for the GIF */
    /* position: absolute; */
    /* top: 0; Position the GIF at the top */
    z-index: -1; /* Ensure that it stays behind the dashboard card */
}

/* Wrapper */
.dashboard-wrapper {
    width: 100%;
    max-width: 1320px;
    display: flex;
    flex-direction: space-between;
    position: relative; /* This will allow the gif to be positioned behind */
}

/* Card Container */
.dashboard-card {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0px 16px 38px rgba(2, 8, 23, 0.12);
    overflow: hidden;
    animation: fadeInSlow 1.5s ease-out both;
    /* position: relative; */
    /* z-index: 1; Card stays above the GIF */
}

/* -------------------------------------------------------
   TOP BAR
--------------------------------------------------------*/

.top-bar {
    padding: 16px 24px;
    background: linear-gradient(90deg,  var(--authority-orange) 0%, var(--authority-blue) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.top-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.top-logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.top-right .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #ffffff;
    color: var(--authority-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-right .icon-btn:hover { background: #ffffff; box-shadow: 0 10px 24px rgba(2,8,23,0.18); transform: translateY(-1px) scale(1.02); }
.top-right .icon-btn:active { transform: scale(0.98); }

.profile-box .avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--authority-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* -------------------------------------------------------
   CONTENT AREA
--------------------------------------------------------*/

.dashboard-inner {
    padding: 40px;
}

.header-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-main);
}

/* -------------------------------------------------------
   STAT CARDS
--------------------------------------------------------*/

.stat-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: 0.2s ease;
    position: relative;
}

.stat-card:hover { transform: translateY(-2px) scale(1.01); }
.stat-card.pulse-border::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    border: 2px solid var(--authority-orange);
    opacity: 0.6;
    animation: pulseBorder 2s ease-in-out infinite;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    background: linear-gradient(45deg, var(--authority-blue), var(--authority-orange));
    -webkit-background-clip: text;
    color: transparent;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* -------------------------------------------------------
   CARDS + FEATURE BLOCKS
--------------------------------------------------------*/

.card-soft {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    padding: 18px;
}

.card-soft:hover {
    background: #fff8f0;
}

.section-title { font-weight: 700; color: var(--authority-blue); }
.section-solid { border-radius: 16px; padding: 12px 14px; color: #fff; }
.section-solid.section-blue { background: var(--authority-blue); }
.section-solid.section-orange { background: var(--authority-orange); }

/* Feature cards */
.feature-card,
.role-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid #e2e8f0;
    transition: 0.25s;
}

.role-card:hover,
.feature-card:hover { background: #f6fbff; border-color: var(--authority-blue); }

/* Pills */
.pill {
    background: var(--orange);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* List Group */
.list-item-action {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: slideInNav 0.9s ease-out both;
}

.list-item-action:hover { background: #fff; border-color: var(--authority-blue); box-shadow: 0 12px 28px rgba(2,8,23,0.12); }
.list-item-action:active { transform: scale(0.98); }

/* -------------------------------------------------------
   TABLES
--------------------------------------------------------*/

.table thead tr {
    background: var(--authority-blue);
    color: #fff;
}

.table thead th {
    font-weight: 600;
    padding: 12px;
}

.table tbody tr {
    transition: 0.2s;
}

.table tbody tr:hover {
    background: #f1f7ff;

}
.btn-outline-brand {
    border: 1px solid var(--authority-blue);
    color: var(--authority-blue);
}

.btn-outline-brand:hover {
    background: var(--authority-blue);
    color: #fff;
}

/* Status Badge */
.bg-blue { background: var(--authority-blue) !important; }


/* -------------------------------------------------------
   MODAL
--------------------------------------------------------*/

.modal-content {
    border-radius: var(--radius);
}
.btn-logout{
    background: linear-gradient(90deg, var(--authority-orange) 0%, var(--authority-blue) 100%);
    border: 2px solid whilte;
    color:white;
}
/* Save button */
.btn-brand {
    background: var(--authority-orange);
    color: #fff;
    border-radius: 8px;
}

.btn-brand:hover {
    background: #bf5418;
}

/* -------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------*/

@media (max-width: 768px) {
    .dashboard-inner {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    body { padding: 14px; }
    .top-bar { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
    .dashboard-wrapper { flex-direction: column; }
    .admin-gif { display: none; }
    .header-title { font-size: clamp(1.4rem, 4vw, 1.6rem); }
    .list-item-action { flex-direction: row; gap: 8px; }
    .top-right .icon-btn { width: 34px; height: 34px; }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .dashboard-wrapper { flex-direction: row; }
    .admin-gif { height: 600px; width: 40%; }
}

@media (min-width: 1400px) {
    .dashboard-wrapper { max-width: 1420px; }
}

/* Animations */
@keyframes fadeInSlow { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseBorder { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.9; } }
@keyframes slideInNav { from { transform: translateX(-16px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.fw-semibold{color:black;}
