/* Softex Design System - Site Styles */
@import 'components/cards.css';
@import 'components/forms.css';
@import 'components/headers.css';


html {
  font-size: 14px;
  scrollbar-gutter: stable;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--softex-primary-alpha-20);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ==========================================
   Refactored Styles - Using Softex Tokens
   ========================================== */
:root {
    --primary-gradient: var(--softex-gradient);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, var(--softex-success) 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, var(--softex-warning) 0%, #d97706 100%);
    --danger-gradient: linear-gradient(135deg, var(--softex-danger) 0%, #dc2626 100%);
    --info-gradient: linear-gradient(135deg, var(--softex-info) 0%, #2563eb 100%);
    --dark-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);

    --sidebar-width: var(--softex-sidebar-width);
    --header-height: var(--softex-header-height);
    --border-radius: var(--softex-radius-xl);
    --transition-speed: 0.2s;
}

* {
    font-family: var(--softex-font-body);
}

body {
    background: var(--softex-bg-page);
    min-height: 100vh;
    font-family: var(--softex-font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: var(--softex-text-base);
    color: var(--softex-text-primary);
}

/* Force font on all text elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--softex-font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
}

p, span, div, a, label, input, select, textarea, button, td, th, li {
    font-family: var(--softex-font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
}
body { overflow-x: hidden; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--softex-sidebar-width);
    height: 100vh;
    background: var(--softex-bg-card);
    z-index: 1000;
    transition: transform var(--transition-speed) ease;
    overflow-y: auto;
    border-right: 1px solid var(--softex-border);
}

.sidebar-header {
    padding: var(--softex-space-5);
    display: flex;
    align-items: center;
    gap: var(--softex-space-3);
    border-bottom: 1px solid var(--softex-border);
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    background: var(--softex-gradient);
    border-radius: var(--softex-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.sidebar-brand {
    color: var(--softex-text-primary);
    font-size: var(--softex-text-xl);
    font-weight: var(--softex-font-bold);
}

.sidebar-brand small {
    display: block;
    font-size: var(--softex-text-xs);
    color: var(--softex-text-muted);
    font-weight: var(--softex-font-normal);
}

.sidebar-menu {
    padding: 10px 10px;
    list-style: none;
    margin: 0;
}

/* Sidebar groups (collapsible) */
.sidebar-group { 
    margin-bottom: 8px;
    padding: 4px 0;
}

.sidebar-group + .sidebar-group {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}

.sidebar-group-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.65);
    padding: 9px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 11px;
    font-weight: 700;
    transition: all var(--transition-speed) ease;
}

.sidebar-group-toggle:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
}

.sidebar-group-toggle .sidebar-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-group-toggle .sidebar-group-label i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.9;
}

.sidebar-group-toggle .sidebar-group-chevron {
    transition: transform var(--transition-speed) ease;
    opacity: 0.85;
}

.sidebar-group-toggle:not(.collapsed) {
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.06);
}

.sidebar-group-toggle:not(.collapsed) .sidebar-group-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 6px 0 0;
    padding: 0 0 8px 0;
}

.sidebar-submenu .sidebar-menu-link {
    padding-left: 14px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 12px 10px;
}

.sidebar-section-title {
    color: rgba(255,255,255,0.45);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 10px 10px 6px;
    margin-top: 4px;
}

.sidebar-menu-title {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 10px 4px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    margin-bottom: 2px;
}

/* Legacy hover removed to prevent conflict with Nifty Theme */
/*.sidebar-menu-link:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    transform: translateX(4px);
}*/

/* Legacy active state removed to prevent conflict with Nifty Theme */
/*.sidebar-menu-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}*/

.sidebar-menu-link i { font-size: 20px; width: 24px; text-align: center; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Header */
.main-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.header-search {
    position: relative;
    width: 350px;
}

.header-search input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid #eef0f7;
    border-radius: 12px;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
}

.header-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.header-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.header-actions { display: flex; align-items: center; gap: 15px; }

.header-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: none;
    background: #f8f9fe;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.header-action-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.header-action-btn .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: #f45c43;
    border-radius: 50%;
    font-size: 10px;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    border-radius: 12px;
    background: #f8f9fe;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-name { font-weight: 600; color: #1a1c2e; font-size: 14px; }
.user-role { font-size: 12px; color: #6c757d; }

/* Page Content */
.page-content { padding: 20px; }
.page-title { font-size: 24px; font-weight: 700; color: #1a1c2e; margin-bottom: 5px; }

/* Page Header (shared) */
.page-header {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0.9;
}

.page-header.d-flex {
    flex-wrap: wrap;
    gap: 12px;
}

.page-header.d-flex.align-items-center {
    align-items: flex-start !important;
}

.page-header .page-title {
    margin-bottom: 2px;
    line-height: 1.2;
}

.page-header .text-muted {
    font-size: 13px;
}

.page-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-header .btn,
.page-header .btn-group .btn {
    white-space: nowrap;
}

/* Reusable icons for list rows */
.entity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex: 0 0 auto;
}

.entity-icon.entity-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.entity-icon.entity-icon-lg {
    width: 70px;
    height: 70px;
    font-size: 28px;
}

.entity-icon--primary { background: var(--primary-gradient); }
.entity-icon--success { background: var(--success-gradient); }
.entity-icon--info { background: var(--info-gradient); }
.entity-icon--warning { background: var(--warning-gradient); }
.entity-icon--danger { background: var(--danger-gradient); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 12px;
}

.empty-state-icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    background: #f8f9fe;
    border: 1px dashed rgba(0,0,0,0.08);
}

.empty-state-icon i { font-size: 40px; }

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all var(--transition-speed) ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 20px;
    font-weight: 600;
}

.card-body { padding: 20px; }
.chart-wrapper {
    position: relative;
    height: 260px;
}

.chart-wrapper-lg {
    height: 340px;
}

.chart-wrapper canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 767.98px) {
    .chart-wrapper { height: 220px; }
    .chart-wrapper-lg { height: 280px; }
}

/* Stat Cards */
.stat-card {
    border-radius: 12px;
    padding: 18px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.stat-card-value { font-size: 28px; font-weight: 700; margin-bottom: 3px; }
.stat-card-label { font-size: 12px; opacity: 0.8; }

.stat-primary { background: var(--primary-gradient); }
.stat-success { background: var(--success-gradient); }
.stat-warning { background: var(--warning-gradient); }
.stat-info { background: var(--info-gradient); }
.stat-danger { background: var(--danger-gradient); }

/* Buttons - PILL SHAPED */
.btn {
    border-radius: var(--softex-radius-full); /* PILL SHAPE */
    padding: 10px 20px;
    font-weight: var(--softex-font-semibold);
    transition: all var(--transition-speed) ease;
}
.btn-primary {
    background: var(--softex-primary);
    border: none;
    box-shadow: var(--softex-shadow-primary);
}
.btn-primary:hover {
    background: var(--softex-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(var(--softex-primary-rgb), 0.3);
}
.btn-success { background: var(--success-gradient); border: none; }
.btn-danger { background: var(--danger-gradient); border: none; }

/* Tables */
.table thead th {
    background: #f8f9fe;
    border: none;
    padding: 15px 20px;
    font-weight: 700;
    color: #212529;
    font-size: 13px;
    text-transform: uppercase;
}

.table tbody td {
    padding: 18px 20px;
    border-color: #f8f9fe;
    vertical-align: middle;
}

.table tbody tr:hover { background: #f8f9fe; }

/* Forms - PILL SHAPED */
.form-control, .form-select {
    border-radius: var(--softex-radius-full); /* PILL SHAPE */
    padding: 12px 20px;
    border: 1px solid var(--softex-border-dark);
    background-color: var(--softex-bg-input);
}

.form-control:focus, .form-select:focus {
    border-color: var(--softex-primary);
    box-shadow: 0 0 0 4px var(--softex-primary-alpha-10);
}

textarea.form-control {
    border-radius: var(--softex-radius-xl); /* Rounded, not pill for textarea */
}

.form-label {
    font-size: var(--softex-text-sm);
    font-weight: var(--softex-font-extrabold);
    color: var(--softex-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--softex-space-2);
}

/* Skeleton Loader Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
    min-height: 1em;
    width: 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

[data-bs-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #2d2f4a 25%, #3d3f5a 50%, #2d2f4a 75%);
    background-size: 200% 100%;
}

/* Alerts */
.alert { border: none; border-radius: var(--border-radius); padding: 18px 25px; }
.alert-success { background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%); color: #11998e; }
.alert-danger { background: linear-gradient(135deg, rgba(235, 51, 73, 0.1) 0%, rgba(244, 92, 67, 0.1) 100%); color: #eb3349; }

/* Auth Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 30px;
}

.auth-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.auth-subtitle { text-align: center; color: #6c757d; margin-bottom: 30px; }

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* Dark Mode */
[data-bs-theme="dark"] body { background: #1a1c2e; }
[data-bs-theme="dark"] .main-header { background: #2d2f4a; border-color: rgba(255,255,255,0.1); }
[data-bs-theme="dark"] .header-action-btn { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
[data-bs-theme="dark"] .header-action-btn:hover { color: white; }
[data-bs-theme="dark"] .user-dropdown { background: rgba(255,255,255,0.06); }
[data-bs-theme="dark"] .user-name { color: #e9ecef; }
[data-bs-theme="dark"] .header-search input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); color: #e9ecef; }
[data-bs-theme="dark"] .header-search i { color: rgba(255,255,255,0.55); }
[data-bs-theme="dark"] .card { background: #2d2f4a; }
[data-bs-theme="dark"] .card-header { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); color: #e9ecef; }
[data-bs-theme="dark"] .page-title { color: #e9ecef; }
[data-bs-theme="dark"] .page-header { background: rgba(45,47,74,0.9); border-color: rgba(255,255,255,0.08); }
[data-bs-theme="dark"] .page-header::before { opacity: 0.7; }
[data-bs-theme="dark"] .empty-state-icon { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.12); }
[data-bs-theme="dark"] .table thead th { background: rgba(255,255,255,0.05); color: #adb5bd; }
[data-bs-theme="dark"] .table tbody tr:hover { background: rgba(255,255,255,0.03); }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background: #1a1c2e; border-color: rgba(255,255,255,0.1); color: white; }

/* Favorites Sidebar */
.favorites-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.favorites-sidebar.open {
    left: 0;
}

[data-bs-theme="dark"] .favorites-sidebar {
    background: #1a1c2e;
    border-color: rgba(255,255,255,0.05);
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.favorites-toggle-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 0.5rem;
    border-radius: 0 8px 8px 0;
    z-index: 1049;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.favorites-toggle-btn:hover {
    transform: translateY(-50%) translateX(2px);
}

.favorites-list a:hover {
    background-color: var(--bs-gray-100);
}

/* Unified Breadcrumb Bar */
.breadcrumb-bar {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-bar .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-bar .breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

.breadcrumb-bar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.breadcrumb-bar a:hover {
    color: #fff;
}


/* ==========================================
   SPAM DESIGN SYSTEM (Nifty UI)
   ========================================== */

/* Typography & Spacing Helpers */
.fw-800 { font-weight: 800 !important; }
.ls-tight { letter-spacing: -0.04em !important; }
.ls-wider { letter-spacing: 0.05em !important; }
.extra-small { font-size: 0.7rem !important; }
.dot-separator { width: 4px; height: 4px; border-radius: 50%; display: inline-block; background-color: #cbd5e0; margin: 0 4px; }

/* Transitions & Effects */
.transition-base { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important; }
.shadow-xs { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* Unified Header System */
.nifty-page-header {
    background-color: var(--bg-body);
    padding-top: 0.5rem;
    position: sticky;
    top: -2px;
    z-index: 10;
}

.nifty-header-card {
    background-color: white;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nifty-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

/* List Formatting */
.nifty-column-header {
    padding: 0.5rem 1rem;
    color: #a0aec0;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nifty-list-card {
    background-color: white;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
}

.nifty-list-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

/* View Switcher */
.nifty-view-switcher {
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 0.75rem;
    padding: 0.25rem;
    display: flex;
    gap: 0.25rem;
}

.nifty-view-btn {
    border: none;
    border-radius: 0.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: #718096;
    transition: all 0.2s ease;
}

.nifty-view-btn.active {
    background-color: #6366f1;
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

/* Balanced Premium Grid Card Design (Refined Layout) */
.nifty-balanced-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px !important;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.nifty-balanced-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1); 
    border-color: var(--nifty-indigo-light);
}

/* Header Section (Identity) */
.nifty-balanced-card .card-header-section {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    flex-grow: 1;
}

/* Soft Icon Wrapper */
.nifty-balanced-card .card-icon-soft {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0; /* Removing bottom margin to sit inline */
    transition: all 0.2s ease;
}

.nifty-balanced-card:hover .card-icon-soft {
    transform: scale(1.05);
}

.nifty-balanced-card .card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a202c;
    margin-bottom: 0.15rem; /* Tighten up */
    line-height: 1.1;
    transition: color 0.2s ease;
}

/* Grounded Footer (Progress) */
.nifty-balanced-card .card-footer-grounded {
    background: #f8fafc; /* Subtle grey background */
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Metric Cards */
.nifty-metric-card {
    background-color: white;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    padding: 1.25rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.nifty-metric-label {
    color: #a0aec0;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.nifty-metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
}

/* Status Badges */
.nifty-status-badge {
    min-width: 85px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 0.2s ease;
}

/* Kebab Menus */
.nifty-kebab-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    color: #64748b;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.nifty-kebab-btn:hover, .nifty-kebab-btn:focus, .show > .nifty-kebab-btn {
    background-color: #f1f5f9;
    color: #0f172a;
}

.nifty-dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0,0,0,0.05) !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem !important;
    min-width: 170px;
}

.nifty-dropdown-item {
    border-radius: 0.5rem !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #334155 !important;
    transition: all 0.15s ease;
}

.nifty-dropdown-item i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

.nifty-dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: #4f46e5 !important;
}

.nifty-dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

/* --- LANDING PAGE UTILITIES --- */
.landing-page-wrapper {
    min-height: 100vh;
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,95%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,98%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,96%,1) 0, transparent 50%);
    background-attachment: fixed;
    padding-bottom: 5rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem !important;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 500;
}

.btn-premium {
    padding: 1.1rem 2.5rem;
    border-radius: 1.25rem;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.btn-premium-primary {
    background: #0f172a;
    color: white !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.btn-premium-primary:hover {
    background: #1e293b;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.4);
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.3s ease;
}

.glass-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: #0f172a;
    color: white;
}



