/**
 * MAIN APPLICATION STYLES
 * Theme: Modern Light (KPI Tracker Style)
 * Colors: Purple, Teal, Green, Orange
 */

:root {
    /* Main Layout Colors */
    --sidebar-bg: #ffffff;
    --header-bg: #ffffff;
    --main-bg: #f4f7f6;
    --border-color: #eee;
    
    /* Brand Colors */
    --primary-blue: #4834d4;
    --active-blue-bg: #eef2ff;
    
    /* Dashboard Card Gradients (Exact match to Reference) */
    --card-purple: linear-gradient(135deg, #6a5af9 0%, #a29bfe 100%);
    --card-teal: linear-gradient(135deg, #48cae4 0%, #90e0ef 100%);
    --card-green: linear-gradient(135deg, #20bf6b 0%, #2bcbba 100%);
    --card-orange: linear-gradient(135deg, #eb3b5a 0%, #fa8231 100%);
}

/* Global Transitions & Reset */
* {
    transition: background-color 0.2s, border-color 0.2s;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2d3436;
    background-color: var(--main-bg);
    margin: 0;
}

/* --- Layout Components --- */

.main-content {
    padding: 30px;
}

/* --- Dashboard Summary Cards --- */

.stat-card {
    border: none;
    border-radius: 15px;
    padding: 25px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 130px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card .card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.stat-card .card-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
}

.stat-card .card-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    opacity: 0.2;
}

/* Specific Card Colors */
.bg-purple { background: var(--card-purple); }
.bg-teal   { background: var(--card-teal); }
.bg-green  { background: var(--card-green); }
.bg-orange { background: var(--card-orange); }

/* --- Content Sections (Tables & Cards) --- */

.content-card {
    background: #ffffff;
    border-radius: 15px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 25px;
}

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

.content-card .card-header h5 {
    margin: 0;
    font-weight: 700;
    color: #2d3436;
}

.content-card .card-body {
    padding: 25px;
}

/* Custom Table Styling */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #fff;
    border-top: none;
    border-bottom: 2px solid #f8f9fa;
    color: #b2bec3;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

/* Quick Action Buttons (Right Panel Style) */
.quick-action-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background-color: #f8f9fa;
    text-decoration: none;
    color: #2d3436;
    margin-bottom: 15px;
    transition: transform 0.2s, background-color 0.2s;
}

.quick-action-item:hover {
    background-color: #eef2ff;
    transform: translateX(5px);
    color: var(--primary-blue);
}

.quick-action-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.quick-action-text span {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.quick-action-text small {
    color: #636e72;
    font-size: 0.75rem;
}

/* Utility Classes */
.text-xs { font-size: 0.75rem; }
.fw-bold { font-weight: 700; }
.rounded-lg { border-radius: 12px !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }