/* 
 * MAIN STYLESHEET - SME-ERP BRICK MANUFACTURING
 * Designed to match the "KPI Tracker" Reference UI exactly.
 * No external dependencies. Using local assets only.
 */

:root {
    /* Reference Image Color Palette */
    --primary-purple: #4e44e7;
    --primary-teal: #46c1de;
    --primary-green: #00d084;
    --primary-orange: #ff7e01;
    
    /* Neutral Colors */
    --bg-light: #fcfcfe;
    --sidebar-white: #ffffff;
    --text-dark: #333333;
    --text-muted: #888888;
    --border-color: #eef0f7;
    
    /* Layout Variables */
    --sidebar-width: 260px;
    --header-height: 70px;
}

/* 1. Global Reset & Typography */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* 2. Layout Structure */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
}

/* 3. Dashboard Summary Cards (Exact Match to Reference) */
.stat-card {
    border: none;
    border-radius: 15px;
    padding: 25px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.stat-card .label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.stat-card .icon-bg {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 40px;
    opacity: 0.2;
}

/* Card Specific Gradients */
.bg-purple { background: linear-gradient(135deg, #6a5af9, #4e44e7); }
.bg-teal { background: linear-gradient(135deg, #5ecde6, #46c1de); }
.bg-green { background: linear-gradient(135deg, #28e099, #00d084); }
.bg-orange { background: linear-gradient(135deg, #ff9b44, #ff7e01); }

/* 4. Content Sections (White Boxes) */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* 5. Tables Styling */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: transparent;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 10px;
}

.table tbody td {
    padding: 15px 10px;
    vertical-align: middle;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

/* 6. Form Elements */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(78, 68, 231, 0.1);
}

/* 7. Buttons */
.btn-primary {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #3f36c5;
    transform: translateY(-1px);
}

/* 8. Quick Actions List (Right Side Panel Style) */
.quick-action-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: background 0.2s;
    background: #fcfcfe;
}

.quick-action-item:hover {
    background: #f1f0ff;
}

.action-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}