/**
 * ============================================
 * PREMIUM ULTRA-MODERN DESIGN SYSTEM
 * ============================================
 * Glassmorphism + Neumorphism + Neon Glow
 * The most modern AI tools platform design
 * ============================================
 */

:root {
    /* Neon Glow Colors */
    --neon-blue: #00f0ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    --neon-orange: #f59e0b;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-light: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Neumorphism */
    --neu-light: #ffffff;
    --neu-dark: #d1d5db;
    --neu-shadow-light: rgba(255, 255, 255, 0.7);
    --neu-shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Background */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-dark: #0f172a;
    --bg-darker: #020617;
}

/* ============================================
   BODY & BACKGROUND - Futuristic
   ============================================ */
body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 75, 175, 0.3), transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.2), transparent 50%);
    min-height: 100vh;
    color: #e2e8f0;
}

/* ============================================
   NAVIGATION BAR - Glassmorphism + Neon
   ============================================ */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 240, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.nav-brand .icon {
    font-size: 2rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px var(--neon-blue));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--neon-purple));
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* User greeting in navbar */
.nav-links span,
.nav-links .user-name {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px var(--neon-blue);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 240, 255, 0.3),
        0 0 30px rgba(168, 85, 247, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(168, 85, 247, 0.4);
}

/* ============================================
   TOOL HEADER - Neon Gradient
   ============================================ */
.tool-header {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(20px);
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
}

.tool-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(0, 240, 255, 0.1) 0%, 
        transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tool-header .container {
    position: relative;
    z-index: 1;
}

.tool-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--neon-blue));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: drop-shadow(0 0 30px var(--neon-blue));
    }
    50% { 
        transform: translateY(-20px) scale(1.05); 
        filter: drop-shadow(0 0 50px var(--neon-purple));
    }
}

.tool-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3);
    letter-spacing: -0.5px;
}

.tool-header p {
    color: white;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ============================================
   TOOL CONTAINER - Premium Layout
   ============================================ */
.tool-section {
    padding: 3rem 0;
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .tool-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   GLASSMORPHISM + NEUMORPHISM CARDS
   ============================================ */
.tool-input, .tool-output {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(0, 240, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.tool-input:hover, .tool-output:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 80px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
}

/* Neon glow border animation */
.tool-input::before, .tool-output::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--neon-blue), 
        var(--neon-purple), 
        var(--neon-pink), 
        var(--neon-blue));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tool-input:hover::before, .tool-output:hover::before {
    opacity: 0.3;
}

.tool-input h2, .tool-output h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* ============================================
   MODERN NEON FORM INPUTS
   ============================================ */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.form-group label .icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 
        0 0 0 4px rgba(0, 240, 255, 0.1),
        0 0 20px rgba(0, 240, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.form-control:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Select */
select.form-control {
    cursor: pointer;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%2300f0ff" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
    appearance: none;
}

select.form-control option {
    background: var(--bg-dark);
    color: white;
}

/* Helper text */
.form-text {
    display: block;
    margin-top: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Form row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NEON GLOW BUTTONS
   ============================================ */
.btn-generate {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 24px rgba(0, 240, 255, 0.3),
        0 0 40px rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-generate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.btn-generate:hover::before {
    left: 100%;
}

.btn-generate:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(0, 240, 255, 0.5),
        0 0 60px rgba(168, 85, 247, 0.4);
}

.btn-generate:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-generate .icon {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   OUTPUT ACTIONS - Neumorphic Buttons
   ============================================ */
.output-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-secondary {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 240, 255, 0.3),
        0 0 30px rgba(0, 240, 255, 0.2);
    color: var(--neon-blue);
}

.btn-secondary .icon {
    font-size: 1.2rem;
}

/* ============================================
   OUTPUT CONTENT - Dark Theme
   ============================================ */
.output-content {
    min-height: 350px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.output-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    padding: 4rem 1rem;
}

.output-placeholder .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    filter: drop-shadow(0 0 20px var(--neon-blue));
}

.output-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
    font-weight: 500;
}

.output-placeholder small {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ============================================
   LOADING - Neon Spinner
   ============================================ */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--neon-blue);
    border-right-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
    box-shadow: 
        0 0 30px var(--neon-blue),
        0 0 60px var(--neon-purple);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: white;
    font-size: 1.2rem;
    margin: 0.75rem 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.loading small {
    color: #94a3b8;
    font-size: 1rem;
}

/* ============================================
   ERROR MESSAGE - Neon Alert
   ============================================ */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(10px);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.2),
        0 0 30px rgba(239, 68, 68, 0.1);
}

.error-message .icon {
    font-size: 2rem;
    color: #ef4444;
    filter: drop-shadow(0 0 10px #ef4444);
}

.error-message p {
    color: #fca5a5;
    margin: 0;
    font-weight: 500;
}

/* ============================================
   RESULT CONTENT - Premium Display
   ============================================ */
.result-content {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats */
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 240, 255, 0.2);
    flex-wrap: wrap;
}

.stats small {
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 12px rgba(0, 240, 255, 0.3),
        0 0 20px rgba(168, 85, 247, 0.2);
    animation: glow-badge 2s ease-in-out infinite;
}

@keyframes glow-badge {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 240, 255, 0.3),
            0 0 20px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 16px rgba(0, 240, 255, 0.5),
            0 0 30px rgba(168, 85, 247, 0.4);
    }
}

/* ============================================
   NOTIFICATION TOAST - Neon
   ============================================ */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 350px;
    padding: 1.25rem 1.75rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 240, 255, 0.2);
    z-index: 10000;
    animation: slideInRight 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid var(--neon-green);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(16, 185, 129, 0.3);
}

.notification .icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 10px var(--neon-green));
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .tool-header {
        padding: 3rem 0 4rem;
    }
    
    .tool-header h1 {
        font-size: 2.25rem;
    }
    
    .tool-input, .tool-output {
        padding: 1.75rem;
    }
    
    .output-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .notification {
        min-width: auto;
        left: 20px;
        right: 20px;
    }
}

/* ============================================
   SCROLLBAR - Neon Style
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    box-shadow: 0 0 15px var(--neon-purple);
}

/* ============================================
   HOMEPAGE PREMIUM STYLES
   ============================================ */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(0, 240, 255, 0.1) 0%, 
        transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: white !important;
    text-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3);
}

.hero-subtitle {
    color: #cbd5e1 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Tool Cards on Homepage */
.tool-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(0, 240, 255, 0.05) !important;
    transition: all 0.4s ease !important;
}

.tool-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 80px rgba(0, 240, 255, 0.15) !important;
    border-color: rgba(0, 240, 255, 0.3) !important;
}

.tool-card h4,
.tool-card h3 {
    color: white !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.tool-card p {
    color: #cbd5e1 !important;
}

/* Category Titles */
.category-title {
    color: white !important;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Section Backgrounds */
section {
    background: transparent !important;
}

/* Stats Section */
.stats-section {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(20px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.1);
}

.stat-number {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 20px var(--neon-blue);
}

.stat-label {
    color: #cbd5e1 !important;
}

/* CTA Buttons */
.cta-button,
.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)) !important;
    box-shadow: 
        0 4px 15px rgba(0, 240, 255, 0.3),
        0 0 30px rgba(168, 85, 247, 0.2) !important;
}

.cta-button:hover,
.btn-primary:hover {
    box-shadow: 
        0 6px 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(168, 85, 247, 0.4) !important;
}

/* Search Bar */
.search-container input {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.search-container input::placeholder {
    color: #94a3b8 !important;
}

.search-container input:focus {
    border-color: var(--neon-blue) !important;
    box-shadow: 
        0 0 0 4px rgba(0, 240, 255, 0.1),
        0 0 20px rgba(0, 240, 255, 0.3) !important;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.form-control:focus-visible,
.btn-generate:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 3px;
}

/* Dashboard & History Pages */
.dashboard-container,
.history-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fix dashboard card backgrounds to be darker */
.dashboard-container .usage-card,
.dashboard-container .stats-card,
.dashboard-container .account-info,
.dashboard-container .usage-stats {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(15px);
}

.dashboard-header h1,
.history-header h1 {
    color: white !important;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.dashboard-header p,
.history-header p {
    color: white !important;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dashboard labels - make them clearly visible */
.dashboard-container label,
.history-container label,
.account-info label,
.usage-stats label {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Specific dashboard card text styling */
.account-info p,
.account-info div,
.usage-stats p,
.usage-stats div {
    color: white !important;
}

/* Dashboard card labels (Name:, Email:, etc.) */
.account-info p strong,
.usage-stats p strong,
.dashboard-container strong {
    color: white !important;
    font-weight: 700;
}

/* Make sure all text in dashboard cards is white */
.dashboard-container .card p,
.dashboard-container .card span,
.dashboard-container .card strong,
.dashboard-container .card div {
    color: white !important;
}

/* Style the label part before colons specifically */
.account-info p::first-line,
.usage-stats p::first-line {
    color: white !important;
    font-weight: 600;
}

/* Fix dashboard stat labels - CRITICAL FIX */
.stat-label {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.stat-value {
    color: var(--neon-blue) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Dashboard card styling override */
.dashboard-card {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.dashboard-card h3 {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Stat rows */
.stat-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Dashboard action buttons */
.btn-dashboard,
.btn-primary-dash,
.btn-secondary-dash {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary-dash {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3) !important;
}

.btn-secondary-dash {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.usage-card,
.stats-card,
.quick-action,
.history-item {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(0, 240, 255, 0.05) !important;
}

.usage-card:hover,
.quick-action:hover,
.history-item:hover {
    border-color: rgba(0, 240, 255, 0.3) !important;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 240, 255, 0.1) !important;
}

.usage-card h3,
.stats-card h3,
.quick-action h3,
.history-item h4 {
    color: white !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.usage-card p,
.stats-card p,
.quick-action p,
.history-item p {
    color: #cbd5e1 !important;
}

.usage-number,
.stat-value {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 15px var(--neon-blue);
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple)) !important;
    box-shadow: 0 0 15px var(--neon-blue);
}

/* ============================================
   COMPREHENSIVE TEXT CONTRAST FIXES
   ============================================ */

/* All text elements that might be hard to read */
body, p, span, div, label, small {
    color: inherit;
}

/* Ensure all headings are bright */
h1, h2, h3, h4, h5, h6 {
    color: white !important;
    font-weight: 600;
}

/* All labels should be white */
label, .label {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* All paragraph text in cards */
.card p, .tool-card p, .usage-card p, .stats-card p {
    color: #e2e8f0 !important;
    font-weight: 500;
}

/* User info and account details */
.account-info p,
.account-info span,
.user-info p,
.user-info span {
    color: white !important;
    font-weight: 500;
}

/* Stats and numbers */
.stat-value,
.usage-number,
.stat-number {
    color: var(--neon-blue) !important;
    font-weight: 700;
    text-shadow: 0 0 15px var(--neon-blue);
}

/* Small text should be readable */
small, .small-text {
    color: #cbd5e1 !important;
    font-weight: 500;
}

/* Form elements text */
.form-group label,
.form-control::placeholder {
    color: white !important;
}

/* Navbar specific */
nav, .navbar {
    color: white !important;
}

.navbar *, .navbar a, .navbar span {
    color: white !important;
}

/* ============================================
   CRITICAL: OVERRIDE TOOLS.CSS WHITE BACKGROUNDS
   ============================================ */

/* Force dark backgrounds on NEW tool cards */
.tool-input,
.tool-output {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* ULTRA-STRONG: Force dark backgrounds on ALL tool pages */
body.tool-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

.tool-container {
    background: transparent !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
}

/* Force dark backgrounds on OLD tool cards - MAXIMUM SPECIFICITY */
.tool-page .tool-content,
div.tool-content,
body .tool-content {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    margin-bottom: 2rem !important;
}

/* Examples section styling */
.examples-section {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
}

/* Override all headings in tool cards */
.tool-input h2,
.tool-output h2,
.tool-input h3,
.tool-output h3 {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* ULTRA-STRONG: Override ALL labels in tool pages */
.tool-page label,
.form-group label,
.tool-input label,
.tool-output label,
.input-section label,
.tool-content label,
div label,
.tool-page .input-section label,
body.tool-page label {
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Override form label icons */
.form-group label .icon {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

/* Tool page specific */
.tool-page h1, .tool-page h2, .tool-page h3 {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.tool-page p, .tool-page span, .tool-page label {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ULTRA-STRONG: All headings in tool pages */
.tool-page h3,
.tool-content h3,
.tool-section h3,
.examples-section h3,
body.tool-page h3,
div.tool-content h3 {
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.tool-page h4,
.tool-content h4,
.tool-card h4 {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Example items and suggestions - CRITICAL */
.example-item {
    color: #e2e8f0 !important;
    background: rgba(30, 41, 59, 0.4) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 0.75rem !important;
    border: 1px solid rgba(0, 240, 255, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.example-item:hover {
    color: var(--neon-blue) !important;
    background: rgba(0, 240, 255, 0.1) !important;
    border-color: var(--neon-blue) !important;
    transform: translateX(5px) !important;
}

.examples-section div {
    color: #e2e8f0 !important;
}

/* Tool container backgrounds */
.tool-container {
    background: transparent !important;
}

.tool-content {
    background: transparent !important;
}

/* Input sections in old tools */
.input-section {
    margin-bottom: 1.5rem;
}

.input-section label {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Options grid labels */
.options-grid label {
    color: white !important;
    font-weight: 600 !important;
}

/* Character counter */
.char-counter,
.character-count {
    color: #94a3b8 !important;
    font-weight: 500;
}

/* Output sections - CRITICAL OVERRIDE */
.output-section {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
}

.output-section label,
.output-box label {
    color: white !important;
    font-weight: 600 !important;
}

.output-box {
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(0, 240, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    color: #e2e8f0 !important;
    min-height: 200px !important;
    max-height: none !important;
    overflow-y: visible !important;
}

/* Ensure all generated content is visible */
#output,
.output-content {
    max-height: none !important;
    overflow: visible !important;
    
    /* Myanmar/Burmese font support */
    font-family: 'Segoe UI', 'Myanmar Text', 'Padauk', 'Pyidaungsu', Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Related tools section - ULTRA ENHANCED */
.tool-content .related-tools,
.related-tools-grid,
.related-tools,
.tools-grid {
    background: transparent !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
}

.tool-page .tool-card,
.related-tool-card,
.tool-card-small,
.tools-grid .tool-card {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-align: center !important;
}

.related-tool-card:hover,
.tool-card-small:hover {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: var(--neon-blue) !important;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2) !important;
    transform: translateY(-3px) !important;
}

.tool-page .tool-card h4,
.related-tool-card h4,
.related-tool-card h3,
.tool-card-small h4,
.tools-grid .tool-card h4 {
    color: white !important;
    font-weight: 600 !important;
    margin-top: 0.5rem !important;
}

.tool-page .tool-card p,
.related-tool-card p,
.tool-card-small p,
.tools-grid .tool-card p {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

.tool-page .tool-card .tool-icon,
.tools-grid .tool-card .tool-icon {
    font-size: 2.5rem !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

/* Textarea and select placeholders */
textarea::placeholder,
select option,
input::placeholder {
    color: #64748b !important;
}

/* ULTRA-STRONG: Output content text - ALL GENERATED CONTENT */
.output-content,
.output-box,
#output,
.output-section .output-box,
.tool-page .output-box,
body .output-box {
    color: white !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(0, 240, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    
    /* CRITICAL: Ensure Myanmar/Burmese Unicode text displays fully */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 200px !important;
}

/* All text inside output boxes */
.output-box *,
#output *,
.output-content *,
.output-section * {
    color: white !important;
    
    /* Ensure all text wraps properly (especially Myanmar/Burmese) */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
}

/* Specific elements in output */
.output-box p,
.output-box div,
.output-box span,
.output-box li,
#output p,
#output div,
#output span,
#output li {
    color: white !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    margin-bottom: 0.75rem !important;
    
    /* Critical for Myanmar/Burmese text display */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
    max-width: 100% !important;
    overflow: visible !important;
    height: auto !important;
}

/* List items in generated content */
.output-box ol,
.output-box ul,
#output ol,
#output ul,
.title-list,
.result-list {
    color: white !important;
    padding-left: 1.5rem !important;
}

.output-box ol li,
.output-box ul li,
#output ol li,
#output ul li,
.title-list li,
.result-list li {
    color: white !important;
    font-weight: 500 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.6 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.output-box ol li:hover,
.output-box ul li:hover,
#output ol li:hover,
#output ul li:hover,
.title-list li:hover,
.result-list li:hover {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: var(--neon-blue) !important;
    transform: translateX(5px) !important;
}

/* Headings in generated content */
.output-box h1,
.output-box h2,
.output-box h3,
.output-box h4,
.output-box h5,
#output h1,
#output h2,
#output h3,
#output h4,
#output h5 {
    color: white !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Strong/bold text in output */
.output-box strong,
.output-box b,
#output strong,
#output b {
    color: var(--neon-blue) !important;
    font-weight: 700 !important;
}

.output-placeholder p {
    color: #cbd5e1 !important;
}

.output-placeholder small {
    color: #94a3b8 !important;
}

/* Dashboard specific text */
.dashboard-container * {
    color: white;
}

.dashboard-container p,
.dashboard-container span:not(.badge) {
    color: #e2e8f0 !important;
    font-weight: 500;
}

/* Override any remaining light text */
.text-muted,
.text-secondary,
.text-gray {
    color: #cbd5e1 !important;
    font-weight: 500;
}

/* Ensure example text is visible */
.example, .placeholder, .hint {
    color: #94a3b8 !important;
    font-weight: 500;
    font-style: italic;
}

/* Related tools section */
.related-tools h3,
.related-tools h4,
.related-tools p {
    color: white !important;
}

/* Character count and helper text */
.character-count,
.helper-text,
.form-text {
    color: #94a3b8 !important;
    font-weight: 500;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

