@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   DESIGN TOKENS — Light Only
   ============================================ */
:root {
    /* Primary Palette */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-border: #c7d2fe;

    /* Neutral Palette */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --bg-input: #f8fafc;
    --bg-hero: #ffffff;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;

    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Sidebar */
    --sidebar-width: 260px;
}

/* ============================================
   BASE RESET
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
}

/* ============================================
   PUBLIC NAVBAR
   ============================================ */
.navbar-custom-public {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar-brand-public {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar-brand-public:hover {
    color: var(--primary-hover);
}

.nav-link-custom {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.925rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-link-custom:hover {
    color: var(--text-primary);
    background-color: var(--primary-light);
}

.nav-link-custom.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-premium {
    background: var(--primary);
    color: var(--text-on-primary) !important;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.925rem;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-premium-outline {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 22px;
    font-weight: 600;
    font-size: 0.925rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-premium-outline:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-indigo {
    background-color: var(--primary);
    color: var(--text-on-primary) !important;
    transition: var(--transition-fast);
}

.btn-indigo:not(.btn-sm) {
    font-weight: 600;
    padding: 11px 24px;
    border: none;
    border-radius: var(--radius-md);
}

.btn-indigo.btn-sm {
    border: 1px solid transparent;
}

.btn-indigo:hover {
    background-color: var(--primary-hover);
    color: var(--text-on-primary);
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #e0e7ff 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-icon-block {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-border);
}

.hero-icon-block i {
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--primary);
    opacity: 0.85;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.825rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-border);
    margin-bottom: 12px;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    height: 100%;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--text-on-primary);
    transform: scale(1.05);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-icon-block {
    font-size: clamp(5rem, 12vw, 8rem);
    display: block;
    text-align: center;
    line-height: 1;
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ============================================
   PORTFOLIO / BLOG CARDS
   ============================================ */
.portfolio-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}

.portfolio-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-body);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.03);
}

.portfolio-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.portfolio-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Form Controls */
.form-control-custom {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 0.925rem;
    transition: var(--transition-fast);
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

/* ============================================
   GALLERY & LIGHTBOX
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    cursor: pointer;
    background-color: var(--bg-body);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.7), transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.lightbox-modal .modal-content {
    background-color: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.lightbox-img {
    max-height: 80vh;
    object-fit: contain;
    width: 100%;
    border-radius: var(--radius-md);
}

/* ============================================
   PUBLIC FOOTER
   ============================================ */
.footer-public {
    border-top: 1px solid var(--border);
    background-color: var(--bg-card);
    padding: 40px 0 24px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #e0e7ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.login-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.login-form .form-control {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.925rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.login-form .form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* ============================================
   PANEL: SIDEBAR
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.sidebar-brand {
    padding: 20px 24px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.02em;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.925rem;
    transition: var(--transition-fast);
}

.sidebar-menu a i {
    margin-right: 10px;
    font-size: 1.15rem;
}

.sidebar-menu a:hover {
    color: var(--text-primary);
    background-color: var(--primary-light);
}

.sidebar-menu li.active a {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

/* ============================================
   PANEL: MAIN WRAPPER
   ============================================ */
.panel-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    margin: 0;
}

.main-wrapper {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    width: calc(100% - var(--sidebar-width));
}

.navbar-custom {
    height: 64px;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-body {
    padding: 24px;
    flex-grow: 1;
}

/* ============================================
   PANEL: STAT CARDS & CUSTOM CARDS
   ============================================ */
.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header-custom {
    background-color: transparent;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.card-body-custom {
    padding: 20px;
}

/* ============================================
   PANEL: TABLE STYLES
   ============================================ */
.table-custom {
    margin-bottom: 0;
}

.table-custom th {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom-width: 1px;
    padding: 12px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table-custom td {
    padding: 12px 16px;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.925rem;
}

/* ============================================
   PANEL: STATUS BADGES
   ============================================ */
.badge-talep {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-hazirlik {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-devam {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.badge-bitti {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ============================================
   PANEL: USER AVATAR
   ============================================ */
.user-avatar {
    width: 38px;
    height: 38px;
    background-color: var(--primary);
    color: var(--text-on-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.925rem;
}

/* ============================================
   MICRO-ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* Panels: Mobile */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .navbar-custom {
        padding: 0 16px;
    }

    .content-body {
        padding: 16px;
    }
}

/* Public pages: Tablet & down */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-icon-block {
        max-width: 200px;
    }

    .contact-card {
        padding: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .footer-public {
        padding: 32px 0 20px;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .hero-icon-block {
        max-width: 160px;
    }

    .hero-icon-block i {
        font-size: 3.5rem;
    }

    .service-card {
        padding: 24px 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0 24px;
    }

    .hero-icon-block {
        max-width: 140px;
    }

    .login-page {
        padding: 16px 0;
    }
}

/* ============================================
   SIDEBAR BACKDROP (MOBILE)
   ============================================ */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   UTILITY HELPERS
   ============================================ */
.max-width-600 {
    max-width: 600px;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.border-section {
    border-top: 1px solid var(--border);
}

.bg-section-alt {
    background-color: var(--bg-card);
}

/* ============================================
   MODAL FIXES — Light background for all modals
   ============================================ */
.modal-content {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    background-color: var(--bg-card) !important;
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
    background-color: var(--bg-card) !important;
}

.modal-title {
    color: var(--text-primary) !important;
}

.btn-close {
    filter: none !important;
}

/* ============================================
   FILTER BUTTON FIXES — consistent sizing
   ============================================ */
.d-flex.flex-wrap.gap-2 > .btn-sm.rounded-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    white-space: nowrap;
}

/* ============================================
   BLOG MEDIA CARD FIXES — light background
   ============================================ */
.card.bg-slate-900,
.card[style*="background-color: #0f172a"] {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.card .card-body .form-check-label {
    color: var(--text-secondary) !important;
}

.card .border-top.border-secondary {
    border-color: var(--border) !important;
}

/* ============================================
   SIDEBAR NOTIFICATION BADGE
   ============================================ */
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-menu a .badge {
    margin-left: auto;
}

/* ============================================
   MOBILE UX/UI ENHANCEMENTS
   ============================================ */

/* 1. Stack table columns into readable cards on mobile */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none !important;
        overflow-x: visible !important; /* Eliminate horizontal scrollbar */
    }
    
    .table-custom {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    
    .table-custom thead {
        display: none !important; /* Hide column headers */
    }
    
    .table-custom tbody {
        display: block !important;
        width: 100% !important;
    }
    
    .table-custom tr {
        display: block !important;
        width: 100% !important;
        background-color: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-md) !important;
        margin-bottom: 16px !important;
        padding: 12px 16px !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .table-custom td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--border-light) !important;
        font-size: 0.875rem !important;
        text-align: right !important;
        width: 100% !important;
        min-height: 44px !important;
        background: none !important;
    }
    
    .table-custom td:last-child {
        border-bottom: none !important;
        justify-content: flex-end !important;
        padding-top: 12px !important;
    }
    
    /* Inject column header labels using data-label attribute */
    .table-custom td[data-label]::before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        text-align: left !important;
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }
}

/* 2. Compact Stats Cards on Mobile (2 columns instead of 1) */
@media (max-width: 575.98px) {
    .row > .col-sm-6:has(.stat-card),
    .row > .col-md-6:has(.stat-card),
    .row > .col-lg-4:has(.stat-card) {
        flex: 0 0 auto !important;
        width: 50% !important;
    }
    
    .stat-card {
        padding: 12px !important;
        margin-bottom: 0 !important;
        border-radius: var(--radius-md) !important;
        gap: 8px !important;
    }
    
    .stat-card h2, .stat-card h3 {
        font-size: 1.25rem !important;
    }
    
    .stat-card .bg-primary,
    .stat-card .bg-indigo,
    .stat-card .bg-success,
    .stat-card .bg-violet {
        padding: 8px !important;
    }
    
    .stat-card i {
        font-size: 1.25rem !important;
    }
}
