/* ====================================================================
   CAMPUS LOST & FOUND SYSTEM - MODERN DESIGN SYSTEM
   DBMS Course Project • Review 1 (50% Milestone)
   ==================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --secondary: #64748b;
    --accent: #06b6d4;
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.12);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.12);

    --bg-main: #0b0f19;
    --bg-card: #111827;
    --bg-card-hover: #1f293d;
    --bg-subtle: #1e293b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ====================================================================
   NAVIGATION BAR
   ==================================================================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 16px rgba(79, 70, 229, 0.4);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-team-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.team-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.85rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.team-tag strong {
    color: #e2e8f0;
}

.db-badge {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5);
}

.btn-primary-sm {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-primary-sm:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-secondary-sm {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-secondary-sm:hover {
    background: var(--bg-card-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-outline-sm {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-outline-sm:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-success-sm {
    background: var(--success);
    color: white;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-danger-sm {
    background: var(--danger);
    color: white;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* ====================================================================
   APP LAYOUT & SIDEBAR
   ==================================================================== */
.app-layout {
    display: flex;
    min-height: calc(100vh - 65px);
}

.sidebar {
    width: 260px;
    background: #0f172a;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 0.85rem;
    flex-shrink: 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    position: relative;
}

.nav-tab i {
    width: 18px;
    height: 18px;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-tab.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(79, 70, 229, 0.08));
    color: #818cf8;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.special-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.special-tab:hover {
    border-color: #818cf8;
}

.tab-badge {
    margin-left: auto;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tab-badge.warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0.5rem;
}

.menu-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.25rem 0.85rem;
}

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

.db-status-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.status-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
}

.status-details small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* ====================================================================
   MAIN CONTENT AREA
   ==================================================================== */
.main-content {
    flex: 1;
    padding: 1.75rem 2rem;
    overflow-y: auto;
    max-width: 1400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

/* ====================================================================
   KPI CARDS GRID (DASHBOARD)
   ==================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.15rem;
    margin-bottom: 1.75rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon i {
    width: 24px;
    height: 24px;
}

.danger-card .kpi-icon { background: var(--danger-light); color: #f87171; }
.success-card .kpi-icon { background: var(--success-light); color: #34d399; }
.warning-card .kpi-icon { background: var(--warning-light); color: #fbbf24; }
.primary-card .kpi-icon { background: var(--primary-light); color: #818cf8; }

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin: 0.15rem 0;
}

.kpi-subtext {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ====================================================================
   DASHBOARD COLUMNS & CARDS
   ==================================================================== */
.dash-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dash-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
}

.dash-card-header h3 i {
    width: 18px;
    height: 18px;
    color: #818cf8;
}

.dash-card-body {
    padding: 1.25rem;
}

/* Category distribution list */
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.category-item:last-child {
    border-bottom: none;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.category-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-primary);
}

/* Activity stream item */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-badge {
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.activity-badge.lost { background: var(--danger-light); color: #f87171; }
.activity-badge.found { background: var(--success-light); color: #34d399; }

.activity-details strong {
    color: #f1f5f9;
    font-size: 0.88rem;
}

.activity-details p {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

/* Quick Action Banner */
.quick-action-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.banner-text h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.35rem;
}

.banner-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 680px;
}

.banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ====================================================================
   FILTER & SEARCH TOOLBAR
   ==================================================================== */
.filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.85rem;
    flex: 1;
    max-width: 460px;
}

.search-box i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: var(--font-body);
    font-size: 0.86rem;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

select, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

select:focus, input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* ====================================================================
   CARDS GRID (LOST & FOUND CATALOG)
   ==================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.item-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.item-card-header {
    padding: 1.15rem 1.25rem 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item-category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #818cf8;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin: 0.35rem 0 0.2rem;
}

.status-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge.pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-badge.claimed { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-badge.approved { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-badge.returned { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

.item-card-body {
    padding: 0 1.25rem 1rem;
    flex: 1;
}

.item-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-meta-row i {
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.item-meta-row strong {
    color: #cbd5e1;
}

.item-card-footer {
    padding: 0.85rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ====================================================================
   TABLES & DATA CONTAINERS
   ==================================================================== */
.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.content-box-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-box-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.data-table th {
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #38bdf8;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-info { background: var(--info-light); color: #60a5fa; }
.badge-success { background: var(--success-light); color: #34d399; }

.mt-4 { margin-top: 1.5rem; }

/* ====================================================================
   SQL QUERY LAB & SCHEMA EXPLORER
   ==================================================================== */
.sql-lab-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.sql-editor-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.sql-presets-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.sql-presets-bar label {
    font-weight: 600;
    font-size: 0.84rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sql-presets-bar select {
    flex: 1;
}

.editor-wrapper textarea {
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: #38bdf8;
    line-height: 1.5;
    resize: vertical;
}

.sql-editor-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.query-stats-pill {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sql-result-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.result-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-header h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.sql-result-table-wrap {
    min-height: 140px;
    max-height: 350px;
    padding: 0.5rem;
}

.empty-state-text {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
    font-size: 0.88rem;
}

/* Schema Grid */
.schema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.schema-table-card {
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.schema-table-header {
    background: var(--bg-subtle);
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.schema-table-header strong {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e2e8f0;
}

.schema-cols-list {
    padding: 0.65rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.schema-col-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.col-pk { color: #fbbf24; font-weight: 700; }
.col-type { color: #64748b; font-size: 0.7rem; }

/* ====================================================================
   REVIEW 1 DOCUMENTATION TAB
   ==================================================================== */
.doc-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.doc-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-card h3 i {
    width: 20px;
    height: 20px;
    color: #818cf8;
}

.doc-tag {
    background: var(--primary-light);
    color: #818cf8;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.doc-header-block h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.doc-header-block .lead {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.team-member-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.team-member-card .avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.milestone-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.milestone-item .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--success-light);
    color: #34d399;
}

.milestone-item.planned .check-icon {
    background: var(--info-light);
    color: #60a5fa;
}

.milestone-item strong {
    font-size: 0.9rem;
    color: white;
}

.milestone-item p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* ER Visualizer */
.er-diagram-box {
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
}

.er-visual-container {
    position: relative;
    min-height: 440px;
    min-width: 800px;
}

.er-node {
    position: absolute;
    width: 175px;
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.er-node-header {
    background: #4f46e5;
    color: white;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.6rem;
    text-align: center;
}

.er-node-body {
    padding: 0.5rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #cbd5e1;
}

.er-node-body .pk { color: #fbbf24; font-weight: 700; }
.er-node-body .fk { color: #38bdf8; font-weight: 600; }

.norm-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.norm-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.norm-item h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    color: #818cf8;
    margin-bottom: 0.4rem;
}

.norm-item p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.viva-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.viva-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
}

.viva-q {
    font-weight: 700;
    color: white;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.viva-a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.viva-a strong {
    color: #34d399;
}

/* ====================================================================
   MODALS
   ==================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 1rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 75vh;
    overflow-y: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-group .req {
    color: var(--danger);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.modal-footer {
    padding: 1rem 1.35rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.claimed-item-banner {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font-size: 0.85rem;
}

/* ====================================================================
   TOAST NOTIFICATIONS
   ==================================================================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 1000;
}

.toast {
    background: #1e293b;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: var(--shadow-lg);
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-color: #10b981; }
.toast.error { border-color: #ef4444; }

/* ====================================================================
   RESPONSIVENESS
   ==================================================================== */
@media (max-width: 900px) {
    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
    .dash-columns { grid-template-columns: 1fr; }
    .quick-action-banner { flex-direction: column; align-items: flex-start; }
    .nav-team-badge { display: none; }
}
