/* FactGraph Admin -- Custom Theme */

/* -- Reset & Base -- */
body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    -webkit-font-smoothing: antialiased;
}

#react-entry-point,
#_dash-app-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* -- Page Header -- */
.page-header {
    background: #fff;
    padding: 20px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-body {
    padding: 24px 32px;
    animation: fadeIn 0.2s ease;
}

/* -- Cards -- */
.metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.metric-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.template-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.template-card:hover {
    border-color: #818cf8;
    box-shadow: 0 4px 12px rgba(99,102,241,0.12);
    transform: translateY(-2px);
}

.task-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 3px solid #f59e0b;
    transition: all 0.15s ease;
}
.task-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* -- Tables -- */
.data-table-inner tr:hover td {
    background: #f8fafc;
}

/* -- Buttons -- */
.quick-action-btn {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* -- Tabs -- */
.nav-tabs .nav-link {
    border: none !important;
    color: #64748b !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
}
.nav-tabs .nav-link.active {
    color: #4f46e5 !important;
    border-bottom-color: #4f46e5 !important;
    background: transparent !important;
    font-weight: 600 !important;
}

/* -- Scrollbar -- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* -- Modal -- */
.modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}
.modal-header { border-bottom: 1px solid #e2e8f0 !important; }

/* -- Animation -- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -- Tenant selector dark theme -- */
.sidebar-footer .form-select {
    background-color: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.sidebar-footer .form-select option {
    background-color: #1e293b;
    color: #e2e8f0;
}
