/* Dark theme base styles */
html {
    font-size: 14px;
    scroll-behavior: smooth;
    position: relative;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Import professional font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    background: #0f1419;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    min-height: 100%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem 2rem;
    position: relative;
}

.main-container {
    max-width: 1800px;
    width: 100%;
    text-align: center;
}

.main-heading {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 20%, #667eea 45%, #764ba2 70%, #f093fb 100%);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    animation: gradientShift 6s ease-in-out infinite, textGlow 4s ease-in-out infinite alternate, headingFloat 8s ease-in-out infinite;
    position: relative;
    transform-style: preserve-3d;
}

    .main-heading::before {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(240, 147, 251, 0.1) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transform: translateZ(-1px) scale(1.02);
        filter: blur(1px);
        opacity: 0.7;
        z-index: -1;
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 50% 100%;
    }

    75% {
        background-position: 100% 0%;
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.2), 0 0 40px rgba(102, 126, 234, 0.1);
    }

    to {
        text-shadow: 0 0 40px rgba(102, 126, 234, 0.4), 0 0 80px rgba(118, 75, 162, 0.2);
    }
}

@keyframes headingFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }

    33% {
        transform: translateY(-8px) rotateX(2deg);
    }

    66% {
        transform: translateY(4px) rotateX(-1deg);
    }
}

/* Main heading hover effects */
.main-heading:hover {
    animation-duration: 2s, 1s, 4s;
    /* Speed up animations on hover */
    transform: scale(1.02);
    cursor: default;
}

    .main-heading:hover::before {
        opacity: 1;
        filter: blur(2px);
    }

.main-subheading {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 4rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Container */
.form-container {
    background: rgba(30, 36, 51, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 1800px;
    position: relative;
    overflow: hidden;
}

    .form-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    }

    .form-container::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
        background-size: 400% 400%;
        border-radius: 26px;
        z-index: -1;
        animation: gradientShift 8s ease infinite;
        opacity: 0.3;
        filter: blur(4px);
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }
}

.card-header-custom {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0 !important;
    padding: 2.5rem 3rem 1.5rem 3rem;
}

.card-body-custom {
    padding: 2rem 3rem;
}

.card-footer-custom {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 24px 24px !important;
    padding: 2rem 3rem 2.5rem 3rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.form-subtitle {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    color: #f1f5f9;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label-help {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.form-label-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Ensure form control text is visible */
input.form-control,
textarea.form-control {
    color: #e2e8f0 !important;
    background: rgba(15, 20, 25, 0.8) !important;
}

    input.form-control::placeholder,
    textarea.form-control::placeholder {
        color: #64748b !important;
        opacity: 1;
    }

.form-control:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 0 20px rgba(102, 126, 234, 0.2);
    background: rgba(15, 20, 25, 0.95);
    transform: scale(1.01);
}

/* Switch Component Styles */
.switch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #94a3b8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #ffffff;
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch-label {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 400;
    user-select: none;
}

.btn-generate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: none;
    letter-spacing: 0.01em;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

    .btn-generate::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-generate:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        background: linear-gradient(135deg, #7c93f0 0%, #8b5fb2 100%);
    }

        .btn-generate:hover::before {
            left: 100%;
        }

    .btn-generate:active {
        transform: translateY(0);
    }

    .btn-generate:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Loading spinner animation */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading Modal Styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .loading-modal.show {
        display: flex;
        opacity: 1;
    }

.loading-modal-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    background: rgba(30, 36, 51, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loading-spinner-large {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spinRing 2s linear infinite;
}

    .spinner-ring:nth-child(1) {
        border-top: 3px solid #667eea;
        animation-delay: 0s;
    }

    .spinner-ring:nth-child(2) {
        border-right: 3px solid #764ba2;
        animation-delay: 0.2s;
        width: 70%;
        height: 70%;
        top: 15%;
        left: 15%;
    }

    .spinner-ring:nth-child(3) {
        border-bottom: 3px solid #f093fb;
        animation-delay: 0.4s;
        width: 40%;
        height: 40%;
        top: 30%;
        left: 30%;
    }

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-title {
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-message {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 2px;
    animation: progressFlow 2s ease-in-out infinite;
}

@keyframes progressFlow {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }

    50% {
        width: 60%;
        transform: translateX(0%);
    }

    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* Form field disabled state */
.form-control:disabled {
    background: rgba(15, 20, 25, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Features section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(30, 36, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: floatCard 6s ease-in-out infinite;
}

    .feature-card:nth-child(1) {
        animation-delay: 0s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 2s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 4s;
    }

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-description {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Info Section Styles */
.info-section {
    position: relative;
    padding: 5rem 2rem;
    background: rgba(15, 20, 25, 0.3);
}

.info-container {
    max-width: 1600px;
    margin: 0 auto;
}

.info-block {
    margin-bottom: 4rem;
    text-align: center;
}

    .info-block:last-child {
        margin-bottom: 0;
    }

.info-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.info-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: rgba(30, 36, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

    .step-card:hover {
        transform: translateY(-5px);
        border-color: rgba(102, 126, 234, 0.3);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    }

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.step-description {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 36, 51, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: slideInFromLeft 0.6s ease-out;
    animation-fill-mode: both;
}

    .benefit-item:hover {
        transform: translateY(-3px);
        border-color: rgba(102, 126, 234, 0.3);
    }

    .benefit-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .benefit-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .benefit-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .benefit-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .benefit-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .benefit-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .benefit-item:nth-child(7) {
        animation-delay: 0.7s;
    }

    .benefit-item:nth-child(8) {
        animation-delay: 0.8s;
    }

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Notification System Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 400px;
    transform: translateX(100%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

    .notification.show {
        transform: translateX(0);
    }

    .notification.success {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .notification.warning {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .notification.error {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    .notification.info {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Generated Prompt Preview Styles */
.prompt-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prompt-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.prompt-preview-title {
    color: #10b981;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.prompt-copy-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .prompt-copy-btn:hover {
        background: rgba(16, 185, 129, 0.3);
        transform: translateY(-1px);
    }

    .prompt-copy-btn:active {
        transform: translateY(0);
    }

    .prompt-copy-btn.copied {
        background: rgba(16, 185, 129, 0.4);
    }

.generated-prompt-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .generated-prompt-content::-webkit-scrollbar {
        width: 6px;
    }

    .generated-prompt-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .generated-prompt-content::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.5);
        border-radius: 3px;
    }

        .generated-prompt-content::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.7);
        }

/* Prompt Details Modal */
.prompt-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.prompt-modal.show {
    opacity: 1;
}

.prompt-modal-content {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.prompt-modal.show .prompt-modal-content {
    transform: scale(1);
}

.prompt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    flex-shrink: 0;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.modal-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    line-height: 1;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.25rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.prompt-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-content-text {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(15, 20, 25, 0.4);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-context-display {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(15, 20, 25, 0.4);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 150px;
    overflow-y: auto;
}

.modal-prompt-container {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.modal-prompt-textarea {
    width: 100%;
    min-height: 250px;
    max-height: none;
    height: 350px;
    resize: vertical;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    background: transparent;
    border: none;
    padding: 1rem;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
}

.modal-prompt-textarea:focus {
    outline: 2px solid rgba(102, 126, 234, 0.3);
    outline-offset: -2px;
}

.modal-prompt-text {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    margin: 0;
    padding: 1.5rem;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    background: transparent;
    border: none;
    max-height: 400px;
    overflow-y: auto;
}

.prompt-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 20, 25, 0.3);
    flex-shrink: 0;
}

.btn-modal-copy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-modal-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-modal-copy.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modal-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive adjustments for community section and modal */
@media (max-width: 1024px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .community-card {
        height: auto;
        min-height: 180px;
    }    .prompt-modal-content {
        width: 98%;
        max-width: none;
        margin: 0.5rem;
        max-height: 90vh;
    }
      .prompt-modal-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .modal-controls {
        align-self: flex-end;
    }    .prompt-modal-body {
        padding: 1rem;
        flex: 1;
        min-height: 0;
    }
    
    .modal-prompt-textarea {
        min-height: 300px;
        max-height: 400px;
    }
      .prompt-modal-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn-modal-copy {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .community-section {
        padding: 2rem 1rem;
    }
    
    .community-card {
        padding: 1rem;
        height: auto;
        min-height: 160px;
    }
    
    .community-title {
        font-size: 0.9rem;
    }
    
    .prompt-modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-height: 100vh;
        margin: 0;
    }
    
    .prompt-modal-body {
        max-height: 80vh;
    }
    
    .modal-prompt-textarea {
        min-height: 250px;
        max-height: 300px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Dark theme navbar */
.navbar {
    background-color: #1f2937 !important;
    border-bottom: 1px solid #374151 !important;
}

.navbar-brand {
    color: #f9fafb !important;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: #d1d5db !important;
}

    .navbar-nav .nav-link:hover {
        color: #f9fafb !important;
    }

/* Dark theme footer */
.footer {
    background-color: #1f2937 !important;
    border-top: 1px solid #374151 !important;
    color: #9ca3af !important;
}

    .footer a {
        color: #60a5fa !important;
    }

/* Site Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    position: relative;
    animation: fadeInUp 1s ease 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    color: #e2e8f0;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    max-width: 300px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-nav li {
        margin-bottom: 0.5rem;
    }

    .footer-nav a {
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        display: block;
        padding: 0.25rem 0;
    }

        .footer-nav a:hover {
            color: #667eea;
            transform: translateX(4px);
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.footer-tagline {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Footer responsive styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-container {
        padding: 2rem 1rem 1rem 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .footer-brand .footer-logo {
        justify-content: center;
        text-align: center;
    }

    .footer-description {
        text-align: center;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Enhanced Visual Effects */

/* Glow effect for main container */
/* .form-container::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
  background-size: 400% 400%;
  border-radius: 26px;
  z-index: -1;
  animation: gradientShift 8s ease infinite;
  opacity: 0.3;
  filter: blur(4px);
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
} */

/* Enhanced button hover effects */
/* .btn-generate::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-generate {
  position: relative;
  overflow: hidden;
}

.btn-generate:hover::before {
  left: 100%;
} */

/* Floating animation for feature cards */
/* .feature-card {
  animation: floatCard 6s ease-in-out infinite;
}

.feature-card:nth-child(1) {
  animation-delay: 0s;
}

.feature-card:nth-child(2) {
  animation-delay: 2s;
}

.feature-card:nth-child(3) {
  animation-delay: 4s;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
} */

/* Pulse animation for step numbers */
/* .step-number {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
  }
} */

/* Enhanced form focus effects */
.form-group {
    position: relative;
}

.field-focused .form-label {
    color: #667eea;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.field-focused .form-label-help {
    color: #a5b4fc;
    transition: all 0.3s ease;
}

/* Enhanced loading state for button */
.btn-generate.loading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientLoading 2s ease infinite;
}

@keyframes gradientLoading {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Improved notification animations */
.notification {
    transform: translateX(400px) scale(0.8);
    opacity: 0;
}

    .notification.show {
        transform: translateX(0) scale(1);
        opacity: 1;
        animation: notificationBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

@keyframes notificationBounce {
    0% {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }

    60% {
        transform: translateX(-20px) scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Enhanced footer animation */

/* Loading Modal Responsive Styles */
@media (max-width: 768px) {
    .loading-modal-content {
        max-width: 90%;
        padding: 1.5rem;
        margin: 0 1rem;
        border-radius: 16px;
    }

    .loading-spinner-large {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem auto;
    }

    .loading-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .loading-message {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .loading-progress {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .loading-modal-content {
        max-width: 95%;
        padding: 1.25rem;
        margin: 0 0.5rem;
        border-radius: 12px;
    }

    .loading-spinner-large {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.75rem auto;
    }

    .loading-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .loading-message {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .loading-progress {
        height: 2px;
    }

    .spinner-ring {
        border-width: 2px;
    }

        .spinner-ring:nth-child(2) {
            border-width: 2px;
        }

        .spinner-ring:nth-child(3) {
            border-width: 2px;
        }
}

/* Fix BMC widget to bottom right, offset from reCAPTCHA */
/*.bmc-btn-container,
#bmc-wbtn,
.bmc-button {
    position: fixed !important;
    bottom: 18px !important;
    right: 18px !important;
    z-index: 9999 !important;
    transform: none !important;
}*/

/* Ensure BMC widget stays fixed even with reCAPTCHA */
/*.grecaptcha-badge {
    bottom: 14px !important;
    right: 14px !important;
    opacity: 0.7 !important;
    z-index: 9998 !important;
}*/

/* Move BMC widget higher when reCAPTCHA is present - more specific selector */
/*body .bmc-btn-container,
body #bmc-wbtn {
    bottom: 85px !important;
    transition: bottom 0.3s ease !important;
}*/

/* Force BMC widget positioning after it loads */
/*.bmc-btn-container[style],
#bmc-wbtn[style] {
    position: fixed !important;
    bottom: 85px !important;
    right: 18px !important;
    top: auto !important;
    left: auto !important;
}*/

/* Community Shared Prompts Section */
.community-section {
    background: rgba(15, 20, 25, 0.6);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.community-header {
    text-align: center;
    margin-bottom: 3rem;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.community-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.community-card:hover::before {
    opacity: 1;
}

.community-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.community-purpose {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.community-icon {
    font-size: 1rem;
    padding: 0.375rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
}

.community-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.3;    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-date {
    text-align: right;
    flex-shrink: 0;
}

.date-text {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(15, 20, 25, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}

.community-card-body {
    flex: 1;
    margin-bottom: 1rem;
}

.community-context {
    margin-bottom: 0;
}

.context-text {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.view-details {
    font-size: 0.75rem;
    color: #667eea;
    opacity: 0.8;
}

.community-card:hover .view-details {
    opacity: 1;
}

.research-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(240, 147, 251, 0.2);
    color: #f093fb;
    border-radius: 12px;
    font-weight: 500;
}

.community-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.community-note {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments for community section */
@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .community-card {
        padding: 1.25rem;
    }
    
    .community-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .community-date {
        text-align: left;
    }
    
    .community-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .btn-copy {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .community-section {
        padding: 2rem 1rem;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .community-card {
        padding: 1rem;
        height: auto;
        min-height: 160px;
    }
    
    .community-title {
        font-size: 0.9rem;
    }
      .prompt-modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .prompt-modal-body {
        flex: 1;
        min-height: 0;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}
