/* Main Container */
.asa-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Header */
.asa-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.asa-header h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
}

.asa-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Tabs */
.asa-tabs {
    display: flex;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.asa-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.asa-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.asa-tab.active {
    background: #ffffff;
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Content Area */
.asa-content-area {
    padding: 30px;
}

.asa-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.asa-panel.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.asa-form-group {
    margin-bottom: 20px;
}

.asa-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.95rem;
}

.asa-form-group input,
.asa-form-group select,
.asa-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.asa-form-group input:focus,
.asa-form-group select:focus,
.asa-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.asa-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Button */
.asa-btn-generate {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.asa-btn-generate:hover {
    background: #1d4ed8;
}

.asa-btn-generate:active {
    transform: translateY(1px);
}

/* Output Area */
.asa-output-container {
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.asa-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.asa-output-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.asa-btn-copy {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    transition: all 0.2s;
}

.asa-btn-copy:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.asa-output-content {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
    /* Preserve formatting */
}

/* Loading Spinner */
.asa-loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}