/* 
 * Premium SaaS HRMS Design System
 * STRICT: Clean White + Slate Gray + Indigo Accent
 */

:root {
    /* Colors */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --background: #FFFFFF;
    --card-bg: #F8FAFC;
    --border: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    --h1-size: 24px;
    --h2-size: 20px;
    --h3-size: 16px;
    --body-size: 14px;
    
    /* Spacing & Layout */
    --radius: 12px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --navbar-height: 64px;
    --input-size: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-family);
    font-size: var(--body-size);
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: var(--h1-size); font-weight: 700; }
h2 { font-size: var(--h2-size); font-weight: 600; }
h3 { font-size: var(--h3-size); font-weight: 600; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button, input, select, textarea {
    font-family: var(--font-family);
    font-size: var(--input-size);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

/* Layout Classes */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-bg);
    border-right: 1px solid var(--border);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Main Content */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    overflow-x: hidden;
}

.navbar {
    height: var(--navbar-height);
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.content-area {
    padding: 24px;
    flex: 1;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Buttons */
.btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}
