/* CSS Variables & Reset */
:root {
    /* Primary Colors - Refined Blue */
    --primary-color: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    /* Blue 600 */
    --primary-active: #1d4ed8;
    /* Blue 700 */
    --primary-light: #eff6ff;
    /* Blue 50 */

    /* Neutral Scale - Slate */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --bg-surface: #ffffff;
    /* White */
    --bg-sidebar: #0f172a;
    /* Slate 900 */
    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Text Colors */
    --text-primary: #1e293b;
    /* Slate 800 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --text-sidebar: #cbd5e1;
    /* Slate 300 */
    --text-sidebar-active: #ffffff;

    /* Status Colors */
    --success-bg: #dcfce7;
    --success-text: #166534;
    --warning-bg: #fef9c3;
    --warning-text: #854d0e;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --info-bg: #dbeafe;
    --info-text: #1e40af;

    /* Spacing & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Table Action Buttons */
.btn-icon {
    background: transparent;
    border: none;
    outline: none;
    /* Remove focus outline */
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--primary-color);
    /* Default Blue for Edit */
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-icon.delete {
    color: #ef4444;
    /* Explicitly Red */
}

.btn-icon i {
    font-size: 1.4rem;
}

.btn-icon:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    transform: scale(1.1);
}

.btn-icon.delete:hover {
    background-color: #fee2e2;
    color: #b91c1c;
}