/* Custom Styles */
html, body {
    height: 100%;
}
body {
    background-color: #0a0a0a;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Base Layout (Mobile First) --- */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}
.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #0a0a0a;
    min-height: 0;
}

/* --- Header --- */
.app-header {
    background-color: #141414;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-logo {
    height: 3.75rem; /* 60px = 40px * 1.5 */
    width: auto;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 3rem;
    color: #ffffff;
    letter-spacing: -0.025em;
}

/* --- Sidebar (Mobile: hidden by default) --- */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}
.app-sidebar.is-open {
    transform: translateX(0);
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
}
.sidebar-overlay.is-open {
    display: block;
}
.app-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0.875rem 1rem;
    margin: 0.5rem 0;
    text-decoration: none;
    color: inherit;
}
.app-sidebar .nav-link:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}
.app-sidebar .nav-link.active {
    background-color: #404040;
    color: #ffffff;
    font-weight: 600;
}

/* --- Main Content & Footer --- */
#app-main-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.app-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
    color: #888888;
    background-color: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
    flex-shrink: 0;
}

/* --- Enhanced Card Component --- */
.card {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

/* Filter cards need visible overflow for dropdowns */
.card:has(.dropdown-container) {
    overflow: visible;
}

/* Fallback for browsers without :has() support */
.filter-card {
    overflow: visible;
}

/* Ensure filter layout works correctly */
.jobs-layout, .hotspots-layout {
    width: 100%;
    max-width: none;
}

/* Ensure table containers have proper scrolling */
.overflow-x-auto {
    overflow-x: auto;
    overflow-y: hidden;
}

/* Prevent table content from breaking layout */
.data-table th,
.data-table td {
    min-width: 0;
}

.card-header {
    background-color: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* --- Enhanced Data Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Ensure tables have minimum widths for proper layout */
#jobs-table {
    min-width: 900px;
}

#hotspots-table {
    min-width: 1000px;
}

.data-table th {
    background-color: #2a2a2a;
    color: #b0b0b0;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: relative;
}

.data-table th.cursor-pointer {
    user-select: none;
    transition: background-color 0.2s ease;
}

.data-table th.cursor-pointer:hover {
    background-color: #404040;
}

.data-table th .sort-indicator {
    display: inline-block;
    margin-left: 0.5rem;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.data-table td {
    color: #e5e5e5;
    font-weight: 400;
    font-size: 0.875rem;
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

/* Zebra-striping for table rows */
.data-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
    background-color: #2a2a2a;
    transition: background-color 0.2s ease;
}

/* Selected row styling */
.data-table tbody tr.selected {
    background-color: rgba(59, 130, 246, 0.2) !important;
    border-left: 3px solid #3b82f6;
}

/* --- Enhanced Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-primary {
    background-color: #404040;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover:not(:disabled) {
    background-color: #505050;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #2a2a2a;
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #404040;
    color: #ffffff;
}

.btn-ghost {
    background-color: transparent;
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover:not(:disabled) {
    background-color: #2a2a2a;
    color: #ffffff;
}

.btn-danger {
    background-color: #dc2626;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-success {
    background-color: #16a34a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-success:hover:not(:disabled) {
    background-color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

/* --- Enhanced Form Styles --- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #e5e5e5;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: #888888;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.75rem;
    color: #888888;
    margin-top: 0.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group-text {
    background-color: #2a2a2a;
    color: #b0b0b0;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* --- Enhanced Checkbox Styles --- */
.checkbox-custom {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-custom:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-custom:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-custom:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.checkbox-custom:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* --- Enhanced Dropdown Styles --- */
.dropdown-container {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background-color: #1a1a1a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-menu label {
    cursor: pointer;
    padding: 0.5rem;
    display: block;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.dropdown-menu label:hover {
    background-color: #2a2a2a;
}

/* --- Status Indicators --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background-color: #16a34a;
    color: #ffffff;
    border: 1px solid #15803d;
}

.status-chronic {
    background-color: #dc2626;
    color: #ffffff;
    border: 1px solid #b91c1c;
}

.status-dormant {
    background-color: #64748b;
    color: #ffffff;
    border: 1px solid #475569;
}

.status-inactive {
    background-color: #1a1a1a;
    color: #888888;
    border: 1px solid #2a2a2a;
}

.status-pending {
    background-color: #f59e0b;
    color: #000000;
    border: 1px solid #d97706;
}

/* --- Progress Bars --- */
.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: #2a2a2a;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
    border-radius: 0.25rem;
}

.progress-bar-fill.error {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.progress-bar-fill.success {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

/* --- Enhanced Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #888888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
    background-color: #2a2a2a;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* --- Login Page Styles --- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
    padding: 1.5rem;
}

.login-content {
    width: 100%;
    max-width: 400px;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.login-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
}

.login-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.login-form-container {
    width: 100%;
}

.login-form-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: #404040;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
}

.login-button:hover {
    background-color: #505050;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.login-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 2px;
}

.login-button:disabled {
    background-color: #2a2a2a;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-error {
    color: #ff6b6b;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 8px;
    display: none;
}

.login-error:not(:empty) {
    display: block;
}

/* --- Period Switcher Styles --- */
.period-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.period-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 100px;
    text-align: center;
}

.period-nav-btn {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.period-nav-btn:hover {
    color: #ffffff;
    background-color: #2a2a2a;
}

.period-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- Radial Progress Styles --- */
.radial-progress {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 0 auto;
}

.radial-progress svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.radial-progress .progress-background {
    fill: none;
    stroke: #2a2a2a;
    stroke-width: 8;
}

.radial-progress .progress-foreground {
    fill: none;
    stroke: #22c55e;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.29;
    stroke-dashoffset: 339.29;
    transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease;
}

.radial-progress .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.radial-progress .progress-percentage {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.radial-progress .progress-label {
    font-size: 0.75rem;
    color: #888888;
    line-height: 1;
    margin-top: 0.25rem;
}

/* --- Typography improvements --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p, .text-base {
    line-height: 1.7;
}

/* --- Focus states for accessibility --- */
*:focus {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 2px;
}

/* --- Improved scrollbar styling --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* --- Loading States --- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #404040;
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

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

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s linear infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-white { color: #ffffff; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }

.text-red-400 { color: #f87171; }
.text-green-400 { color: #4ade80; }
.text-blue-400 { color: #60a5fa; }
.text-yellow-400 { color: #facc15; }

.bg-transparent { background-color: transparent; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.select-none { user-select: none; }

.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease; }

/* --- Responsive breakpoints --- */
@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:hidden { display: none; }
    .sm\:inline { display: inline; }
    .sm\:block { display: block; }
    .sm\:text-sm { font-size: 0.875rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:gap-4 { gap: 1rem; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:w-auto { width: auto; }
    .md\:inline { display: inline; }
    
    .app-header, .app-main-content .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .logo-text {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:space-x-8 > * + * { margin-left: 2rem; }
    .lg\:w-80 { width: 20rem; }
    .lg\:text-4xl { font-size: 2.25rem; }
    .lg\:text-lg { font-size: 1.125rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:mb-0 { margin-bottom: 0; }
    
    .app-sidebar {
        position: static;
        transform: translateX(0);
        transition: none;
    }
    #hamburger-button, .sidebar-overlay {
        display: none;
    }
    .app-header {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* --- Animation for smooth transitions --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-slideIn { animation: slideIn 0.3s ease-out; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* --- Settings Page Specific Styles --- */
.settings-footer {
    background-color: #2a2a2a;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* --- Accessibility improvements --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- High contrast mode support --- */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #ffffff;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-input {
        border: 2px solid #ffffff;
    }
}

/* --- Print styles --- */
@media print {
    .app-sidebar,
    .app-header,
    .app-footer,
    .btn,
    .dropdown-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

