/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-solid: #667eea;
    --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    --section-gap: 4rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Animations */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.25s ease;
    --transition-slow: all 0.4s ease;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(600px circle at 20% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(800px circle at 80% 70%, rgba(245, 87, 108, 0.05) 0%, transparent 50%),
        radial-gradient(400px circle at 50% 50%, rgba(0, 242, 254, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== HEADER ===== */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 1.5rem;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-btn.active {
    background: var(--primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-lg);
}

/* ===== MAIN CONTENT ===== */
.main {
    padding: var(--section-gap) 0;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    margin-bottom: var(--section-gap);
}

.hero-title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== INPUT SECTION ===== */
.input-section {
    margin-bottom: var(--section-gap);
}

.input-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.input-label i {
    color: var(--primary-solid);
    font-size: 1.25rem;
}

.input-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: var(--transition-base);
}

.input-wrapper:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.input-wrapper:focus-within {
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    resize: vertical;
    min-height: 80px;
    outline: none;
    margin-bottom: 1rem;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-actions {
    display: grid;
    grid-template-columns: minmax(250px, 280px) 1fr minmax(140px, 160px);
    align-items: center;
    gap: 1rem;
    min-height: 60px;
    width: 100%;
    padding: 0.5rem 0;
    overflow: hidden;
}

.category-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: var(--transition-base);
    box-sizing: border-box;
}

.category-select:hover {
    border-color: var(--border-hover);
}

.category-select:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== AI PROVIDER & MODEL SELECTION ===== */
.ai-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.provider-select,
.model-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--transition-base);
    outline: none;
}

.provider-select {
    min-width: 280px;
    width: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.provider-select:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
}

.provider-select:focus {
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.model-select {
    min-width: 250px;
    width: 100%;
    background: linear-gradient(135deg, rgba(75, 172, 254, 0.08) 0%, rgba(0, 242, 254, 0.08) 100%);
    border: 1px solid rgba(75, 172, 254, 0.2);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.model-select:hover {
    border-color: rgba(75, 172, 254, 0.4);
    background: linear-gradient(135deg, rgba(75, 172, 254, 0.12) 0%, rgba(0, 242, 254, 0.12) 100%);
}

.model-select:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(75, 172, 254, 0.1);
}

/* Select option styling */
.provider-select option,
.model-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
    font-size: var(--font-size-sm);
}

/* AI Selection responsive behavior - tablet and smaller */
@media (max-width: 768px) {
    .input-actions {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.75rem;
    }
    
    .ai-selection {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        width: 100%;
    }
    
    .provider-select,
    .model-select {
        width: 100%;
        min-width: unset;
    }
    
    .category-select,
    .generate-btn {
        width: 100%;
    }
}

/* Desktop grid layout optimization */
@media (min-width: 900px) {
    .input-actions {
        grid-template-columns: 280px 1fr 160px;
        gap: 1.5rem;
    }
    
    .ai-selection {
        min-width: 530px; /* 2 dropdowns + gap */
        max-width: 600px;
        justify-self: center;
    }
}

/* Medium screens - tighter layout */
@media (min-width: 769px) and (max-width: 899px) {
    .input-actions {
        grid-template-columns: minmax(220px, 250px) 1fr minmax(120px, 140px);
        gap: 0.75rem;
    }
    
    .category-select {
        font-size: var(--font-size-xs);
    }
}

.generate-btn {
    justify-self: end;
    min-width: 150px;
    background: var(--primary);
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    color: white;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generate-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.generate-btn:not(:disabled):active {
    transform: translateY(0);
}

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

.generate-btn .btn-loading {
    display: none;
}

.generate-btn.loading .btn-text {
    display: none;
}

.generate-btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    margin-bottom: var(--section-gap);
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Thinking Process */
.thinking-process {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease;
}

.thinking-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-solid);
}

.thinking-header i {
    animation: pulse 2s infinite;
}

.thinking-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thinking-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    transition: var(--transition-base);
}

.thinking-step.active {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid var(--primary-solid);
}

.thinking-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xs);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.thinking-step-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.thinking-step-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Prompt Result */
.prompt-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.result-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--success);
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--transition-base);
}

.action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.result-content {
    padding: 2rem;
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    background: var(--bg-secondary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.result-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item.stat-success {
    color: var(--success);
}

.stat-item.stat-success i {
    color: var(--success);
}

.stat-item.stat-warning {
    color: var(--warning);
}

.stat-item.stat-warning i {
    color: var(--warning);
}

/* ===== EXAMPLES SECTION ===== */
.examples-section {
    margin-bottom: var(--section-gap);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: translateX(-100%);
    transition: var(--transition-base);
}

.example-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.example-card:hover::before {
    transform: translateX(0);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.example-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
}

.example-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
}

.example-category {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.example-preview {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-style: italic;
    border-left: 2px solid var(--primary-solid);
}

/* ===== HISTORY SECTION ===== */
.history-section {
    margin-bottom: var(--section-gap);
}

.history-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.clear-history-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--error);
    border-radius: 0.5rem;
    color: var(--error);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--transition-base);
}

.clear-history-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition-base);
}

.history-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.history-item-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
}

.history-item-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.history-item-content {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: var(--section-gap);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast.warning {
    border-color: var(--warning);
}

.toast.info {
    border-color: var(--info);
}

/* Loading overlay styles removed - using in-result loading instead */

/* New in-result loading styles */
.loading-in-result {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin: 20px 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.loading-in-result p {
    margin: 15px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.loading-spinner-small {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.progress-steps .step {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.progress-steps .step.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 600;
}

.progress-steps .step.completed {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
    color: #c8e6c9;
}

/* Mobile responsiveness for progress steps */
@media (max-width: 600px) {
    .loading-in-result {
        padding: 30px 15px;
        margin: 15px 0;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .progress-steps .step {
        width: 200px;
        text-align: center;
    }
}

/* Removed unused loading-content and loading-spinner classes */

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-gap: 3rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav::-webkit-scrollbar {
        height: 2px;
    }
    
    .nav::-webkit-scrollbar-track {
        background: var(--border);
    }
    
    .nav::-webkit-scrollbar-thumb {
        background: var(--primary-solid);
        border-radius: 2px;
    }
    
    /* Input actions already handled above */
    
    .input-wrapper {
        padding: 1rem;
    }
    
    .category-select {
        font-size: var(--font-size-xs);
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .result-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .input-wrapper {
        padding: 1rem;
    }
    
    .result-content {
        padding: 1rem;
        font-size: var(--font-size-sm);
    }
    
    .example-card {
        padding: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.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;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}
