/* FMP Analytics Dashboard - Custom Styles */

:root {
    --sidebar-width: 220px;
    --primary: #1a5276;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    font-size: 14px;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

#sidebar .nav-link {
    padding: 8px 12px;
    border-radius: 6px;
    margin: 1px 0;
    font-size: 13px;
}

#sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

#sidebar .nav-link.active {
    background: rgba(255,255,255,0.15);
    font-weight: 600;
}

#sidebar .nav-link i {
    width: 22px;
    text-align: center;
    margin-right: 6px;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

#content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
}

.card-header {
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    font-size: 13px;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
}

.table td {
    vertical-align: middle;
}

/* Progress bars in tables */
.progress {
    border-radius: 3px;
    background: #eee;
}

/* Print styles */
@media print {
    #sidebar, .navbar, .btn, form { display: none !important; }
    #content { margin-left: 0 !important; }
    .card { break-inside: avoid; }
}

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

/* KPI cards number animation */
.card-body [style*="font-size:2"] {
    transition: transform 0.3s;
}
.card:hover .card-body [style*="font-size:2"] {
    transform: scale(1.05);
}

/* Badge tweaks */
.badge { font-weight: 500; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
