/**
 * MAIN SYSTEM STYLES
 * Custom colors and layout adjustments matching the KPI Tracker UI.
 */

:root {
    /* Theme Colors from Reference Image */
    --primary-purple: #6c5ce7;
    --card-purple: linear-gradient(135deg, #8e44ad, #9b59b6);
    --card-teal: linear-gradient(135deg, #17a2b8, #20c997);
    --card-green: linear-gradient(135deg, #28a745, #2ecc71);
    --card-orange: linear-gradient(135deg, #fd7e14, #ff9f43);
    
    /* Layout Colors */
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --sidebar-text: #6c757d;
    --active-bg: #f0f4ff;
    --border-color: #eaeaea;
}

/* Base Body Styles */
body {
    background-color: var(--bg-light);
    color: #333;
    font-size: 0.95rem;
    overflow-x: hidden;
}

/* Layout Spacing */
.main-content {
    margin-left: 260px; /* Sidebar Width */
    padding: 2.5rem;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* Summary Card Styling (4 Colors) */
.stat-card {
    border: none;
    border-radius: 15px;
    color: var(--white);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.bg-purple { background: var(--card-purple); }
.bg-teal   { background: var(--card-teal); }
.bg-green  { background: var(--card-green); }
.bg-orange { background: var(--card-orange); }

.stat-card .card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-card .card-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card .card-icon {
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    font-size: 3rem;
    opacity: 0.2;
}

/* Data Table Styling */
.card-custom {
    background: var(--white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}

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

.card-custom .card-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #444;
}

/* Quick Action Buttons */
.btn-action {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #444;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #fff;
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.1);
    color: var(--primary-purple);
}

.btn-action i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    color: var(--primary-purple);
    border-radius: 10px;
    margin-right: 1rem;
}

/* Alerts and Badges */
.alert {
    border: none;
    border-radius: 12px;
}

.badge-soft-success {
    background-color: #e6fffa;
    color: #2ecc71;
}

.badge-soft-danger {
    background-color: #fff5f5;
    color: #e74c3c;
}