/* HRMS Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #2af598 0%, #009efd 100%);
    --accent-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --dark-bg: #1a1a2e;
    --sidebar-bg: #16213e;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --text-main: #2d3436;
    --text-muted: #636e72;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Sidebar Overhaul */
.sidebar {
    height: 100vh;
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar-bg);
    color: white;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    /* Enable vertical scrolling */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Scrollbar Styling for Webkit */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.sidebar-header {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 25px;
    margin: 4px 15px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
    transform: translateX(5px);
}

.sidebar.active {
    margin-left: -280px;
}

/* Content Area */
.content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content.active {
    margin-left: 0;
    width: 100%;
}

/* Navbar Premium */
.top-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--card-shadow);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Dashboard Metrics */
.card-metric {
    position: relative;
    overflow: hidden;
    color: white;
    border: none;
}

.card-metric::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.bg-primary-metric {
    background: var(--primary-gradient);
}

.bg-success-metric {
    background: var(--secondary-gradient);
}

.bg-warning-metric {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-info-metric {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Table Styling */
.table {
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #edf2f7;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1.2rem;
}

.table td {
    padding: 1.2rem;
    vertical-align: middle;
}

/* Custom Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--primary-gradient);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .sidebar {
        left: -280px;
    }

    .sidebar.active {
        left: 0;
        margin-left: 0;
    }

    .content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Landing Page Specifics */
.hero-gradient {
    background: var(--primary-gradient);
    padding: 150px 0 100px;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem;
    text-align: center;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

/* Pagination Styling */
.pagination {
    margin-top: 2rem;
    gap: 10px;
}

.pagination .page-link {
    border: none;
    border-radius: 10px !important;
    padding: 10px 18px;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.pagination .page-link:hover {
    background: #eef2f7;
    transform: translateY(-2px);
}