/* assets/css/style.css */

/* ========================================
   CSS Variables for Light and Dark Themes
   ======================================== */
:root {
    /* Light Theme Colors */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #8899f0;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    
    --bg-color: #f4f6f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --bg-hover: #e9ecef;
    
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #95a5a6;
    --text-white: #ffffff;
    
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --border-dark: #d0d0d0;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.18);
    
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --sidebar-active: rgba(102, 126, 234, 0.15);
    --navbar-bg: #ffffff;
    
    --success: #28a745;
    --success-light: #d4edda;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --info: #17a2b8;
    --info-light: #d1ecf1;
    
    --transition-speed: 0.3s;
    --transition-fast: 0.15s;
    --sidebar-width: 260px;
    --navbar-height: 70px;
    --footer-height: 60px;
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-color: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-hover: #1f2f4f;
    
    --text-primary: #eaeaea;
    --text-secondary: #b4b4b4;
    --text-muted: #8e8e8e;
    
    --border-color: #2d3748;
    --border-light: #3d4758;
    --border-dark: #1d2738;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.6);
    
    --sidebar-bg: #0f3460;
    --sidebar-hover: #16213e;
    --sidebar-active: rgba(102, 126, 234, 0.25);
    --navbar-bg: #16213e;
    
    --success-light: #1e4620;
    --warning-light: #4a3c0f;
    --danger-light: #4a1e1e;
    --info-light: #0e3a42;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

/* ========================================
   Layout Structure
   ======================================== */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background-color: var(--navbar-bg);
    color: var(--text-primary);
    height: var(--navbar-height);
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand i {
    font-size: 28px;
    color: var(--primary-color);
}

.navbar-brand h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color var(--transition-speed);
}

.hamburger-btn:hover {
    background-color: var(--bg-hover);
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navbar Right Side */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    color: var(--text-primary);
    position: relative;
}

.notification-btn:hover {
    background-color: var(--bg-hover);
}

.notification-btn i {
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 350px;
    max-height: 400px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed);
    z-index: 1001;
    overflow: hidden;
}

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

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

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.mark-all-read:hover {
    background-color: var(--bg-hover);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

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

.notification-item.unread {
    background-color: var(--info-light);
}

.no-notifications {
    padding: 30px 15px;
    text-align: center;
    color: var(--text-muted);
}

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

.notification-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background-color: var(--bg-hover);
    transform: rotate(15deg);
}

.theme-toggle i {
    font-size: 18px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.user-info:hover {
    background-color: var(--bg-hover);
    border-color: var(--primary-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

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

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.user-details strong {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-details small {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.dropdown-icon {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform var(--transition-speed);
}

.user-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed);
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    padding: 15px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

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

.dropdown-user-details {
    flex: 1;
}

.dropdown-user-details strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.dropdown-user-details small {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-speed);
}

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

.user-dropdown-menu a i {
    width: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.logout-link {
    color: var(--danger) !important;
}

.logout-link:hover {
    background-color: var(--danger-light) !important;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: white;
    height: calc(100vh - var(--navbar-height));
    position: fixed;
    left: 0;
    top: var(--navbar-height);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition-speed);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* Sidebar Header */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-logo i {
    font-size: 20px;
    color: var(--primary-light);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.sidebar-close:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    flex: 1;
}

.sidebar-menu > li {
    margin-bottom: 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all var(--transition-speed);
    position: relative;
}

.sidebar-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.sidebar-menu li a:hover {
    background-color: var(--sidebar-hover);
    color: white;
}

.sidebar-menu li a:hover::before {
    opacity: 1;
}

.sidebar-menu li a.active {
    background-color: var(--sidebar-active);
    color: white;
    border-left: 4px solid var(--primary-color);
}

.sidebar-menu li a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-menu li a span {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

/* Submenu Styles */
.has-submenu > a {
    cursor: pointer;
}

.submenu-icon {
    font-size: 12px;
    margin-left: auto;
    transition: transform var(--transition-speed);
}

.has-submenu.active > a .submenu-icon {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
    background-color: rgba(0,0,0,0.2);
}

.has-submenu.active .submenu {
    max-height: 500px;
}

.submenu li a {
    padding: 10px 20px 10px 60px;
    font-size: 13px;
}

.submenu li a:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    overflow: hidden;
}

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

.user-info-small {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-info-small strong {
    font-size: 13px;
    color: white;
    line-height: 1.3;
}

.user-info-small small {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    transition: margin-left var(--transition-speed);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.page-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.page-header p {
    color: var(--text-secondary);
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    overflow: hidden;
    transition: box-shadow var(--transition-speed);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: var(--bg-tertiary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

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

.stat-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 40px;
}

.stat-details {
    flex: 1;
}

.stat-details h3 {
    margin: 0;
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 700;
}

.stat-details p {
    margin: 5px 0 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
}

.table thead {
    background-color: var(--bg-tertiary);
}

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

.table th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.table td {
    color: var(--text-primary);
    font-size: 14px;
}

.table tbody tr {
    transition: background-color var(--transition-speed);
}

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

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: all var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    line-height: 1.5;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-success:hover:not(:disabled) {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-danger:hover:not(:disabled) {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-warning:hover:not(:disabled) {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-info:hover:not(:disabled) {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background-color: var(--success); color: white; }
.badge-danger { background-color: var(--danger); color: white; }
.badge-warning { background-color: var(--warning); color: #212529; }
.badge-info { background-color: var(--info); color: white; }
.badge-secondary { background-color: var(--secondary-color); color: white; }
.badge-primary { background-color: var(--primary-color); color: white; }

.badge-present { background-color: var(--success); color: white; }
.badge-absent { background-color: var(--danger); color: white; }
.badge-half-day { background-color: var(--warning); color: #212529; }
.badge-leave { background-color: var(--info); color: white; }
.badge-holiday { background-color: var(--secondary-color); color: white; }
.badge-late { background-color: #fd7e14; color: white; }
.badge-pending { background-color: var(--warning); color: #212529; }
.badge-approved { background-color: var(--success); color: white; }
.badge-rejected { background-color: var(--danger); color: white; }
.badge-processed { background-color: var(--info); color: white; }
.badge-paid { background-color: var(--success); color: white; }

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

.alert i {
    font-size: 18px;
}

.alert-success {
    background-color: var(--success-light);
    border-color: var(--success);
    color: #155724;
}

.alert-danger {
    background-color: var(--danger-light);
    border-color: var(--danger);
    color: #721c24;
}

.alert-warning {
    background-color: var(--warning-light);
    border-color: var(--warning);
    color: #856404;
}

.alert-info {
    background-color: var(--info-light);
    border-color: var(--info);
    color: #0c5460;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--sidebar-bg);
    color: rgba(255,255,255,0.85);
    padding: 20px 30px;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed), background-color var(--transition-speed);
    min-height: var(--footer-height);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left p,
.footer-center p,
.footer-right a {
    margin: 0;
    font-size: 13px;
}

.footer-right {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-right a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-speed);
}

.footer-right a:hover {
    color: white;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 25px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 25px; }

.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 25px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .navbar {
        padding: 0 15px;
    }

    .navbar-brand h3 {
        font-size: 18px;
    }

    .navbar-brand i {
        font-size: 22px;
    }

    .user-details {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .footer {
        margin-left: 0;
        padding: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notification-dropdown-menu {
        width: 320px;
        right: -100px;
    }
    
    .user-dropdown-menu {
        right: -20px;
    }
}

@media (max-width: 480px) {
    .navbar-brand h3 {
        font-size: 16px;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }

    .theme-toggle,
    .notification-btn {
        width: 36px;
        height: 36px;
    }

    .page-header h2 {
        font-size: 22px;
    }

    .notification-dropdown-menu {
        width: calc(100vw - 30px);
        right: -150px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .footer,
    .quick-actions,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }
}