/* =========================
   GLOBAL BACKGROUND
========================= */
body,
body.bg-light {
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364) !important;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    color: white;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(8px);
}

.navbar a,
.navbar-brand {
    color: #fff !important;
}

/* =========================
   CARD (MAIN SYSTEM UI)
========================= */
.card {
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(10px);
    border-radius: 15px !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card p,
.card h5,
.card h6,
.card strong,
.card small {
    color: white !important;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
    background: #0f172a !important;
    border: none !important;
    border-radius: 8px;
}

.btn-primary:hover {
    background: #020617 !important;
}

.btn-dark {
    background: #0d6efd !important;
    border: none !important;
}

/* =========================
   INPUT
========================= */
.form-control {
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    color: white !important;
}

.form-control::placeholder {
    color: #ddd !important;
}

/* =========================
   TABLE (FINAL CLEAN VERSION)
========================= */
.table {
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
}

.table thead th {
    border: none !important;
    color: #ccc !important;
    font-weight: 600;
}

.table tbody tr {
    background: rgba(15, 23, 42, 0.7) !important;
    transition: 0.3s;
}

.table tbody tr:hover {
    background: rgba(30, 41, 59, 0.9) !important;
}

.table td {
    border: none !important;
    color: white !important;
    vertical-align: middle;
}

/* Rounded row edges */
.table tbody tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.table tbody tr td:last-child {
    border-radius: 0 12px 12px 0;
}

/* =========================
   BADGES
========================= */
.badge {
    font-size: 12px;
    padding: 6px 10px;
}

/* =========================
   CANVAS (CHART)
========================= */
canvas {
    background: rgba(255,255,255,0.08) !important;
    padding: 15px;
    border-radius: 12px;
}

/* =========================
   AUTH (LOGIN / SIGNUP)
========================= */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.auth-card input,
.auth-card select {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    margin-bottom: 12px;
}

.auth-card input::placeholder {
    color: #ddd;
}

.auth-btn {
    background: #0f172a;
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    width: 100%;
}

.auth-btn:hover {
    background: #020617;
}

.auth-link {
    color: #ddd;
    font-size: 14px;
}

.auth-link:hover {
    color: white;
}

/* =========================
   CERTIFICATE IMAGE HOVER
========================= */
.cert-img-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.cert-img-wrapper:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.custom-table {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.custom-table thead th {
    border: none !important;
    color: #9ca3af !important;
}

.custom-table tbody tr {
    background: rgba(15, 23, 42, 0.85) !important;
}

.custom-table td {
    border: none !important;
    color: white !important;
    vertical-align: middle;
}

/* PFP */
.pfp-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pfp {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.pfp-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* BADGES */
.program-badge {
    background: #2563eb;
}

.category-badge {
    background: #06b6d4;
    margin-right: 5px;
}

.total-badge {
    background: #16a34a;
}

/* =========================
FORCE BOOTSTRAP OVERRIDE 
========================= */

/* Remove ALL white backgrounds */
.table,
.table thead,
.table tbody,
.table tr,
.table th,
.table td {
    background: transparent !important;
}

/* Force dark rows */
.table tbody tr,
.custom-table tbody tr {
    background: rgba(15, 23, 42, 0.95) !important;
}

/* Fix header (was white) */
.table thead th {
    color: white !important;
}

/* Force text visible */
.table td,
.table th {
    color: #ffffff !important;
}

/* Fix spacing again */
.table {
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
}

/* center image column */
.table th:first-child,
.table td:first-child {
    text-align: center;
}

/* =========================
   STAFF TABLE CLEAN STYLE
========================= */
.staff-table {
    border-collapse: separate;
    border-spacing: 0 12px;
}

/* HEADER */
.staff-table thead th {
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 16px;
}

/* ROW */
.staff-table tbody tr {
    background: rgba(15, 23, 42, 0.85);
    transition: 0.3s;
}

.staff-table tbody tr:hover {
    background: rgba(30, 41, 59, 1);
}

/* CELLS */
.staff-table td {
    border: none !important;
    padding: 16px;
    color: white;
}

/* ROUND ROW */
.staff-table tbody tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.staff-table tbody tr td:last-child {
    border-radius: 0 12px 12px 0;
}

/* PROGRAM BADGE */
.program-badge {
    background: #2563eb;
}

/* ALIGN ACTION */
.staff-table td:last-child {
    text-align: center;
}

/* DASHBOARD STATS */
.card h6 {
    color: #9ca3af !important;
    font-size: 14px;
}

.card h3 {
    font-weight: 700;
}

/* CHART TEXT FIX */
canvas {
    color: white !important;
}

/* DROPDOWN DARK THEME */
select.form-control,
select.form-select {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
}

/* DROPDOWN OPTIONS */
select option {
    background: #1e293b; /* dark */
    color: white;
}

/* FIX DROPDOWN OVERLAY */
.dropdown-menu {
    z-index: 9999 !important;
    position: absolute;
}

/* DARK DROPDOWN STYLE */
.dropdown-menu {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
}

/* ITEMS */
.dropdown-item {
    color: white !important;
    transition: 0.2s;
}

/* HOVER EFFECT */
.dropdown-item:hover {
    background: rgba(30, 41, 59, 0.9) !important;
    color: white !important;
}

/* DIVIDER */
.dropdown-divider {
    border-color: rgba(255,255,255,0.1);
}

.navbar {
    position: relative;
    z-index: 1000;
}

/* Certificate Hover Zoom */
.cert-img-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-img-wrapper:hover img {
    transform: scale(1.1);
}