/* HRMS Enterprise Design System */
:root {
    /* Brand Colors */
    --primary: #27668f;
    --bs-primary: #27668f;
    /* Logo Blue */
    --primary-hover: #1e4f6f;
    --bs-primary-rgb: 39, 102, 143;
    /* Darker Blue */
    --primary-light: #eef7fc;
    /* Light Blue BG */

    /* Neutrals */
    --bg-body: #f1f5f9;
    /* Slate 100 - slightly darker than surface for contrast */
    --bg-surface: #ffffff;
    --bg-sidebar: #ffffff;

    --text-main: #334155;
    /* Slate 700 */
    --text-heading: #1e293b;
    /* Slate 800 - darker for headings */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Layout */
    --header-height: 70px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* --- Layout Structure --- */
.wrapper-vertical {
    background-color: var(--bg-body);
}

/* Navigation Links */
.nav-link {
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-size: 0.925rem;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-link i {
    color: inherit;
    transition: color 0.2s;
}

/* Header */
.main-header {
    height: var(--header-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.page-content {
    padding: 1.5rem;
}

/* --- Components --- */

/* Cards */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table-responsive {
    border-radius: var(--radius);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    width: 100%;
}

.table thead th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Avatars */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Utilities */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}


/* Dropdown Active State Override */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}