/* ==========================================================================
   TechAge Innovations - The Rock Attendance System
   Comprehensive Stylesheet
   Color Scheme: Navy Blue (#0a2540), Orange (#ff6b35), White (#ffffff)
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES - TechAge Innovations Branding
   ========================================================================== */
:root {
    /* Primary Colors - TechAge Innovations */
    --primary-navy: #0a2540;
    --primary-navy-dark: #061a30;
    --primary-navy-light: #1a3a5c;
    
    /* Accent Colors */
    --accent-orange: #ff6b35;
    --accent-orange-dark: #e55a2b;
    --accent-orange-light: #ff8c5a;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --black: #212529;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-width-tablet: 240px;
    --header-height: 60px;
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --border-radius-lg: 15px;
    --box-shadow: 0 4px 15px rgba(10, 37, 64, 0.1);
    --box-shadow-lg: 0 8px 30px rgba(10, 37, 64, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--off-white);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-navy);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-orange-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.container-sm { max-width: 540px; }
.container-md { max-width: 720px; }
.container-lg { max-width: 960px; }
.container-xl { max-width: 1140px; }
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    overflow-x: hidden;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    max-width: 100%;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
.col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    padding: 0 15px;
    position: relative;
}

/* Flexbox utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-grid { display: grid !important; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }

/* ==========================================================================
   SIDEBAR - TechAge Innovations Branding
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--primary-navy-dark);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 3px;
}

.sidebar-brand {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-brand h4 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-brand h4 i {
    color: var(--accent-orange);
    font-size: 1.6rem;
}

.sidebar-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 14px 20px;
    margin: 4px 12px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: var(--accent-orange);
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
    opacity: 0;
}

.sidebar-nav .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    /* padding-left: 3px !important; */
}

.sidebar-nav .nav-link:hover::before {
    width: 2px;
    height: 50% !important;
    opacity: 1;
}

.sidebar-nav .nav-link.active {
    color: var(--white);
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.sidebar-nav .nav-link.active::before {
    display: none;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: inherit;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-footer .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
}

.sidebar-footer .nav-link:hover {
    color: var(--white);
    background: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

.page-header {
    background: var(--white);
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.page-content {
    padding: 30px;
}

/* ==========================================================================
   CARDS - TechAge Innovations Style
   ========================================================================== */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    max-width: 100%;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: var(--primary-navy);
    color: var(--white);
    padding: 18px 25px;
    border: none;
    border-radius: 0;
}

.card-header h5, .card-header h4, .card-header h3 {
    color: var(--white);
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

.card-footer {
    background: var(--off-white);
    padding: 15px 25px;
    border-top: 1px solid var(--light-gray);
}

/* Stats Cards */
.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-orange);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stat-card .stat-icon.navy {
    background: rgba(10, 37, 64, 0.1);
    color: var(--primary-navy);
}

.stat-card .stat-icon.orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
}

.stat-card .stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card .stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   BUTTONS - TechAge Innovations Style
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-navy-light) 0%, var(--primary-navy) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-orange, .btn-accent {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-orange:hover, .btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-orange-light) 0%, var(--accent-orange) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--success) 100%);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--white);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, var(--danger) 100%);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: var(--black);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, var(--warning) 100%);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
    color: var(--white);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, var(--info) 100%);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline-primary:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.btn-outline-orange {
    background: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline-orange:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-light {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.btn-light:hover {
    background: var(--medium-gray);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 1rem;
}

/* ==========================================================================
   FORMS & INPUTS - TechAge Innovations Style
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    background: var(--white);
    color: var(--dark-gray);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-control::placeholder {
    color: var(--medium-gray);
}

.form-control:disabled, .form-control[readonly] {
    background: var(--light-gray);
    opacity: 0.7;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

.form-check-label {
    cursor: pointer;
    color: var(--dark-gray);
}

/* Input with icon */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--medium-gray);
    background: var(--light-gray);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--accent-orange);
}

.input-group-text i {
    color: var(--primary-navy);
}

/* Search box */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 45px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
}

/* ==========================================================================
   TABLES - TechAge Innovations Style
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table thead th {
    background: var(--primary-navy);
    color: var(--white);
    padding: 15px 18px;
    font-weight: 600;
    text-align: left;
    border: none;
    white-space: nowrap;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
}

.table thead th:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.table thead th:first-child {
    border-radius: var(--border-radius-sm) 0 0 0;
}

.table thead th:last-child {
    border-radius: 0 var(--border-radius-sm) 0 0;
}

.table tbody tr {
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

.table tbody td {
    padding: 15px 18px;
    vertical-align: middle;
    color: var(--dark-gray);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--off-white);
}

.table-bordered {
    border: 2px solid var(--light-gray);
}

.table-bordered th, .table-bordered td {
    border: 1px solid var(--light-gray);
}

.table-compact th,
.table-compact td {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.table-compact thead th {
    background: var(--primary-navy);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.penalty-badge {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================================================
   BADGES & TAGS
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-navy {
    background: var(--primary-navy);
    color: var(--white);
}

.badge-orange {
    background: var(--accent-orange);
    color: var(--white);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: #b45309;
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.badge-secondary {
    background: var(--light-gray);
    color: var(--medium-gray);
}

/* ==========================================================================
   ALERTS & NOTIFICATIONS
   ========================================================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    border: none;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--box-shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: var(--primary-navy);
    color: var(--white);
    padding: 20px 25px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h5 {
    color: var(--white);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    gap: 8px;
    padding: 20px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    color: var(--primary-navy);
    font-weight: 600;
    transition: var(--transition);
    background: var(--white);
}

.pagination .page-item .page-link:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.05);
}

.pagination .page-item.active .page-link {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-navy { color: var(--primary-navy); }
.text-orange { color: var(--accent-orange); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-muted { color: var(--medium-gray); }
.text-white { color: var(--white); }

.bg-navy { background-color: var(--primary-navy); }
.bg-orange { background-color: var(--accent-orange); }
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light-gray); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: var(--box-shadow); }
.shadow-lg { box-shadow: var(--box-shadow-lg); }
.shadow-none { box-shadow: none; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

.cursor-pointer { cursor: pointer; }

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   LOGIN PAGE STYLES
   ========================================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-header i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
    display: block;
}

.login-header h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.login-body {
    padding: 40px 30px;
}

.login-footer {
    padding: 20px 30px;
    background: var(--off-white);
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.login-footer a {
    font-weight: 600;
}

/* Brand logo in login */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.brand-logo .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* ==========================================================================
   DASHBOARD SPECIFIC STYLES
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.chart-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-header h4 {
    margin: 0;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--dark-gray);
}

.quick-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.quick-action-btn i {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

.quick-action-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   CLOCK IN/OUT STYLES
   ========================================================================== */
.clock-container {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.clock-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-navy);
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.clock-date {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

.clock-button {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clock-button.clock-in {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.clock-button.clock-out {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--white);
}

.clock-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.clock-button i {
    font-size: 2.5rem;
}

.clock-status {
    margin-top: 25px;
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.clock-status.active {
    background: var(--success-light);
    color: var(--success);
}

.clock-status.inactive {
    background: var(--danger-light);
    color: var(--danger);
}

/* ==========================================================================
   STAFF/STUDENT CARDS
   ========================================================================== */
.person-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.person-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.person-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.person-info {
    flex: 1;
}

.person-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.person-detail {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

/* ==========================================================================
   PROFILE STYLES
   ========================================================================== */
.profile-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--white);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-navy);
    font-weight: 700;
    border: 5px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.profile-info h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.profile-info p {
    opacity: 0.9;
    margin-bottom: 5px;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--medium-gray);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--medium-gray);
    margin-bottom: 25px;
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner {
    margin: 0 auto 20px;
}

.loading-spinner p {
    color: var(--primary-navy);
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .sidebar {
        width: var(--sidebar-width-tablet);
    }
    
    .main-content {
        margin-left: var(--sidebar-width-tablet);
        max-width: calc(100vw - var(--sidebar-width-tablet));
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }
    
    /* Mobile sidebar toggle */
    .sidebar-toggle {
        display: flex;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .page-header {
        padding: 15px 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .stat-value {
        font-size: 1.75rem;
    }
    
    .clock-button {
        width: 150px;
        height: 150px;
    }
    
    .clock-display {
        font-size: 3rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .table thead th,
    .table tbody td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .container {
        padding: 0 12px;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .page-header h2 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
    }
    
    .card-header {
        padding: 15px 20px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clock-container {
        padding: 25px 15px;
    }
    
    .clock-display {
        font-size: 2.5rem;
    }
    
    .clock-button {
        width: 130px;
        height: 130px;
        font-size: 1rem;
    }
    
    .clock-button i {
        font-size: 2rem;
    }
    
    .person-card {
        flex-direction: column;
        text-align: center;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-body {
        padding: 25px 20px;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    /* Stack columns on mobile */
    .row > [class*="col-"] {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Hover effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .sidebar,
    .sidebar-toggle,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .page-content {
        padding: 0;
    }
    
    body {
        background: white;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-navy);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   TOGGLE SWITCH
   ========================================================================== */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    margin: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #28a745;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(30px);
}
