/* ========================================
   ORGBOOKS - Modern Design System
   Organizational & Accounting Module
   ======================================== */

/* CSS Custom Properties / Design Tokens */
:root {
    /* Primary Colors - Professional Blue */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Accent Colors - Croatian Red */
    --accent-50: #fef2f2;
    --accent-100: #fee2e2;
    --accent-200: #fecaca;
    --accent-300: #fca5a5;
    --accent-400: #f87171;
    --accent-500: #ef4444;
    --accent-600: #dc2626;
    --accent-700: #b91c1c;

    /* Success Green */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;

    /* Warning Amber */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    /* Neutral Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Layout */
    --sidebar-width: 280px;
    --navbar-height: 64px;
    --card-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    background: white !important;
    border-bottom: 1px solid var(--gray-200);
    height: var(--navbar-height);
    padding: 0 1.5rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-org {
    color: var(--primary-600);
}

.brand-books {
    color: var(--accent-600);
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.company-badge {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.75rem;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.app-container {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin: 2px 0.75rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-nav-link.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

.sidebar-nav-link.active .nav-icon {
    color: var(--primary-600);
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.sidebar-nav-link:hover .nav-icon {
    color: var(--gray-600);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    max-width: calc(100% - var(--sidebar-width));
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--transition-base);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: var(--primary-100);
    color: var(--primary-600);
}

.stat-icon.success {
    background: var(--success-100);
    color: var(--success-600);
}

.stat-icon.warning {
    background: var(--warning-100);
    color: var(--warning-600);
}

.stat-icon.accent {
    background: var(--accent-100);
    color: var(--accent-600);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-trend.positive {
    color: var(--success-600);
}

.stat-trend.negative {
    color: var(--accent-600);
}

/* ========================================
   PAGE HEADERS
   ======================================== */

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.page-subtitle {
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

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

.btn-success:hover {
    background: var(--success-700);
    border-color: var(--success-700);
}

.btn-outline-primary {
    color: var(--primary-600);
    border-color: var(--primary-300);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-400);
}

.btn-outline-danger {
    color: var(--accent-600);
    border-color: var(--accent-300);
}

.btn-outline-danger:hover {
    background: var(--accent-50);
    color: var(--accent-700);
    border-color: var(--accent-400);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
}

/* Circle Button (for company selection) */
.circle-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.circle-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.circle-btn.bg-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-600)) !important;
}

.circle-btn.bg-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600)) !important;
}

/* ========================================
   TABLES
   ======================================== */

.table-container {
    background: white;
    border-radius: var(--card-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: var(--gray-50);
}

.table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray-600);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

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

.table tbody tr:hover {
    background: var(--gray-50);
}

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

/* Employee name styling */
.employee-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.employee-info {
    display: flex;
    flex-direction: column;
}

.employee-fullname {
    font-weight: 500;
    color: var(--gray-900);
}

.employee-email {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Status badges */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-warning {
    background: var(--warning-100);
    color: var(--warning-600);
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-danger {
    background: var(--accent-100);
    color: var(--accent-700);
}

/* ========================================
   FORMS
   ======================================== */

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    background-color: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control:disabled {
    background: var(--gray-100);
    color: var(--gray-500);
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.35rem;
}

/* Input groups */
.input-group-text {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-600);
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Ensure login modal form content is visible when modal is shown */
#loginModal.show {
    display: block !important;
}

#loginModal.show .modal-dialog,
#loginModal.show .modal-content {
    display: block !important;
    visibility: visible !important;
}

#loginModal.show #login-form {
    display: block !important;
    visibility: visible !important;
}

#loginModal.show .modal-header,
#loginModal.show .modal-body,
#loginModal.show .modal-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#loginModal.show .modal-body .mb-3 {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 1rem !important;
}

#loginModal.show .modal-body .form-label {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 0.5rem !important;
}

#loginModal.show .modal-body .input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    visibility: visible !important;
    width: 100% !important;
}

#loginModal.show .modal-body .input-group-text {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
}

#loginModal.show .modal-body .form-control {
    visibility: visible !important;
    min-height: 40px;
    flex: 1 1 auto;
    min-width: 0;
}

.modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

/* ========================================
   TABS (PILLS STYLE)
   ======================================== */

.nav-pills .nav-link {
    color: var(--gray-600);
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-pills .nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-pills .nav-link.active {
    background: var(--primary-600);
    color: white;
}

/* Underline tabs */
.nav-tabs {
    border-bottom: 2px solid var(--gray-200);
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--gray-500);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    color: var(--gray-700);
    border-color: transparent;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
    background: transparent;
}

/* ========================================
   WAGE CALCULATOR RESULTS
   ======================================== */

.wage-results {
    background: var(--gray-50);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.wage-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.wage-result-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.wage-result-value {
    font-weight: 600;
    color: var(--gray-900);
}

.wage-result-row.total {
    background: white;
    margin: 1rem -1.5rem -1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    border-top: 2px solid var(--primary-200);
}

.wage-result-row.total .wage-result-label {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1rem;
}

.wage-result-row.total .wage-result-value {
    font-size: 1.25rem;
    color: var(--primary-600);
}

/* ========================================
   HEALTH CHECKUP REMINDERS
   ======================================== */

.reminder-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    margin-bottom: 0.75rem;
    gap: 1rem;
    transition: all var(--transition-fast);
}

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

.reminder-card.urgent {
    border-left: 4px solid var(--accent-500);
    background: var(--accent-50);
}

.reminder-card.soon {
    border-left: 4px solid var(--warning-500);
    background: var(--warning-50);
}

.reminder-card.ok {
    border-left: 4px solid var(--success-500);
}

.reminder-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reminder-card.urgent .reminder-icon {
    background: var(--accent-100);
    color: var(--accent-600);
}

.reminder-card.soon .reminder-icon {
    background: var(--warning-100);
    color: var(--warning-600);
}

.reminder-card.ok .reminder-icon {
    background: var(--success-100);
    color: var(--success-600);
}

.reminder-content {
    flex: 1;
}

.reminder-title {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.reminder-date {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ========================================
   TRAVEL REPORTS
   ======================================== */

.travel-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

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

.travel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.travel-destination {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.travel-employee {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.travel-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.travel-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.travel-detail i {
    color: var(--gray-400);
}

/* ========================================
   LANDING PAGE
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-700);
    border: none;
}

.btn-hero-primary:hover {
    background: var(--gray-100);
    color: var(--primary-800);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Feature Cards */
.feature-section {
    padding: 5rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--card-radius);
    background: white;
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.feature-icon.blue {
    background: var(--primary-100);
    color: var(--primary-600);
}

.feature-icon.red {
    background: var(--accent-100);
    color: var(--accent-600);
}

.feature-icon.green {
    background: var(--success-100);
    color: var(--success-600);
}

.feature-icon.amber {
    background: var(--warning-100);
    color: var(--warning-600);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ========================================
   LOGIN/AUTH PAGE
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-100) 100%);
}

.auth-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .brand-logo {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-text {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin: 0;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-primary {
    color: var(--primary-600) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.bg-primary-subtle {
    background-color: var(--primary-50) !important;
}

.border-primary {
    border-color: var(--primary-300) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.gap-3 {
    gap: 1rem !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .feature-section {
        padding: 3rem 0;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .sidebar,
    .navbar,
    .btn,
    .page-actions {
        display: none !important;
    }

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

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
