/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #6b46c1, #805ad5, #b83280);
    color: white;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 100vh;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header Styles */
.header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, white, #e9d8fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p {
    font-size: 1.125rem;
    color: rgba(237, 233, 254, 0.8);
}

/* Main Content */
.main-content {
    padding: 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(126, 34, 206, 0.2);
    color: rgb(233, 216, 253);
}

.tab-button:hover {
    background: rgba(126, 34, 206, 0.3);
}

.tab-button.active {
    background: rgba(126, 34, 206, 0.3);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(126, 34, 206, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Input Form */
.input-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-container textarea,
.input-container input {
    width: 100%;
    padding: 1rem;
    background: rgba(88, 28, 135, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-container textarea {
    height: 10rem;
    resize: vertical;
}

.input-container textarea:focus,
.input-container input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
}

.input-container textarea::placeholder,
.input-container input::placeholder {
    color: rgba(237, 233, 254, 0.5);
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(to right, #7c3aed, #c026d3);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-button:hover {
    background: linear-gradient(to right, #6d28d9, #a21caf);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Loader */
.loader {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Output Section */
.output-section {
    margin-top: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(126, 34, 206, 0.2);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.output-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.chevron-down {
    opacity: 0.8;
}

.output-content {
    background: rgba(88, 28, 135, 0.3);
    padding: 1.5rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-top: none;
}

#output {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 0.875rem;
    color: rgb(237, 233, 254);
}

/* Error Section */
.error-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 0.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.error-section h2 {
    color: rgb(254, 202, 202);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.error-section p {
    color: rgb(254, 226, 226);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
