/* Basic styling for options page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1d29;
    color: #f8f9fa;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    color-scheme: dark;
}

/* Comfortable background for options page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #4a6741 50%, #5d4e75 75%, #2980b9 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(123, 104, 238, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(93, 173, 226, 0.08) 0%, transparent 60%);
    animation: optionsFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes optionsFloat {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    50% { 
        transform: translateX(20px) translateY(-20px) rotate(180deg);
        filter: hue-rotate(180deg);
    }
}

#options-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

h1 {
    color: #2c3e50;
    font-weight: 300;
    font-size: 2.5rem;
}

h2 {
    color: #34495e;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

section {
    background: white;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
    margin-top: 30px;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px;
    transition: background 0.3s ease;
}

button:hover {
    background: #2980b9;
}

#reset-settings {
    background: #e74c3c;
}

#reset-settings:hover {
    background: #c0392b;
}

/* Form elements styling */
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

/* Storage-specific styling */
#storage-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

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

.message-success {
    background: #4CAF50;
}

.message-error {
    background: #f44336;
}

.message-info {
    background: #2196F3;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

/* File input styling */
input[type="file"] {
    padding: 5px;
    background: #f8f9fa;
}

/* Data settings section styling */
#data-settings div {
    margin: 15px 0;
}

#data-settings button {
    margin: 5px;
    padding: 8px 16px;
    font-size: 14px;
}

/* Background settings styling */
#bg-color-section,
#bg-image-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#bg-image-preview {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    text-align: center;
}

#bg-preview-img {
    display: block;
    margin: 0 auto 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#remove-bg-image {
    background: #dc3545;
    font-size: 14px;
    padding: 8px 16px;
    margin: 10px auto 0;
}

#remove-bg-image:hover {
    background: #c82333;
}

/* Color input specific styling */
input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
    #options-container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 20px;
    }
    
    .message {
        right: 10px;
        left: 10px;
        width: auto;
    }
}/* Enhanced
 Options Page Styling */

.options-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

.options-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(123, 104, 238, 0.15) 50%, rgba(93, 173, 226, 0.2) 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.header-top {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 10;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    color: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-button:active {
    transform: translateY(0);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-2px);
}

.options-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: headerFloat 15s ease-in-out infinite;
}

@keyframes headerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.options-title {
    font-size: 2.8rem;
    font-weight: 200;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.options-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.settings-section {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
}

/* Glassmorphism overlay */
.settings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.settings-section:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4);
}

.section-header {
    padding: 28px 32px 22px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #7b68ee, #5dade2);
    opacity: 0.4;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #f8f9fa;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #4a90e2, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: rgba(248, 249, 250, 0.75);
    font-size: 0.95rem;
    margin: 0;
}

.settings-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.setting-group {
    display: flex;
    flex-direction: column;
}

.setting-group.full-width {
    grid-column: 1 / -1;
}

.setting-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.setting-label:hover {
    border-color: #007bff;
    background: #fff;
}

.setting-checkbox {
    width: auto !important;
    margin: 0 15px 0 0 !important;
    transform: scale(1.2);
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
    background: white;
    transition: all 0.2s ease;
}

.setting-checkbox:checked + .checkbox-custom {
    background: #007bff;
    border-color: #007bff;
}

.setting-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.setting-info {
    flex: 1;
}

.setting-name {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 0.9rem;
    color: #6c757d;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    backdrop-filter: blur(10px);
    color-scheme: dark;
}

/* Fix native dropdown list readability on Windows/Chrome */
.form-select option {
    background-color: #0f172a; /* dark background for dropdown panel */
    color: #f8f9fa;
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15), 0 4px 12px rgba(74, 144, 226, 0.2);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

.setting-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #4a90e2;
    line-height: 1.4;
}

.hint-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.color-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-color {
    width: 60px !important;
    height: 45px;
    padding: 4px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
}

.color-text {
    flex: 1;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.file-upload-area:hover::before {
    opacity: 1;
}

.file-upload-area:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
}

.upload-icon {
    transition: transform 0.3s ease;
}

.file-input {
    display: none;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 2rem;
}

.upload-text {
    font-weight: 600;
    color: #495057;
}

.upload-hint {
    color: #6c757d;
    font-size: 0.85rem;
}

.image-preview {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-actions {
    margin-top: 15px;
}

/* Hot Topics Management */
.topics-management {
    width: 100%;
}

.topics-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.topic-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;
    margin: 0;
}

.topic-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.topic-tab:hover {
    color: #007bff;
    background: #f8f9fa;
}

.topics-content {
    min-height: 300px;
}

.topic-list {
    display: none;
}

.topic-list:first-child {
    display: block;
}

.topic-add {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.topic-add .form-input {
    margin-bottom: 0;
}

.topic-add .topic-title {
    flex: 2;
}

.topic-add .topic-score {
    flex: 1;
    max-width: 120px;
}

.topics-list {
    max-height: 400px;
    overflow-y: auto;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.topic-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.topic-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-title {
    font-weight: 500;
    color: #495057;
}

.topic-score {
    font-weight: 600;
    color: #007bff;
    background: #e7f3ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.topic-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-icon {
    font-size: 1.1em;
}

/* Data Management */
.data-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.storage-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
}

/* Footer */
.options-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid #e9ecef;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Enhanced Animations for Options Page */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations */
.options-header {
    animation: slideInFromTop 0.8s ease-out;
}

.settings-section {
    animation: slideInFromLeft 0.6s ease-out both;
}

.settings-section:nth-child(1) { animation-delay: 0.1s; }
.settings-section:nth-child(2) { animation-delay: 0.2s; }
.settings-section:nth-child(3) { animation-delay: 0.3s; }
.settings-section:nth-child(4) { animation-delay: 0.4s; }
.settings-section:nth-child(5) { animation-delay: 0.5s; }
.settings-section:nth-child(6) { animation-delay: 0.6s; }

.options-footer {
    animation: bounceIn 0.8s ease-out 0.8s both;
}

/* Enhanced hover effects */
.setting-label {
    position: relative;
    overflow: hidden;
}

.setting-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.setting-label:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .options-container {
        padding: 15px;
    }
    
    .options-title {
        font-size: 2.2rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .topic-add {
        flex-direction: column;
    }
    
    .topic-add .topic-score {
        max-width: none;
    }
    
    .topic-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .topic-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .data-actions {
        justify-content: center;
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Reduce animation complexity on mobile */
    .settings-section {
        animation: slideInFromTop 0.4s ease-out both;
    }
}

@media (max-width: 480px) {
    .topics-tabs {
        flex-direction: column;
    }
    
    .topic-tab {
        text-align: center;
        border-bottom: 1px solid #e9ecef;
        border-right: none;
    }
    
    .topic-tab.active {
        border-bottom-color: #007bff;
    }
}/*
 Additional Enhancements for Options Page */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Toast notification styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.toast.error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.toast.info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

/* Enhanced form validation */
.form-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-input.success {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.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;
}

/* Focus management */
.focus-trap {
    outline: none;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .form-input, .form-select {
        border-width: 2px;
    }
}

/* Category management styles */
.category-manage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.category-manage-item .cat-icon {
    width: 60px;
    text-align: center;
}

.category-manage-item .cat-name {
    flex: 1;
}

.category-actions {
    display: flex;
    gap: 6px;
}

.category-add-btn {
    margin-top: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.category-add-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

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