:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --neon: #06f7f7;
    --neon-pink: #ff2a6d;
    --dark: #0f172a;
    --darker: #0a0e1a;
    --light: #1e293b;
    --lighter: #334155;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --border: #475569;
    --card-bg: rgba(30, 41, 59, 0.8);
    --header-bg: rgba(15, 23, 42, 0.95);
    --footer-bg: #0f172a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --neon-gradient: linear-gradient(45deg, #ff2a6d, #06f7f7, #63e2ff);
    --glass: rgba(30, 41, 59, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.light-mode {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --neon: #06f7f7;
    --neon-pink: #ff2a6d;
    --dark: #f1f5f9;
    --darker: #e2e8f0;
    --light: #ffffff;
    --lighter: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f1f5f9;
    --shadow: 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);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --neon-gradient: linear-gradient(45deg, #ff2a6d, #06f7f7, #63e2ff);
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(17, 24, 39, 0.7) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(17, 24, 39, 0.7) 0%, transparent 25%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text);
}

a {
    text-decoration: none;
    color: var(--neon);
    transition: color 0.3s;
}

a:hover {
    color: var(--neon-pink);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(6, 247, 247, 0.5);
}

.logo h1 {
    font-size: 22px;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--neon);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    top: 35px;
    left: 0;
    border: 1px solid var(--glass-border);
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: var(--light);
    color: var(--neon);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.language-selector, .theme-toggle {
    position: relative;
}

.lang-btn, .toggle-btn {
    background: var(--light);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.lang-btn:hover, .toggle-btn:hover {
    background: var(--lighter);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

/* Main Content */
.main-container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 25px;
    padding: 30px 0;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--neon-gradient);
    opacity: 0.7;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--neon);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--neon);
    transform: translateX(5px);
}

.sidebar a.active {
    background: rgba(6, 247, 247, 0.1);
    border-left: 3px solid var(--neon);
    color: var(--neon);
}

.sidebar a i {
    width: 20px;
    text-align: center;
    color: var(--neon);
}

.ads {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid var(--glass-border);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ads p {
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 12px;
}

/* Content */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.hero-section p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

#inputText {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
    background: rgba(30, 41, 59, 0.5);
    color: var(--text);
    transition: all 0.3s;
}

#inputText:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 10px rgba(6, 247, 247, 0.3);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::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: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--light);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--lighter);
    transform: translateY(-2px);
}

.fancy-text-results h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--neon);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.style-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.style-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.style-card h4 {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.style-card h4 span {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-light);
}

.style-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.style-output {
    flex: 1;
    padding: 15px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 18px;
    min-height: 60px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    font-family: 'Montserrat', sans-serif;
}

.style-actions {
    display: flex;
    gap: 10px;
}

.style-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: var(--light);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.style-btn:hover {
    background: var(--lighter);
}

.style-btn-primary {
    background: var(--primary);
    color: white;
}

.style-btn-primary:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 40px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--neon);
    margin-bottom: 20px;
    font-size: 18px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--neon);
}

.footer-section a i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-light);
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: var(--neon);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--light);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    animation: toast-in 0.3s ease-out;
    border-left: 4px solid var(--neon);
}

@keyframes toast-in {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* AI-specific enhancements */
.ai-badge {
    display: inline-block;
    background: var(--neon-gradient);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.ai-suggestion {
    background: rgba(6, 247, 247, 0.1);
    border-left: 4px solid var(--neon);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.ai-suggestion h4 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--neon);
}

.ai-suggestion h4 i {
    margin-right: 10px;
    color: var(--neon);
}

.style-card .ai-style {
    border-left: 4px solid var(--neon);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Futuristic elements */
.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 247, 247, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.glow-1 {
    top: -150px;
    right: -150px;
}

.glow-2 {
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(255, 42, 109, 0.2) 0%, transparent 70%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 200px 1fr;
    }
    
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .lang-btn, .toggle-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 99;
        border-top: 1px solid var(--glass-border);
        gap: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
    
    .sidebar {
        position: static;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .ads {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 24px;
    }
    
    .card {
        padding: 15px;
    }
    
    .style-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .style-actions {
        justify-content: center;
    }
    
    .ads {
        min-height: 150px;
    }
}