:root {
    --primary-color: #00ff88;
    --secondary-color: #00ccff;
    --background-color: #001a1a;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--background-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.input-group {
    margin: 1rem 0;
}

textarea, input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--text-color);
    margin-top: 0.5rem;
}

select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--text-color);
    margin-top: 0.5rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ff88' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.8rem center;
    padding-left: 2.5rem;
}

select option {
    background: var(--background-color);
    color: var(--text-color);
}

#size-select {
    margin-bottom: 1rem;
}

.glow-btn {
    background: var(--primary-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.glow-btn:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-2px);
}

.result-container {
    margin-top: 2rem;
    min-height: 200px;
    border: 2px dashed var(--primary-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.result-container .loading {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-align: center;
}

.result-container .error {
    color: #ff4444;
    text-align: center;
    padding: 1rem;
}

.generated-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 5px;
    object-fit: contain;
}

.language-switcher {
    position: fixed;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--background-color);
}

html[dir="ltr"] {
    text-align: left;
}

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