/* Evets DMS - High-Analytics Distribution Design */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #2563eb;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 0.75rem;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
}

/* KPI Components */
.kpi-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.kpi-card .kpi-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.kpi-card .kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.025em;
}

.kpi-card .kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.4rem 0;
}

.kpi-card .kpi-trend {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Table Design */
.table-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.875rem 1rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

table td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Badges */
.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.65rem;
    display: inline-flex;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-danger { background: #fee2e2; color: #b91c1c; }

/* Dashboard Specific Layout */
.app-layout { display: flex; min-height: 100vh; }
.main-container { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.main-content { padding: 2rem; flex: 1; overflow-y: auto; background-color: #f8fafc; }

/* Premium Row-Card Table */
.row-card-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.row-card-table thead th {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: #64748b;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-weight: 800;
}

.row-card-table tbody tr {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.row-card-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.row-card-table tbody td {
    padding: 1.25rem 1rem;
    border: none;
}

.row-card-table tbody td:first-child {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.row-card-table tbody td:last-child {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

/* UI Components */
.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.025rem;
    margin-bottom: 0.4rem;
}

.stat-value {
    font-weight: 900;
    font-size: 1.85rem;
    color: #1e293b;
}

.btn-premium {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-outline {
    background: white;
    border: 1px solid var(--border);
    color: #1e293b;
}

.btn-outline:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary-gradient:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}
