/* Enterprise Dashboard CSS - Post-Login Styling */
/* Matches the professional enterprise dashboard design */

/* Global Typography - Enterprise Style */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.5;
    color: #1e293b !important;
    background-color: #f8fafc !important;
}

/* Page Container - Clean spacing */
.container-fluid {
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    padding: 24px;
    background-color: #f8fafc;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
}

/* Dashboard Header Styling */
.dashboard-header h1, 
.dashboard-header h2, 
.dashboard-header h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 0 !important;
}

.dashboard-header h1 {
    font-size: 20px !important;
}

.dashboard-header h3 {
    font-size: 18px !important;
}

/* Badge Styling - Enterprise Look */
.badge {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.025em;
}

.badge.bg-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0;
}

.badge.bg-primary {
    background-color: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #93c5fd;
}

/* Button Styling - Enterprise */
.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    font-size: 13px !important;
    border: none !important;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-lg {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Card Styling - Enterprise Dashboard */
.card {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    transition: all 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.card-header {
    background: white !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 20px 24px 16px 24px !important;
}

.card-body {
    padding: 24px !important;
}

.card-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 0 !important;
}

/* Metric Cards - Dashboard Stats */
.metric-card .card-body {
    padding: 18px !important;
}

.metric-card h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    margin-bottom: 4px !important;
}

.metric-card .text-muted {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
}

.metric-card .trend-indicator {
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* Alert Items - Clean Enterprise Style */
.alert-item {
    padding: 14px 18px !important;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.alert-item:hover {
    background-color: #f9fafb !important;
}

.alert-item h6 {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
}

.alert-item .text-muted {
    font-size: 12px !important;
    color: #6b7280 !important;
    line-height: 1.4;
}

.alert-item small {
    font-size: 11px !important;
    color: #9ca3af !important;
}

/* Time Range Buttons */
.btn-group .btn {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border: 1px solid #d1d5db !important;
    background: white !important;
    color: #6b7280 !important;
}

.btn-group .btn.active,
.btn-group .btn:checked + .btn {
    background-color: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

h1 { font-size: 22px !important; }
h2 { font-size: 18px !important; }
h3 { font-size: 16px !important; }
h4 { font-size: 15px !important; }
h5 { font-size: 13px !important; }
h6 { font-size: 12px !important; }

/* Text Colors - Enterprise Theme */
.text-muted {
    color: #6b7280 !important;
}

.text-primary {
    color: #3b82f6 !important;
}

.text-success {
    color: #059669 !important;
}

.text-warning {
    color: #d97706 !important;
}

.text-danger {
    color: #dc2626 !important;
}

/* Small Text */
small, .small {
    font-size: 11px !important;
    font-weight: 400 !important;
}

/* Icon Styling */
i[data-feather] {
    stroke-width: 2 !important;
}

/* Legend Styling */
.legend-item {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
}

/* Row Spacing */
.row.g-4 > * {
    padding: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Professional Spacing */
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }

/* Professional Clean Look */
.bg-white {
    background-color: #ffffff !important;
}

.border-0 {
    border: none !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Ensure consistent enterprise look across all elements */
* {
    box-sizing: border-box;
}

/* Sidebar Active State Styling */
.sidebar .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    font-weight: 600 !important;
}