/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F8FAFC;
    min-height: 100vh;
    color: #1E293B;
}

/* Navigation Bar */
.navbar {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0D9488;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #0D9488;
}

.nav-menu span {
    color: #666;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* User Info in Mobile */
.nav-user-info {
    display: none;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 0.875rem 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    .nav-menu a:last-of-type {
        border-bottom: none;
    }

    .nav-menu span {
        display: none;
    }

    .nav-user-info {
        display: block;
        width: 100%;
        padding: 1rem 0;
        margin-bottom: 1rem;
        border-bottom: 2px solid #0D9488;
    }

    .nav-user-info .user-name {
        font-weight: 600;
        color: #333;
        font-size: 1.1rem;
    }

    .nav-user-info .user-role {
        font-size: 0.8rem;
        color: #0D9488;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .nav-overlay {
        display: block;
    }

    .nav-menu .btn {
        margin-top: 1rem;
        width: 100%;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    color: #0D9488;
    font-size: 2rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: #0D9488;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0D9488;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #0D9488;
    color: #fff;
}

.btn-primary:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-info {
    background: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background: #138496;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Clock Status */
.clock-status {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.status-clocked-in {
    color: #28a745;
}

.status-clocked-out {
    color: #dc3545;
}

.clock-status h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.clock-status p {
    font-size: 1.1rem;
    color: #666;
    margin: 0.5rem 0;
}

#elapsed-time {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0D9488;
}

/* Clock Actions */
.clock-actions {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clock-form h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Recent Entries */
.recent-entries {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recent-entries h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table thead {
    background: #0D9488;
    color: #fff;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: #0D9488;
    color: #fff;
}

.badge-secondary {
    background: #6c757d;
    color: #fff;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-danger {
    background: #dc3545;
    color: #fff;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #0D9488;
}

/* Admin Sections */
.admin-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.employee-form {
    max-width: 800px;
}

/* Filter Section */
.filter-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-form {
    margin-bottom: 1rem;
}

.export-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Report Summary */
.report-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #0D9488;
}

.report-summary h3 {
    margin-bottom: 1rem;
    color: #333;
}

.report-summary p {
    margin: 0.5rem 0;
    color: #666;
}

.report-table {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow-x: auto;
}

/* Page Title */
h1 {
    color: #1E293B;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.modal-content h3 {
    margin: 1.5rem 0 1rem 0;
    color: #0D9488;
    font-size: 1.2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.exif-data p {
    margin: 0.75rem 0;
    color: #666;
    line-height: 1.6;
}

.exif-data strong {
    color: #333;
    font-weight: 600;
}

.text-muted {
    color: #999 !important;
    font-size: 0.875rem;
}

/* =====================================================
   ENHANCED DASHBOARD STYLES
   ===================================================== */

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-full {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .dashboard-grid,
    .dashboard-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Cards */
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.dashboard-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.dashboard-card-body {
    padding: 1.25rem;
}

.dashboard-card-footer {
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
}

/* Mini Stats Row */
.mini-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-stat {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mini-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mini-stat-icon.blue { background: #eff6ff; }
.mini-stat-icon.green { background: #ecfdf5; }
.mini-stat-icon.amber { background: #fffbeb; }
.mini-stat-icon.red { background: #fef2f2; }
.mini-stat-icon.purple { background: #f5f3ff; }

.mini-stat-content h4 {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mini-stat-content .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.mini-stat-content .value.small {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .mini-stats {
        flex-direction: column;
    }
}

/* Corrective Actions Alert List */
.alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-list-item {
    display: flex;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.alert-list-item:last-child {
    border-bottom: none;
}

.alert-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.alert-indicator.critical { background: #dc2626; }
.alert-indicator.high { background: #f59e0b; }
.alert-indicator.medium { background: #3b82f6; }
.alert-indicator.low { background: #10b981; }

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-content .name {
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
}

.alert-content .type {
    font-size: 0.8rem;
    color: #6b7280;
}

.alert-meta {
    text-align: right;
    flex-shrink: 0;
}

.alert-meta .expires {
    font-size: 0.75rem;
    color: #6b7280;
}

.alert-meta .days-left {
    font-size: 0.8rem;
    font-weight: 600;
}

.alert-meta .days-left.urgent { color: #dc2626; }
.alert-meta .days-left.warning { color: #f59e0b; }
.alert-meta .days-left.normal { color: #6b7280; }

/* Hours Chart Container */
.chart-container {
    position: relative;
    height: 200px;
    padding: 1rem 0;
}

.chart-bar-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    padding: 0 0.5rem;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 60px;
}

.chart-bar {
    width: 24px;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    min-height: 4px;
}

.chart-bar:hover {
    background: linear-gradient(to top, #2563eb, #3b82f6);
}

.chart-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

.chart-value {
    font-size: 0.7rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Phonebook / Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin-right: 0.875rem;
    flex-shrink: 0;
}

.contact-avatar.admin { background: #dbeafe; color: #1d4ed8; }
.contact-avatar.manager { background: #fef3c7; color: #b45309; }
.contact-avatar.employee { background: #d1fae5; color: #047857; }

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info .name {
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
}

.contact-info .role {
    font-size: 0.75rem;
    color: #6b7280;
}

.contact-phone {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.contact-phone a {
    color: #3b82f6;
    text-decoration: none;
}

.contact-phone a:hover {
    text-decoration: underline;
}

/* Announcements */
.announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcement-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
}

.announcement-item:last-child {
    margin-bottom: 0;
}

.announcement-item.info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.announcement-item.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.announcement-item.success {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.announcement-item.danger {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.announcement-item.pinned {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.announcement-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-title .pin-icon {
    color: #f59e0b;
}

.announcement-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.announcement-content {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.announcement-author {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Employee Quick Info Table */
.quick-table {
    width: 100%;
    border-collapse: collapse;
}

.quick-table th {
    text-align: left;
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.quick-table td {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.quick-table tbody tr:hover {
    background: #f9fafb;
}

.quick-table .employee-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-table .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-dot.active { background: #10b981; }
.status-dot.inactive { background: #6b7280; }
.status-dot.suspended { background: #f59e0b; }

/* View All Link */
.view-all-link {
    font-size: 0.8rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 0.875rem;
}

/* Badge Styles - Subtle */
.badge-subtle {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-subtle.blue { background: #eff6ff; color: #1d4ed8; }
.badge-subtle.green { background: #ecfdf5; color: #047857; }
.badge-subtle.amber { background: #fffbeb; color: #b45309; }
.badge-subtle.red { background: #fef2f2; color: #dc2626; }
.badge-subtle.gray { background: #f3f4f6; color: #4b5563; }
.badge-subtle.purple { background: #f5f3ff; color: #6d28d9; }

/* Nav Badge (notification count in navbar) */
.nav-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 9999px;
    font-weight: 600;
    margin-left: 0.25rem;
    vertical-align: super;
}

/* Scrollable Container */
.scrollable {
    max-height: 300px;
    overflow-y: auto;
}

.scrollable::-webkit-scrollbar {
    width: 6px;
}

.scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: #374151;
}

.tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Alert Badge (notification count) */
.alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}