/* HRMS Portal - Main Stylesheet */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --border-color: #ddd;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dark Mode Variables (Default) */
body {
    --bg-primary: #1b1d29;
    --bg-secondary: #252a3d;
    --bg-tertiary: #2f3649;
    --text-primary: #ffffff;
    --text-secondary: #b8c1d9;
    --text-muted: #95a5a6;
    --border-color: rgba(255, 255, 255, 0.2);
    --card-bg: #252a3d;
    --header-bg: #1b1d29;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --sidebar-bg: #343a50;
}

/* Light Mode Variables */
body.light-mode {
    --bg-primary: #f5f6fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ecf0f1;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-muted: #7f8c8d;
    --border-color: #ddd;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --sidebar-bg: #343a50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: #ffffff;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Firefox Scrollbar */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    display: inline-block;
}

.user-role {
    font-size: 0.75rem;
    color: #95a5a6;
    font-weight: 500;
}

.sidebar-nav {
    padding: 10px 0;
    flex: 1;
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar Nav */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.7);
}

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.2);
}

.sidebar-menu-item {
    position: relative;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #b8c1d9;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.sidebar-link i:first-child {
    width: 20px;
    font-size: 1.1rem;
    margin-right: 12px;
}

.sidebar-link span {
    flex: 1;
    font-size: 0.95rem;
}

.sidebar-link i:last-child {
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.sidebar-link .submenu-arrow {
    opacity: 1 !important;
    transition: transform 0.3s;
}

.sidebar-link.submenu-open .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-link:hover i:last-child:not(.submenu-arrow) {
    opacity: 1;
}

.sidebar-link.active {
    background: rgba(52, 152, 219, 0.1);
    color: #ffffff;
    border-left-color: #3498db;
}

.sidebar-link.submenu-open {
    color: #ffffff;
}

/* Submenu Styles */
.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease;
}

.sidebar-submenu.open {
    max-height: 500px;
}

.submenu-link {
    display: block;
    padding: 10px 20px 10px 52px;
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.submenu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding-left: 56px;
}

.submenu-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

/* Menu Dividers */
.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 5px 0;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--sidebar-bg);
    flex-shrink: 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.2);
}

.logout-btn i {
    font-size: 1rem;
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Top Header Bar */
.top-header {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    height: 70px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 999;
    transition: all 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.breadcrumb i {
    font-size: 0.65rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.header-icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Removed - conflicts with inline badge */

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.clock-in-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

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

.user-profile-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.user-profile-btn:hover {
    color: var(--primary-color);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 200px;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown-header strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-dropdown-header span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.user-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.user-dropdown a i {
    width: 20px;
}

/* Main Content with Sidebar and Header */
.main-content {
    margin-left: 260px;
    margin-top: 70px;
    padding: 30px;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

.main-content .container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Old Navbar - Hidden when sidebar is active */
.navbar {
    display: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 0;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: var(--dark-text);
    padding: 12px 20px;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 30px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 5px;
}

/* Cards */
.card {
    background: rgba(37, 50, 75, 0.4);
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card-header {
    background: transparent;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 0;
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.stat-primary .stat-icon {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.stat-success .stat-icon {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.stat-warning .stat-icon {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.stat-info .stat-icon {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.stat-content h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.stat-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Welcome Header */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 24px;
}

.welcome-header h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 10px;
}

.current-time strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.current-time span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-light {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background: var(--bg-tertiary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(400px, 1fr);
    gap: 24px;
    margin-top: 24px;
    max-width: 100%;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Employee Profile Card */
.employee-profile-card {
    background: rgba(37, 50, 75, 0.4);
    border-radius: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.profile-image i {
    font-size: 100px;
    color: var(--text-muted);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.profile-info .role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.profile-info .employee-id {
    color: #3498db;
    font-size: 0.85rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.stat-box {
    text-align: center;
    padding: 25px 20px;
    border-right: 1px solid var(--border-color);
}

.stat-box:last-child {
    border-right: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.stat-value {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

/* Widgets Row */
.widgets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Widget Cards */
.widget-card {
    background: rgba(37, 50, 75, 0.4);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.widget-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.widget-header i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.widget-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.widget-stat {
    text-align: center;
}

.widget-stat h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1;
}

.widget-stat.danger h2 {
    color: var(--danger-color);
}

.widget-stat p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Week Timelogs */
.week-timelogs .widget-header .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.week-days {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.day-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-item.active {
    background: #ffffff;
    color: #2c3e50;
}

.time-info {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Shift Table */
.shift-table {
    margin-top: 0;
}

.shift-table thead th {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 18px 15px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.shift-table tbody td {
    padding: 18px 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.shift-table tbody tr:last-child td {
    border-bottom: none;
}

.shift-table tbody tr {
    transition: background 0.2s;
}

.shift-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Admin Dashboard Stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.admin-stats-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.admin-stat-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.admin-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-stat-header h3 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.admin-stat-header i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-stat-value {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.admin-stat-content {
    display: flex;
    gap: 30px;
}

.admin-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
}

.stat-number.primary {
    color: #3498db;
}

.stat-number.success {
    color: #2ecc71;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-stat-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.chart-header i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-expand {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 0.9rem;
}

.btn-expand:hover {
    color: var(--text-primary);
}

.chart-body {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lists */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.list-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.list-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.list-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.list-body {
    padding: 15px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.list-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-avatar i {
    font-size: 45px;
    color: var(--text-muted);
}

.list-item-info {
    flex: 1;
}

.list-item-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    font-weight: 500;
}

.list-item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.list-item-count {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.list-item-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.list-item-badge {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Late Attendance */
.late-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.late-item:last-child {
    border-bottom: none;
}

.late-item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.late-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.late-item-avatar i {
    font-size: 50px;
    color: var(--text-muted);
}

.late-item-info {
    flex: 1;
}

.late-item-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    font-weight: 500;
}

.late-item-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.late-item-count {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--bg-tertiary);
}

/* Page Actions */
.page-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

/* Employees Page */
.employees-filters {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 8px 10px;
    background: rgba(37, 50, 75, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: nowrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 28px 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    min-width: 90px;
    max-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    height: 32px;
}

.filter-search {
    max-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-search i {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.filter-search input {
    width: 100%;
    padding: 6px 10px 6px 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.8rem;
    height: 32px;
}

.filter-search input::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.btn-filter {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: rgba(255, 255, 255, 0.05);
}

.employees-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 0px;
    align-items: flex-end;
}

.employees-table-container {
    background: rgba(37, 50, 75, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    overflow-y: visible;
}

.employees-table-container::-webkit-scrollbar {
    height: 8px;
}

.employees-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.employees-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.employees-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 2400px;
}

.employees-table thead th {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 8px 10px;
    text-align: left;
    font-size: 0.7rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-transform: capitalize;
}

.employees-table tbody td {
    padding: 6px 10px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    white-space: nowrap;
}

.employees-table tbody tr {
    height: 40px;
}

.employees-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.employee-info-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s;
}

.employee-info-link:hover {
    opacity: 0.8;
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-avatar i {
    font-size: 32px;
    color: var(--text-muted);
}

.employee-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.employee-details strong {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.employee-details span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.role-badge {
    background: transparent;
    color: var(--text-primary);
    padding: 2px 0;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.status-badge.inactive {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.status-badge i {
    font-size: 0.45rem;
}

.btn-action {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-action:hover {
    background: var(--bg-tertiary);
}

/* View File Button */
.btn-view-file {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-view-file:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

/* Action Menu */
.action-menu {
    position: relative;
    display: inline-block;
}

.btn-action-menu {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-action-menu:hover {
    background: var(--bg-tertiary);
}

.action-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 4px;
    padding-top: 4px;
}

.action-menu:hover .action-dropdown,
.action-dropdown:hover {
    display: block;
}

.action-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.action-dropdown a:last-child {
    border-bottom: none;
}

.action-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-dropdown a i {
    width: 16px;
    font-size: 0.85rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(37, 50, 75, 0.4);
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    margin-top: -8px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pagination-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 24px 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    cursor: pointer;
}

.pagination-showing {
    margin-left: 16px;
    color: var(--text-primary);
}

.pagination-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 36px;
    text-align: center;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(37, 50, 75, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: -30px -30px 24px -30px;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(37, 50, 75, 0.4);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-code {
    background: var(--bg-tertiary);
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

.file-upload-label i {
    font-size: 2rem;
}

/* Dashboard Grid */
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
}

.dashboard-card {
background: rgba(37, 50, 75, 0.4);
border-radius: 8px;
box-shadow: none;
border: 1px solid rgba(255, 255, 255, 0.08);
overflow: hidden;
margin-bottom: 20px;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}

/* Quick Links */
.quick-links {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
}

.quick-link {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 20px;
background: var(--bg-tertiary);
border-radius: 8px;
text-decoration: none;
color: var(--text-primary);
border: 1px solid var(--border-color);
transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.quick-link i {
    font-size: 2rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.table tbody tr {
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: var(--bg-tertiary);
}

.table .actions {
    display: flex;
    gap: 5px;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* Buttons */
.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-weight: 500;
    height: 32px;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

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

.btn-success:hover {
    background: #229954;
}

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

.btn-danger:hover {
    background: #c0392b;
}

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

.btn-warning:hover {
    background: #e67e22;
}

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

.btn-info:hover {
    background: #2980b9;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.badge-primary {
    background: #5865F2;
    color: #ffffff;
    font-weight: 500;
}

.badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.badge-info {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Login Page - Modern Dark Style */
.login-page {
    background: url('../bgimage.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay removed for full background visibility */
/* .login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
} */

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.login-box {
    background: rgba(30, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.login-form {
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    color: #b8c1d9;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: #6b7280;
    font-size: 0.9rem;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(20, 25, 40, 0.95);
}

/* Password wrapper for eye icon */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #ffffff;
}

.toggle-password i {
    font-size: 1rem;
}

/* Form options (checkbox and forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #b8c1d9;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-label span {
    user-select: none;
}

.forgot-link {
    color: #60a5fa;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: #1e2332;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-login i {
    font-size: 0.9rem;
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.login-footer p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.signup-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.signup-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Alert styling for dark theme */
.login-box .alert {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.login-box .alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
}

.text-muted {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Profile */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.profile-card {
    background: rgba(37, 50, 75, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.profile-info,
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row,
.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child,
.info-item:last-child {
    border-bottom: none;
}

.info-row label,
.info-item label {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-row span,
.info-item span {
    color: var(--text-primary);
}

.info-item.full-width {
    flex-direction: column;
    gap: 5px;
}

/* Employee View */
.employee-view-grid {
    display: grid;
    gap: 20px;
}

/* Payroll */
.payroll-summary {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.payroll-summary h3 {
    color: var(--success-color);
    font-size: 1.5rem;
}

.payroll-slip {
    max-width: 800px;
    margin: 0 auto;
}

.slip-section {
    margin-bottom: 30px;
}

.slip-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.salary-table {
    width: 100%;
    margin-top: 15px;
}

.salary-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.salary-table .amount {
    text-align: right;
    font-weight: 500;
}

.salary-table .total-row td,
.salary-table .net-row td {
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.salary-table .net-row td {
    font-size: 1.2rem;
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-center {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-content p {
    margin: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .page-header,
    .form-actions,
    .footer {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Employee Profile Page */
.employee-profile {
    max-width: 1400px;
    margin: 0 auto;
}

/* Profile Header Grid */
.profile-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-header-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}


.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.profile-photo-circle {
    width: 100px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.profile-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-circle i {
    font-size: 70px;
    color: var(--text-muted);
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.active {
    background: #2ecc71;
}

.profile-meta-line {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.profile-last-login {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.profile-stats-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item-inline {
    text-align: center;
}

.stat-item-inline .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    display: block;
}

.stat-item-inline .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.profile-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Attendance Card */
.profile-attendance-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.attendance-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    text-align: center;
}

.attendance-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.attendance-placeholder i {
    font-size: 3rem;
    opacity: 0.3;
}

.attendance-placeholder p {
    font-size: 0.875rem;
    margin: 0;
}

/* Attendance Date Row */
.attendance-date-row {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
    margin-bottom: 2px;
    width: 100%;
}

.attendance-date {
    text-align: center;
    font-size: 0.6rem;
    color: #ffffff;
    opacity: 1;
    padding: 2px;
    font-weight: 500;
}

/* Monthly Attendance Grid - Horizontal Layout */
.monthly-attendance-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 4px;
    margin-bottom: 10px;
    width: 100%;
}

.attendance-day {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    min-height: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.attendance-day:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.attendance-day .day-number {
    font-size: 0.65rem;
    opacity: 0.5;
    line-height: 1;
}

.attendance-day .day-status {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1;
}

.attendance-day.present {
    background: #22c55e;
    color: #ffffff;
}

.attendance-day.late {
    background: #fb923c;
    color: #ffffff;
}

.attendance-day.half-day {
    background: #facc15;
    color: #1f2937;
}

.attendance-day.absent {
    background: #ef4444;
    color: #ffffff;
}

.attendance-day.on-leave {
    background: #ef4444;
    color: #ffffff;
}

.attendance-day.day-off {
    background: #475569;
    color: #94a3b8;
}

.attendance-day.no-record {
    background: #374151;
    color: #6b7280;
}

.attendance-day.future {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

/* Attendance Legend */
.attendance-legend {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.legend-box {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 3px;
}

.legend-box.present {
    background: rgba(34, 197, 94, 0.5);
}

.legend-box.late {
    background: rgba(251, 146, 60, 0.5);
}

.legend-box.half-day {
    background: rgba(250, 204, 21, 0.5);
}

.legend-box.absent {
    background: rgba(239, 68, 68, 0.5);
}

/* Yearly Attendance Container */
.yearly-attendance-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.month-attendance-card {
    background: rgba(30, 35, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.month-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    text-align: center;
}

.month-attendance-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.attendance-day-small {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.attendance-day-small:hover {
    transform: scale(1.15);
}

.attendance-day-small .day-number-small {
    font-size: 0.6rem;
    opacity: 1;
    color: #ffffff;
    font-weight: 500;
}

.attendance-day-small .day-status-small {
    font-size: 0.75rem;
    font-weight: bold;
}

.attendance-day-small.present {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.attendance-day-small.late {
    background: rgba(251, 146, 60, 0.2);
    border: 1px solid rgba(251, 146, 60, 0.5);
    color: #fb923c;
}

.attendance-day-small.half-day {
    background: rgba(250, 204, 21, 0.2);
    border: 1px solid rgba(250, 204, 21, 0.5);
    color: #facc15;
}

.attendance-day-small.absent {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.attendance-day-small.on-leave {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.attendance-day-small.day-off {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #64748b;
}

.attendance-day-small.no-record {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #64748b;
}

.attendance-day-small.future {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    background: rgba(30, 35, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding: 0;
    scrollbar-width: thin;
}

.profile-tabs::-webkit-scrollbar {
    height: 4px;
}

.profile-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.profile-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.tab-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
    color: #ffffff;
    background: rgba(52, 152, 219, 0.2);
    border-bottom: 3px solid var(--primary-color);
    font-weight: 500;
}

/* Tab Content */
.tab-content {
    display: none;
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.profile-left,
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info Card */
.info-card {
    background: transparent;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header-split .info-card-title {
    margin: 0;
    font-size: 0.95rem;
}

.card-header-split .info-card-title i {
    font-size: 0.75rem;
    margin-left: 4px;
    opacity: 0.6;
}

.reporting-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reporting-left,
.reporting-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.stats-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stats-left,
.stats-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex: 0 0 25%;
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    flex: 0 0 75%;
    text-align: left;
    word-break: break-word;
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Reporting Info */
.reporting-info {
    padding: 10px 0;
}

.manager-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.manager-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.manager-avatar i {
    font-size: 32px;
    color: var(--text-muted);
}

.manager-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.manager-details strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.manager-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* No Data Section */
.no-data-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.no-data-section i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 12px;
}

.no-data-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.no-data {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .profile-stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    /* Profile Header Grid - Stack on mobile */
    .profile-header-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .profile-header-card {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Profile Card Top Section */
    .profile-card-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 15px 15px;
    }
    
    /* Profile Photo Section */
    .profile-photo-circle {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 15px;
        flex-shrink: 0;
    }
    
    .profile-header-info {
        text-align: center;
        width: 100%;
        order: 2;
    }
    
    .profile-name {
        font-size: 1.25rem !important;
        line-height: 1.3;
        margin-bottom: 10px;
        font-weight: 600;
        display: block;
        text-align: center;
    }
    
    .status-indicator {
        display: inline-block;
        margin-left: 8px;
    }
    
    .profile-meta-line {
        font-size: 0.8rem !important;
        line-height: 1.5;
        margin: 8px 0;
        text-align: center;
        color: var(--text-muted);
    }
    
    .profile-last-login {
        font-size: 0.75rem !important;
        margin-top: 8px;
        text-align: center;
        color: var(--text-muted);
    }
    
    .profile-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-actions .btn {
        flex: 1;
        width: 100%;
    }
    
    .profile-photo-section {
        flex-direction: column;
        text-align: center;
    }
    
    /* Hide Profile Stats on mobile */
    .profile-stats-inline {
        display: none !important;
    }
    
    /* Profile Stats - 2 columns on mobile */
    .profile-stats {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .stat-box {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
        padding: 12px 10px;
    }
    
    .stat-box h3 {
        font-size: 1.5rem !important;
    }
    
    .stat-box p {
        font-size: 0.75rem !important;
    }
    
    /* Profile Tabs - Hide on mobile */
    .profile-tabs {
        display: none !important;
    }
    
    /* Info Rows - Stack labels and values */
    .info-row {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    
    .info-row:last-child {
        border-bottom: none !important;
    }
    
    .info-label {
        flex: none !important;
        text-align: left !important;
        font-size: 0.75rem !important;
        opacity: 0.7 !important;
        font-weight: 400 !important;
        margin-bottom: 2px !important;
    }
    
    .info-value {
        flex: none !important;
        text-align: left !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        word-wrap: break-word !important;
    }
    
    /* Reporting Section - Force vertical stacking */
    .reporting-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    .reporting-split {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .reporting-left,
    .reporting-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    .reporting-left[style],
    .reporting-right[style] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
    }
    
    .reporting-left:last-child,
    .reporting-right:last-child {
        border-bottom: none !important;
    }
    
    /* Reporting headers */
    .reporting-left h3,
    .reporting-right h3 {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
        font-weight: 600 !important;
    }
    
    /* Manager card in reporting section */
    .reporting-left > div {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }
    
    .team-member-card {
        min-width: 100% !important;
        max-width: 100% !important;
        flex-direction: row !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }
    
    .team-member-card:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Monthly Attendance Calendar - Reduce columns on mobile */
    .attendance-date-row,
    .monthly-attendance-grid {
        display: grid !important;
        grid-template-columns: repeat(10, 1fr) !important;
        gap: 4px !important;
    }
    
    .attendance-date,
    .attendance-cell {
        font-size: 0.7rem !important;
        padding: 8px 4px !important;
        min-width: 0 !important;
    }
    
    .attendance-date {
        font-size: 0.65rem !important;
        padding: 4px 2px !important;
    }
    
    .calendar-grid {
        gap: 4px !important;
    }
    
    .calendar-day {
        font-size: 0.7rem !important;
        padding: 6px 4px !important;
    }
    
    .day-number {
        font-size: 0.75rem !important;
    }
    
    .day-name {
        font-size: 0.6rem !important;
    }
    
    /* Attendance Table - Horizontal scroll */
    .attendance-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .attendance-table {
        min-width: 600px;
    }
    
    /* Leave Quota Table - Horizontal scroll */
    table {
        font-size: 0.8rem !important;
    }
    
    table th,
    table td {
        padding: 8px 6px !important;
        font-size: 0.75rem !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .top-header {
        left: 0;
        padding: 0 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }
    
    /* Clock display on far left on mobile */
    .header-clock-display {
        display: block !important;
        padding: 4px 6px;
        font-size: 0.85rem;
        order: -1;
        text-align: left;
        flex-shrink: 0;
    }
    
    .header-clock-display .clock-time {
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
    }
    
    .header-clock-display .clock-date {
        font-size: 0.6rem;
        opacity: 0.9;
        white-space: nowrap;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .header-right {
        gap: 6px;
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    
    /* Clock in button compact on mobile */
    .clock-in-button {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .clock-in-button span {
        display: inline !important;
    }
    
    /* Hide employee name in header on mobile */
    .header-right > div > span {
        display: none !important;
    }
    
    /* Hide specific header icon buttons on mobile (search, mail, settings) */
    .header-right .header-icon-btn[title="Search"],
    .header-right .header-icon-btn[title="Messages"],
    .header-right .header-icon-btn[title="Settings"] {
        display: none !important;
    }
    
    /* Keep notification icon visible and sized properly */
    .header-right .header-icon-btn {
        width: 38px;
        height: 38px;
        padding: 8px;
        flex-shrink: 0;
    }
    
    /* Hide user profile button on mobile */
    .header-right .user-menu {
        display: none !important;
    }
    
    /* Sidebar toggle in header right */
    .sidebar-toggle {
        position: static !important;
        display: flex !important;
        width: 38px;
        height: 38px;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.3rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0;
    }
    
    .sidebar-toggle:hover {
        background: rgba(59, 130, 246, 0.1);
        border-radius: 6px;
    }
    
    .breadcrumb {
        display: none;
    }
    
    .main-content.with-sidebar {
        margin-left: 0;
    }
    
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .welcome-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .widgets-row {
        grid-template-columns: 1fr;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .stat-box:last-child {
        border-bottom: none;
    }
    
    .dashboard-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   ATTENDANCE PAGE STYLES
   ======================================== */

.attendance-container {
    padding: 0;
    max-width: 100%;
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.attendance-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Attendance Top Bar - Combined Filters and Legend */
.attendance-top-bar {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 15px;
    padding: 8px 0px 8px 0px;
    background: rgba(20, 25, 40, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
    flex-wrap: wrap;
}

.attendance-filters-inline {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.attendance-filters-inline .filter-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.attendance-filters-inline .filter-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.attendance-filters-inline select {
    padding: 4px 6px;
    background: rgba(30, 35, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.72rem;
    min-width: 85px;
    max-width: 140px;
    height: 28px;
}

.attendance-filters-inline select:focus {
    outline: none;
    border-color: #5b6ee1;
}

.btn-mark-attendance {
    background: #5b6ee1;
    border: none;
    border-radius: 4px;
    padding: 7px 16px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-mark-attendance:hover {
    background: #4a5dd1;
    transform: translateY(-1px);
}

.attendance-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Attendance Legend Inline */
.attendance-legend-inline {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.legend-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(30, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: default;
    transition: all 0.3s ease;
    height: 28px;
    box-sizing: border-box;
}

.legend-badge:hover {
    background: rgba(30, 35, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.legend-badge i {
    font-size: 0.65rem;
}

/* Legend Badge Colors */
.legend-note { color: #f39c12; }
.legend-note i { color: #f39c12; }

.legend-holiday { color: #e74c3c; }
.legend-holiday i { color: #e74c3c; }

.legend-day-off { color: #e74c3c; }
.legend-day-off i { color: #e74c3c; }

.legend-present { color: #2ecc71; }
.legend-present i { color: #2ecc71; }

.legend-half-day { color: #e74c3c; }
.legend-half-day i { color: #e74c3c; }

.legend-late { color: #f39c12; }
.legend-late i { color: #f39c12; }

.legend-absent { color: #e74c3c; }
.legend-absent i { color: #e74c3c; }

.legend-on-leave { color: #e74c3c; }
.legend-on-leave i { color: #e74c3c; }

.attendance-table-wrapper {
    overflow-x: auto;
    background: transparent;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1400px;
}

.attendance-table thead {
    background: rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.attendance-table th {
    padding: 10px 6px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.attendance-table th.employee-col {
    text-align: left;
    padding-left: 12px;
    min-width: 220px;
    position: sticky;
    left: 0;
    background: rgba(255, 255, 255, 0.05);
    z-index: 11;
}

.attendance-table td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.attendance-table td.employee-cell {
    text-align: left;
    padding: 8px 12px;
    position: sticky;
    left: 0;
    background: var(--bg-secondary);
    z-index: 9;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-avatar i {
    font-size: 18px;
    color: var(--text-muted);
}

.employee-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.employee-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.employee-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.day-cell {
    cursor: pointer;
    transition: background 0.2s;
}

.day-cell:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    cursor: pointer;
}

.status-icon[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: fixed;
    bottom: auto;
    left: auto;
    transform: translateY(-8px);
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: normal;
    z-index: 10000;
    min-width: 200px;
    max-width: 400px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.2s ease;
    pointer-events: none;
    line-height: 1.4;
}

.status-icon[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    pointer-events: none;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Status Icon Colors with Font Awesome Icons */
.status-present { background: #2ecc71; color: #fff; }
.status-absent { background: transparent; color: #e74c3c; }
.status-leave { background: #e74c3c; color: #fff; }
.status-half { background: #e74c3c; color: #fff; }
.status-late { background: #f39c12; color: #fff; }
.status-holiday { background: #e74c3c; color: #fff; }
.status-note { background: #f39c12; color: #fff; }
.status-dayoff { background: #ef4444; color: #fff; }

.status-icon i {
    font-size: 0.7rem;
}

.total-cell {
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.late-minutes-cell {
    font-size: 0.75rem;
    line-height: 1.4;
}

.late-minutes {
    color: #e74c3c;
    font-weight: 600;
}

.half-day-count {
    color: #f39c12;
    font-weight: 600;
    margin-top: 2px;
}

/* Notification Popup Styles */
.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.notification-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-popup-header {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.notification-popup-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-popup-icon i {
    font-size: 1.5rem;
}

.notification-popup-content {
    flex: 1;
    min-width: 0;
}

.notification-popup-content h4 {
    margin: 0 0 6px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.notification-popup-message {
    margin: 0 0 8px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.notification-popup-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.notification-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.notification-popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-popup-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.notification-popup-actions {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.notification-popup-btn {
    flex: 1;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.notification-popup-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.reminder-popup .notification-popup-icon {
    background: rgba(245, 158, 11, 0.1);
}

.reminder-popup .notification-popup-icon i {
    color: #f59e0b;
    animation: bellRing 1s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

/* Stacking multiple notifications */
.notification-popup:nth-last-child(2) {
    bottom: 240px;
}

.notification-popup:nth-last-child(3) {
    bottom: 460px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-popup {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Notification Dropdown Menu */
.notification-menu {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-dropdown-header strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.notification-dropdown-header span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notification-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.notification-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.notification-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.notification-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: var(--bg-tertiary);
}

.notification-item.unread {
    background: rgba(52, 152, 219, 0.05);
    border-left-color: var(--primary-color);
}

.notification-item-header {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.notification-item-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-item-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

.notification-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.notification-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notification-dropdown-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.notification-dropdown-footer a:hover {
    color: #2980b9;
}

/* Notification Bell Badge (for header icon) */
.header-icon-btn .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Notification Content Badge (inline with text) */
.notification-popup-content .notification-badge,
.notification-item-content .notification-badge {
    position: relative;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.header-icon-btn {
    position: relative;
}

/* ============================================
   RESPONSIVE DESIGN - DASHBOARD
   ============================================ */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
    .attendance-table {
        min-width: 1200px;
        font-size: 0.7rem;
    }
    
    .attendance-table th,
    .attendance-table td {
        padding: 6px 3px;
        font-size: 0.7rem;
    }
    
    .attendance-table th.employee-col {
        min-width: 180px;
    }
    
    .status-badge {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
}

/* Mobile landscape and below (max-width: 768px) */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        padding-top: 20px;
    }
    
    .top-header {
        padding: 12px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        display: none !important; /* Hide "Private Dashboard" text on mobile */
    }
    
    .page-title {
        display: none !important;
    }
    
    .breadcrumb {
        display: none !important;
    }
    
    .header-right {
        flex-shrink: 0;
        gap: 6px;
        margin-left: auto; /* Push to right */
    }
    
    .header-right > span {
        display: none; /* Hide employee name on mobile */
    }
    
    /* Card header - center and wrap content */
    .card-header {
        text-align: center;
    }
    
    .card-header > div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .card-header h2 {
        text-align: center !important;
        width: 100%;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .card-header h2 i {
        margin-right: 8px;
    }
    
    /* Legends - wrap properly on mobile */
    .card-header > div > div[style*="display: flex; gap: 10px"] {
        order: 2;
    }
    
    .card-header > div > div[style*="display: flex; gap: 8px"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        max-width: 100%;
    }
    
    .card-header span[style*="display: flex"] {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
    
    /* Center the employee count badge */
    .card-header > div > div > span[style*="background: #ef4444"] {
        display: block !important;
        text-align: center;
        margin: 8px auto !important;
    }
    
    /* Late/On Time sections - Single column */
    .container > div[style*="grid-template-columns: 1fr 1fr"],
    .container > div[style*="display: grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .late-on-time-container,
    .dashboard-late-ontime {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .late-employees-section,
    .on-time-section {
        width: 100%;
    }
    
    /* Dashboard cards */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Attendance table */
    .attendance-table-wrapper {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .attendance-table {
        min-width: 1000px;
        font-size: 0.65rem;
    }
    
    .attendance-table th,
    .attendance-table td {
        padding: 5px 2px;
        font-size: 0.65rem;
    }
    
    .attendance-table th.employee-col {
        min-width: 150px;
        font-size: 0.7rem;
    }
    
    .employee-info h4 {
        font-size: 0.8rem;
    }
    
    .employee-info p {
        font-size: 0.65rem;
    }
    
    .employee-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
    
    /* Late/On Time sections */
    .late-employees-section,
    .on-time-section {
        margin-top: 20px;
    }
    
    .late-employee-card,
    .on-time-card {
        padding: 12px;
    }
    
    .late-employee-info h4,
    .on-time-info h4 {
        font-size: 0.85rem;
    }
    
    .late-employee-info p,
    .on-time-info p {
        font-size: 0.75rem;
    }
    
    .late-time,
    .early-time {
        font-size: 0.75rem;
    }
}

/* Mobile portrait (max-width: 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
        padding-top: 15px;
    }
    
    .top-header {
        padding: 10px 12px;
        flex-wrap: nowrap;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        display: none !important; /* Hide "Private Dashboard" completely */
    }
    
    .page-title {
        display: none !important;
    }
    
    .breadcrumb {
        display: none !important;
    }
    
    /* Force reporting section to stack on small screens */
    .reporting-section {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .reporting-split {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .reporting-left,
    .reporting-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        float: none !important;
        display: block !important;
    }
    
    .reporting-left[style],
    .reporting-right[style] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Attendance Calendar - Even fewer columns on small screens */
    .attendance-date-row,
    .monthly-attendance-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 3px !important;
    }
    
    .attendance-date,
    .attendance-cell {
        font-size: 0.65rem !important;
        padding: 6px 2px !important;
    }
    
    .attendance-date {
        font-size: 0.6rem !important;
        padding: 3px 1px !important;
    }
    
    /* Header adjustments */
    .header-right {
        gap: 4px;
        flex-shrink: 0;
        margin-left: auto; /* Push to right */
    }
    
    .header-right > span {
        display: none !important; /* Hide employee name */
    }
    
    /* Card header - center and wrap content */
    .card-header {
        text-align: center;
    }
    
    .card-header > div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .card-header h2 {
        text-align: center !important;
        width: 100%;
        font-size: 0.9rem;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .card-header h2 i {
        margin-right: 6px;
        font-size: 0.9rem;
    }
    
    /* Legends - wrap properly on mobile */
    .card-header > div > div[style*="display: flex; gap: 10px"] {
        order: 2;
    }
    
    .card-header > div > div[style*="display: flex; gap: 8px"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
        max-width: 100%;
    }
    
    .card-header span[style*="display: flex"] {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
    }
    
    .card-header span[style*="display: flex"] i {
        font-size: 0.65rem !important;
    }
    
    /* Center the employee count badge */
    .card-header > div > div > span[style*="background: #ef4444"],
    .card-header span[style*="background: #ef4444"] {
        display: block !important;
        text-align: center;
        margin: 6px auto !important;
        font-size: 0.8rem !important;
    }
    
    .header-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        padding: 6px;
    }
    
    .user-profile-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    /* Notification badge on bell */
    .notification-badge {
        font-size: 0.65rem;
        min-width: 16px;
        height: 16px;
        padding: 2px 4px;
    }
    
    /* Attendance table */
    .attendance-table {
        min-width: 800px;
        font-size: 0.6rem;
    }
    
    .attendance-table th,
    .attendance-table td {
        padding: 4px 2px;
        font-size: 0.6rem;
    }
    
    .attendance-table th.employee-col {
        min-width: 120px;
        font-size: 0.65rem;
    }
    
    .employee-info h4 {
        font-size: 0.75rem;
    }
    
    .employee-info p {
        font-size: 0.6rem;
    }
    
    .employee-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    /* Status badges */
    .status-badge {
        font-size: 0.6rem;
        padding: 1px 3px;
        min-width: 16px;
        height: 16px;
    }
    
    
    /* Override inline grid styles - Force single column */
    .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Late/On Time cards */
    .late-employees-grid,
    .on-time-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .late-employee-card,
    .on-time-card {
        padding: 10px;
    }
    
    .late-employee-avatar,
    .on-time-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .late-employee-info h4,
    .on-time-info h4 {
        font-size: 0.8rem;
    }
    
    .late-employee-info p,
    .on-time-info p {
        font-size: 0.7rem;
    }
    
    .late-time,
    .early-time {
        font-size: 0.7rem;
    }
    
    /* Dashboard bottom sections - Single column */
    .dashboard-bottom-cards,
    .dashboard-stats-grid,
    .dashboard-bottom-row,
    .stats-grid,
    .bottom-stats {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Individual stat cards */
    .stat-card,
    .dashboard-card {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 15px;
        font-size: 0.75rem;
    }
    
    /* Sidebar toggle on mobile */
    .sidebar {
        width: 250px;
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
}

/* Extra small devices (max-width: 375px) */
@media (max-width: 375px) {
    .page-title {
        font-size: 0.85rem;
    }
    
    .header-icon-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .attendance-table {
        min-width: 700px;
    }
    
    .employee-avatar,
    .late-employee-avatar,
    .on-time-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Large screens (min-width: 1440px) */
@media (min-width: 1440px) {
    .attendance-table {
        min-width: 1600px;
    }
    
    .attendance-table th,
    .attendance-table td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .attendance-table th.employee-col {
        min-width: 250px;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .header-right,
    .footer,
    .notification-popup {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .attendance-table-wrapper {
        overflow: visible;
        border: 1px solid #000;
    }
    
    .attendance-table {
        min-width: 100%;
    }
    
    .status-badge {
        border: 1px solid #000;
    }
}
