/* ==========================================
   OFFICE MANAGEMENT SYSTEM - Custom CSS
   Clean, Modern, Premium Design
   ========================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --sidebar-width: 280px;
    --header-height: 70px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.login-logo p {
    color: var(--secondary);
    margin-top: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--light);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--white);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.4);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* App Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

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

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

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

.sidebar-logo span {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-menu {
    padding: 16px 0;
}

.menu-section {
    padding: 8px 24px;
    margin-top: 16px;
}

.menu-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

.menu-item {
    display: block;
    padding: 14px 24px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.menu-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-left-color: var(--primary-light);
}

.menu-item i {
    width: 24px;
    margin-right: 12px;
}

.menu-item-dropdown {
    cursor: pointer;
}

.submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
}

.submenu.show {
    display: block;
}

.submenu .menu-item {
    padding-left: 60px;
    font-size: 14px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu:hover {
    background: #e2e8f0;
}

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

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.user-role {
    font-size: 12px;
    color: var(--secondary);
}

/* Page Content */
.page-content {
    padding: 32px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.card-body {
    padding: 24px;
}

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

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.25) 100%);
    color: var(--primary);
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%);
    color: var(--success);
}

.stat-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
    color: var(--warning);
}

.stat-icon.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.25) 100%);
    color: var(--danger);
}

.stat-icon.info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.25) 100%);
    color: var(--info);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-content p {
    font-size: 14px;
    color: var(--secondary);
    margin-top: 4px;
}

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

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    background: var(--light);
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: var(--dark);
}

.table tr:hover td {
    background: rgba(99, 102, 241, 0.03);
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.badge-info {
    background: rgba(6, 182, 212, 0.15);
    color: #0891b2;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.15);
    color: var(--secondary);
}

/* Priority Badges */
.priority-low { background: #dbeafe; color: #1d4ed8; }
.priority-medium { background: #fef3c7; color: #d97706; }
.priority-high { background: #fed7aa; color: #ea580c; }
.priority-urgent { background: #fecaca; color: #dc2626; }

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #d97706;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 24px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.pagination a {
    background: var(--white);
    color: var(--dark);
    border: 1px solid #e2e8f0;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .active span {
    background: var(--primary);
    color: var(--white);
}

/* Base Form/Input Adjustments */
.form-group.row {
    margin-bottom: 24px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.col, .col-12, .col-sm-6, .col-md-4, .col-md-6, .col-lg-3, .col-lg-4, .col-lg-8 {
    padding-right: 12px;
    padding-left: 12px;
    width: 100%;
}

.col { flex: 1; }

@media (min-width: 576px) {
    .col-sm-6 { width: 50%; }
}

@media (min-width: 768px) {
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-8 { width: 66.666667%; }
}

/* Display & Flex Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mb-1 { margin-bottom: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-5 { margin-top: 32px !important; }
.mb-5 { margin-bottom: 32px !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.px-3 { padding-left: 16px !important; padding-right: 16px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }

/* Typography Utilities */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-muted { color: var(--secondary) !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header Toggler Button */
.sidebar-toggler {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    display: none;
}
@media (max-width: 1024px) {
    .sidebar-toggler {
        display: block;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col {
    padding: 0 12px;
    flex: 1;
}

.col-6 {
    width: 50%;
    padding: 0 12px;
}

.col-12 {
    width: 100%;
    padding: 0 12px;
}

/* Actions */
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn.view {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.action-btn.edit {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Check-in/out buttons */
.attendance-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.attendance-btn {
    flex: 1;
    min-width: 150px;
    max-width: 100%;
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.attendance-btn.checkin {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.attendance-btn.checkout {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--white);
}

.attendance-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.attendance-btn i {
    font-size: 32px;
}

.attendance-btn span {
    font-size: 14px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary);
}

.empty-state i {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--dark);
}

/* Checkbox styles for permissions */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Modal styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.show .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 8px 0;
    margin: 4px 0 0;
    font-size: 14px;
    color: #1e293b;
    text-align: left;
    list-style: none;
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-weight: 500;
    color: #1e293b;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

/* ==========================================
   MISSING BOOTSTRAP-COMPATIBLE UTILITIES
   ========================================== */

/* Container */
.container-fluid { width: 100%; padding-right: 12px; padding-left: 12px; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }

/* Additional Grid Columns */
.col-4 { width: 33.333333%; padding: 0 12px; }

@media (min-width: 576px) {
    .col-sm-5 { width: 41.666667%; }
    .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.333333%; }
    .d-sm-block { display: block !important; }
    .d-sm-none { display: none !important; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666667%; }
}

/* Gutter Utilities */
.row.g-3 { margin: 0 -8px; }
.row.g-3 > [class*="col"] { padding: 0 8px; margin-bottom: 16px; }
.row.g-4 { margin: 0 -12px; }
.row.g-4 > [class*="col"] { padding: 0 12px; margin-bottom: 24px; }

/* Border & Shadow Utilities */
.border-0 { border: none !important; }
.border { border: 1px solid #e2e8f0 !important; }
.border-top { border-top: 1px solid #e2e8f0 !important; }
.border-bottom { border-bottom: 1px solid #e2e8f0 !important; }
.shadow-sm { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08) !important; }
.rounded-pill { border-radius: 50px !important; }
.rounded-circle { border-radius: 50% !important; }
.overflow-hidden { overflow: hidden !important; }

/* Background Utilities */
.bg-white { background-color: var(--white) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-soft-primary { background-color: #eef2ff !important; }
.bg-soft-success { background-color: #f0fdf4 !important; }
.bg-soft-warning { background-color: #fffbeb !important; }
.bg-soft-danger { background-color: #fef2f2 !important; }

/* Text Utilities */
.text-white { color: #fff !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.text-dark { color: var(--dark) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }
.text-uppercase { text-transform: uppercase !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.small { font-size: 0.875em !important; }

/* Spacing Extras */
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 16px !important; }
.ms-1 { margin-left: 4px !important; }
.ms-2 { margin-left: 8px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mx-1 { margin-left: 4px !important; margin-right: 4px !important; }
.my-3 { margin-top: 16px !important; margin-bottom: 16px !important; }
.ps-4 { padding-left: 24px !important; }
.pe-4 { padding-right: 24px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-5 { padding-top: 32px !important; padding-bottom: 32px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }

/* Sizing */
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }

/* Position Utilities */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.end-0 { right: 0 !important; }

/* Display Extras */
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-grid { display: grid !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }

/* Table Utilities */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-hover tbody tr:hover td { background: rgba(99, 102, 241, 0.04); }
.table.align-middle td, .table.align-middle th { vertical-align: middle; }
.align-middle { vertical-align: middle !important; }
.table-bordered { border: 1px solid #e2e8f0; }
.table-bordered th, .table-bordered td { border: 1px solid #e2e8f0; }
.table-light th { background-color: var(--light); }

/* Button extras */
.btn-outline-primary { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-outline-secondary { background: transparent; border: 1px solid var(--secondary); color: var(--secondary); }
.btn-outline-secondary:hover { background: var(--secondary); color: var(--white); }
.btn-outline-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: var(--white); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-warning { background: var(--warning); color: #000; }
.btn-info { background: var(--info); color: var(--white); }
.btn-light { background: #fff; color: var(--dark); }
.btn-link { background: none; border: none; color: var(--primary); padding: 0; text-decoration: underline; }
.btn-link:hover { color: var(--primary-dark); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-close { background: none; border: none; font-size: 20px; cursor: pointer; padding: 8px; opacity: 0.5; }
.btn-close:hover { opacity: 1; }
.btn-close::after { content: '\00d7'; }

/* ==========================================
   DETAIL VIEW STYLES (leave/show, etc.)
   ========================================== */
.detail-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin: 0;
}

.detail-reason-box {
    margin-top: 8px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

/* ==========================================
   BREAK STATUS CARD (attendance/my)
   ========================================== */
.break-status-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    max-width: 400px;
}

.break-status-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    font-weight: 700;
}

.break-status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.break-status-row .label { color: #64748b; }
.break-status-row .value { font-weight: 700; }
.break-status-row .value.remaining { color: var(--success); }
.break-status-row .value.overtime { color: var(--danger); }

/* ==========================================
   PAGINATION WRAPPER
   ========================================== */
.pagination-wrapper {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Progress bar */
.progress { background-color: #e2e8f0; border-radius: 50px; overflow: hidden; }
.progress-bar { height: 100%; transition: width 0.3s ease; }
.progress-bar.bg-primary { background-color: var(--primary); }
.progress-bar.bg-danger { background-color: var(--danger); }
.progress-bar.bg-success { background-color: var(--success); }

/* Opacity */
.opacity-10 { opacity: 0.1 !important; }
.opacity-50 { opacity: 0.5 !important; }

/* Alert extras */
.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #0891b2;
}

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .header {
        padding: 0 16px;
        height: 60px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .card-header .actions, .card-header .btn {
        width: 100%;
        justify-content: flex-start;
    }
    
    .table th, .table td {
        white-space: nowrap;
    }

    /* Mobile grid fix */
    .col-4 { width: 33.333333%; }
    .row.g-3 > [class*="col"] { margin-bottom: 12px; }
    .row.g-4 > [class*="col"] { margin-bottom: 16px; }

    /* Break status card full width on mobile */
    .break-status-card { max-width: 100%; }
}

@media (max-width: 576px) {
    .col-sm-5, .col-sm-6, .col-sm-7 { width: 100%; }
    .d-sm-block { display: block !important; }
    .d-sm-none { display: none !important; }
}

/* Common Utilities */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-fill { flex: 1 1 auto !important; }
.text-muted { color: #64748b !important; }
.fw-semibold { font-weight: 600 !important; }
.small { font-size: 0.875em !important; }

@media (min-width: 576px) {
    .d-sm-flex { display: flex !important; }
    .d-sm-none { display: none !important; }
    .flex-sm-fill { flex: 1 1 auto !important; }
    .justify-content-sm-between { justify-content: space-between !important; }
    .align-items-sm-center { align-items: center !important; }
}

/* Pagination Styling */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    margin-top: 10px;
    gap: 6px;
    align-items: center;
}

.page-item {
    display: inline;
}

.page-link {
    position: relative;
    display: block;
    padding: 8px 14px;
    color: var(--secondary);
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
}

.page-link:hover {
    color: var(--primary);
    background-color: #f1f5f9;
    border-color: var(--primary-light);
}

.page-item.active .page-link {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

.page-item.disabled .page-link {
    color: #94a3b8;
    pointer-events: none;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.6;
}

.pagination-wrapper, .pagination-container {
    padding: 15px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
    width: 100%;
}

.pagination-container nav, .pagination-wrapper nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
