/* Editor page */
.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    height: 75vh;
    margin-top: 20px;
}

.editor-panel {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.panel-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.editor-textarea {
    flex: 1;
    padding: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255,255,255,0.95);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.editor-textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.editor-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.preview-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    line-height: 1.6;
}

.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filename-input {
    flex: 1;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-family: 'SF Mono', 'Monaco', monospace;
    transition: all 0.3s ease;
}

.filename-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.filename-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255,255,255,0.3);
    letter-spacing: -0.02em;
}

.header-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(0);
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8B4513;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(252, 182, 159, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #fed7aa 0%, #fb9d7a 100%);
    box-shadow: 0 12px 25px rgba(252, 182, 159, 0.6);
}

.btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 25px rgba(255,255,255,0.2);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 12px;
}

.btn-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #0d4f3c;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(132, 250, 176, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #6ee89a 0%, #7bc4e8 100%);
    box-shadow: 0 12px 25px rgba(132, 250, 176, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #8b1538;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff8a8e 0%, #feb9df 100%);
    box-shadow: 0 12px 25px rgba(255, 154, 158, 0.6);
}

.back-btn {
    text-decoration: none;
}

/* Main content */
main {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-height: 500px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out 0.2s both;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 60px;
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

.error {
    background: rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fecaca;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success {
    background: rgba(34, 197, 94, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #bbf7d0;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-out;
}

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

/* Recipe list */
.recipe-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.recipe-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.recipe-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.recipe-card:nth-child(even) {
    animation-delay: 0.1s;
}

.recipe-card:nth-child(3n) {
    animation-delay: 0.2s;
}

.recipe-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recipe-filename {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    margin-bottom: 20px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

.recipe-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.no-recipes {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    font-weight: 500;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Recipe detail page */
.recipe-content {
    max-width: 900px;
    margin: 0 auto;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.recipe-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.recipe-body {
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
    font-size: 16px;
}

.recipe-body h1, .recipe-body h2, .recipe-body h3 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.recipe-body h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recipe-body h2 {
    font-size: 1.6rem;
    color: #e0e7ff;
}

.recipe-body h3 {
    font-size: 1.3rem;
    color: #e0e7ff;
}

.recipe-body ul, .recipe-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.recipe-body li {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
}

.recipe-body p {
    margin-bottom: 18px;
    color: rgba(255,255,255,0.9);
}

.recipe-body strong {
    color: #fff;
    font-weight: 600;
}

.recipe-body code {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 14px;
    color: #e0e7ff;
    border: 1px solid rgba(255,255,255,0.2);
}

.recipe-body pre {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
}

.recipe-body blockquote {
    border-left: 4px solid rgba(255,255,255,0.4);
    padding-left: 25px;
    margin: 25px 0;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    background: rgba(255,255,255,0.05);
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
}

/* Editor page */
.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 70vh;
}

.editor-panel {
    display: flex;
    flex-direction: column;
}

.panel-header {
    background-color: #34495e;
    color: white;
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
}

.editor-textarea {
    flex: 1;
    padding: 15px;
    border: 1px solid #bdc3c7;
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
}

.editor-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.preview-panel {
    border: 1px solid #bdc3c7;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 15px;
    overflow-y: auto;
    background-color: white;
}

.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.filename-input {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
}

.filename-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* LLM page */
.llm-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    transition: all 0.3s ease;
}

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

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Generated recipe display */
#generatedRecipe {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

#generatedRecipe h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#recipePreview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 500px;
    overflow-y: auto;
    color: rgba(255,255,255,0.95);
}

/* Custom scrollbar */
.preview-panel::-webkit-scrollbar, #recipePreview::-webkit-scrollbar {
    width: 8px;
}

.preview-panel::-webkit-scrollbar-track, #recipePreview::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.preview-panel::-webkit-scrollbar-thumb, #recipePreview::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.preview-panel::-webkit-scrollbar-thumb:hover, #recipePreview::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .header-buttons {
        justify-content: center;
        width: 100%;
    }

    .editor-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 20px;
    }

    .editor-panel {
        min-height: 400px;
    }

    .recipe-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recipe-card {
        padding: 20px;
    }

    .recipe-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .recipe-title {
        font-size: 2.2rem;
    }

    .editor-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

    .filename-input {
        max-width: none;
    }

    main {
        padding: 25px 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .form-input, .form-textarea {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .recipe-title {
        font-size: 1.8rem;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .recipe-actions {
        flex-direction: column;
        gap: 8px;
    }

    .recipe-actions .btn {
        width: 100%;
    }

    main {
        padding: 20px 15px;
    }

    .recipe-card {
        padding: 15px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Smooth transitions for all interactive elements */
* {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Enhanced focus states for accessibility */
.btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.filename-input:focus-visible {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: linear-gradient(135deg, #000033 0%, #000066 100%);
    }
    
    header, main {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}
