/* Task2MTP AI - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Container background overlay */
.container {
    position: relative;
    z-index: 1;
}

.gradient-text {
    color: #ffffff;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

/* Header styling */
.header-container {
    position: relative;
    z-index: 2;
}

.header-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-subtitle {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 24px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Professional Section Titles - 3 Color Palette */
.section-title {
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    font-weight: 700;
}

/* Setup section - Blue (Primary) */
.setup-title {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.setup-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Results section - Emerald (Secondary) */
.results-title {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.results-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(59, 130, 246, 0.2); /* Blue border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.main-card:hover::before {
    left: 100%;
}

.main-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.7);
    border-color: rgba(59, 130, 246, 0.4);
}

.loader {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #a855f7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Professional Output Container */
#output-container {
    background: rgba(248, 250, 252, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(16, 185, 129, 0.2) !important; /* Emerald border */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    position: relative;
    overflow: hidden;
}

#output-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #10b981); /* Emerald-Blue gradient */
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

#output-content {
    position: relative;
    z-index: 1;
}

/* Professional Exercise Output Styling */

/* Exercise sections */
#output-content .exercise-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Listening transcript */
#output-content .listening-transcript {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

#output-content .listening-transcript::before {
    content: '🎧 LISTENING TRANSCRIPT';
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Questions */
#output-content .question {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #3b82f6;
    transition: all 0.3s ease;
}

#output-content .question:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Options */
#output-content .options {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

#output-content .options div {
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#output-content .options div:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Answer key */
#output-content .answer-key {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 95, 70, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

#output-content .answer-key::before {
    content: '✅ ANSWER KEY';
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Answer key items */
#output-content .answer-key .answer-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #10b981;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#output-content .answer-key .answer-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

#output-content .answer-key .answer-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#output-content .answer-key .answer-choice {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

#output-content .answer-key .answer-explanation {
    color: #64748b;
    font-style: italic;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

#output-content .answer-key .section-title {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
    padding-bottom: 0.25rem;
}

/* Headers */
#output-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

#output-content h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 2px;
}

#output-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Lists */
#output-content ol, #output-content ul {
    padding-left: 0;
    list-style: none;
}

#output-content ol li {
    counter-increment: question-counter;
    position: relative;
    margin-bottom: 1rem;
}

#output-content ol li::before {
    content: counter(question-counter) ".";
    position: absolute;
    left: -30px;
    top: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Answer key specific list styling */
#output-content .answer-key ol {
    padding-left: 0;
    list-style: none;
    counter-reset: none;
}

#output-content .answer-key ol li {
    counter-increment: none;
    position: relative;
    margin-bottom: 0;
    padding: 0;
}

#output-content .answer-key ol li::before {
    display: none;
}

#output-content ol {
    counter-reset: question-counter;
    padding-left: 40px;
}

/* Text styling */
#output-content strong {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

#output-content em {
    color: #64748b;
    font-style: italic;
}

#output-content p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.modal-overlay {
    transition: opacity 0.3s ease;
}

.modal-content {
    transition: transform 0.3s ease;
}

/* Top action buttons styling */
.top-action-buttons {
    position: relative;
    z-index: 10;
}

.guide-button {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #4a5568 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.guide-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.guide-button:hover::before {
    left: 100%;
}

.guide-button:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Back to Apps button - Blue variant */
.guide-button[href*="edtechcorner.com"] {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(59, 130, 246, 0.6) !important;
    color: #1e40af !important;
    text-decoration: none;
    font-weight: 600;
}

.guide-button[href*="edtechcorner.com"]:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(59, 130, 246, 0.8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
    color: #1e40af !important;
    text-decoration: none;
}

/* Ensure no underline for all guide buttons */
.guide-button, .guide-button:hover, .guide-button:focus, .guide-button:visited {
    text-decoration: none !important;
}

/* Professional API Key Button */
.api-key-button {
    /* Disconnected state - Solid orange tone with white text */
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.9) 0%, rgba(249, 115, 22, 0.9) 100%);
    border: 2px solid rgba(251, 146, 60, 1);
    color: white; /* White text for better visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Shadow for better contrast */
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
    position: relative;
    overflow: hidden;
}

.api-key-button::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: left 0.5s;
}

.api-key-button:hover::before {
    left: 100%;
}

.api-key-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(251, 146, 60, 1) 0%, rgba(249, 115, 22, 1) 100%);
    border-color: rgba(251, 146, 60, 1);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.5);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.api-key-button.connected {
    /* Connected state - Solid green tone with white text */
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
    border: 2px solid rgba(34, 197, 94, 1);
    color: white; /* White text for better visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Shadow for better contrast */
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.api-key-button.connected:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
    border-color: rgba(34, 197, 94, 1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Floating API Panel Styles */
.api-key-floating-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    /* Gentle background with good contrast */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2rem;
    color: #1f2937; /* Dark gray text for good contrast */
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.api-key-floating-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.api-key-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.api-key-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* API Key Section Styles (for floating panel) */
.api-key-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    color: white;
}

.api-key-input {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #1f2937; /* Dark gray text */
    backdrop-filter: blur(10px);
}

.api-key-input::placeholder {
    color: rgba(75, 85, 99, 0.7); /* Gray placeholder */
}

.api-key-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.6);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.api-status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-status-connected {
    background-color: rgba(34, 197, 94, 0.15);
    color: #15803d; /* Dark green text */
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.api-status-disconnected {
    background-color: rgba(239, 68, 68, 0.15);
    color: #dc2626; /* Red text */
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Toggle Password Visibility */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(75, 85, 99, 0.7); /* Gray color */
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #374151; /* Darker gray */
}

/* Panel text colors for good contrast */
.api-key-floating-panel h3 {
    color: #1f2937 !important; /* Dark gray */
}

.api-key-floating-panel p {
    color: #4b5563 !important; /* Medium gray */
}

/* Panel buttons styling */
.api-key-floating-panel button:not(.password-toggle) {
    color: #1f2937 !important; /* Dark text for better contrast */
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
}

.api-key-floating-panel button:not(.password-toggle):hover {
    border-color: rgba(59, 130, 246, 0.6) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

.api-key-floating-panel button:not(.password-toggle):active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Specific button colors */
.api-key-floating-panel #save-api-key-btn {
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #15803d !important;
}

.api-key-floating-panel #save-api-key-btn:hover {
    border-color: rgba(34, 197, 94, 0.7) !important;
    background: rgba(34, 197, 94, 0.05) !important;
}

.api-key-floating-panel #test-api-key-btn {
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #1e40af !important;
}

.api-key-floating-panel #test-api-key-btn:hover {
    border-color: rgba(59, 130, 246, 0.7) !important;
    background: rgba(59, 130, 246, 0.05) !important;
}

.api-key-floating-panel #remove-api-key-btn {
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #dc2626 !important;
}

.api-key-floating-panel #remove-api-key-btn:hover {
    border-color: rgba(239, 68, 68, 0.7) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* Professional Form Elements */
textarea, input, select {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(100, 116, 139, 0.2) !important; /* Slate border */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

textarea:focus, input:focus, select:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(59, 130, 246, 0.6) !important; /* Blue focus */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-1px);
}

/* Professional Labels - 3 Color Palette */
label {
    font-weight: 600 !important;
    color: #475569 !important; /* Slate-600 for good contrast */
    position: relative;
}

/* Primary labels - Blue gradient */
label[for="template-input"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Secondary labels - Emerald gradient */
label[for="content-input"] {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Neutral labels - Slate (high contrast) */
label[for="difficulty-select"], label[for="quantity-input"] {
    color: #1e293b !important; /* Slate-800 for maximum contrast */
    font-weight: 700 !important;
}

/* Default labels - Slate */
label:not([for="template-input"]):not([for="content-input"]):not([for="difficulty-select"]):not([for="quantity-input"]) {
    color: #475569 !important; /* Slate-600 */
}

/* Enhanced buttons */
.btn-primary, button[class*="bg-gradient"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-primary::before, button[class*="bg-gradient"]::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: left 0.5s;
}

.btn-primary:hover::before, button[class*="bg-gradient"]:hover::before {
    left: 100%;
}

.btn-primary:hover, button[class*="bg-gradient"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4) !important;
}

.btn-primary:disabled, button[class*="bg-gradient"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Professional Action Buttons - 3 Color Palette */

/* Copy button - Blue (Primary) */
#copy-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
}

#copy-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4) !important;
}

/* Download button - Emerald (Secondary) */
#download-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
}

#download-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Main generate button - Blue Primary (Strong) */
button[class*="bg-gradient"]:not(#copy-btn):not(#download-btn) {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

button[class*="bg-gradient"]:not(#copy-btn):not(#download-btn):hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4) !important;
}

/* Footer styling */
footer {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-top: 2rem;
}

footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Video Guide Links Styling */
.video-guide-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    margin-top: 8px;
    gap: 4px;
}

.video-guide-link:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.video-guide-link-note {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    gap: 4px;
}

.video-guide-link-note:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.video-guide-link-panel {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid rgba(239, 68, 68, 0.3);
    gap: 6px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.video-guide-link-panel:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    color: white !important;
    text-decoration: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .api-key-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .main-card {
        padding: 1rem;
    }
    
    .main-card:hover {
        transform: translateY(-4px);
    }
    
    body::before {
        animation: float 15s ease-in-out infinite;
    }
    
    .header-title {
        font-size: 2.5rem !important;
    }
    
    .header-subtitle {
        margin: 0 1rem;
        padding: 8px 16px;
    }
}
