:root {
    --primary-color: #4f46e5; /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --secondary-color: #10b981; /* Emerald 500 */
    --bg-color: #f3f4f6; /* Gray 100 */
    --card-bg: #ffffff;
    --text-color: #1f2937; /* Gray 800 */
    --text-muted: #6b7280; /* Gray 500 */
    --border-color: #e5e7eb; /* Gray 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* Layout Containers */
.container-fluid {
    padding: 0 2rem;
}

.main-content {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.glass-card, .card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.glass-card:hover {
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: #eef2ff; /* Indigo 50 */
}

/* Buttons */
.btn, .glow-btn, .btn-update, .print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary, .glow-btn, .btn-update, .print-button {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover, .glow-btn:hover, .btn-update:hover, .print-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.logout-link {
    background-color: #fee2e2; /* Red 100 */
    color: #ef4444 !important; /* Red 500 */
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.logout-link:hover {
    background-color: #fecaca; /* Red 200 */
    color: #dc2626 !important; /* Red 600 */
}

/* Forms */
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    color: var(--text-color);
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label, label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-color);
    vertical-align: top;
    border-color: var(--border-color);
}

.table > :not(caption) > * > * {
    padding: 1rem 1rem;
    background-color: transparent;
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--card-bg);
}

.table > thead {
    vertical-align: bottom;
    background-color: #f9fafb; /* Gray 50 */
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.table-hover > tbody > tr:hover > * {
    background-color: #f9fafb; /* Gray 50 */
    box-shadow: inset 0 0 0 9999px #f9fafb;
}

/* Dashboard Links */
.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-link {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-height: 160px;
}

.dashboard-link i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.dashboard-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dashboard-link:hover i {
    transform: scale(1.1);
}

/* Table Status Colors */
.table .sunday,
.table .sunday > * {
    background-color: #fee2e2 !important; /* Red 100 */
    color: #b91c1c !important; /* Red 700 */
    box-shadow: none !important;
}

.table .work-from-home-row {
    background-color: #ecfdf5 !important; /* Emerald 50 */
    color: #047857;
}

.bar-container {
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 1.5rem;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Login Page Specific */
.login-body {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
}