:root {
    --bg-color: #0b1622;
    --primary-color: #38b6ff;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
    --hover-color: #2da1e6;
    --font-family: 'Inter', sans-serif;
    --radius: 12px;
    --transition: all 0.3s ease;
}

body.light-theme {
    --bg-color: #f0f4f8;
    --text-color: #0b1622;
    --card-bg: rgba(255, 255, 255, 0.8);
    --input-bg: #e1e8ed;
    --input-border: #cbd5e0;
}

body.light-theme .tab-btn {
    color: #555;
}

body.light-theme label {
    color: #333;
}

body.light-theme .prefix {
    color: #666;
}

body.light-theme input,
body.light-theme textarea {
    color: #0b1622;
}

body.light-theme .result-box input {
    background: #dde1e5;
}

body.light-theme .btn-copy {
    background: rgba(0, 0, 0, 0.1);
    color: #0b1622;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-copy:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    width: 100%;
}

.theme-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

body.light-theme .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: rotate(15deg);
    background: rgba(255, 255, 255, 0.1);
}

body.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.light-theme .sun-icon {
    display: block;
}

body.light-theme .moon-icon {
    display: none;
}


.logo-container {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 2rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card & Tabs */
.generator-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    padding: 5px;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(56, 182, 255, 0.3);
}

/* Inputs */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.prefix {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

input,
textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input {
    padding-left: 2.5rem;
    /* Space for prefix */
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(56, 182, 255, 0.05);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn-generate {
    width: 100%;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-generate:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 182, 255, 0.2);
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
}

.result-section.hidden {
    display: none;
}

.result-box {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

.result-box input {
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
    font-family: monospace;
    cursor: text;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast.hidden {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .generator-card {
        padding: 1.5rem;
    }
}