/* ===== PROJECT GENERATOR - BUTTON & HEADER IMPROVEMENTS ===== */

/* Hide sidebar */
.project-generator-unique-content .sidebar {
    display: none !important;
}

/* Header Controls - Improved Styling */
.header-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: 14px;
    color: #e7e9ea;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.icon-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.15));
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.icon-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.icon-btn i {
    font-size: 18px;
}

/* Generate Button - Primary Action */
.generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 32px;
    margin-top: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.6);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    white-space: nowrap;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.generate-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.generate-btn i {
    font-size: 18px;
}

/* Additional Action Buttons for Project Generator */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #e7e9ea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.action-btn i {
    font-size: 16px;
}

/* Download Button */
.download-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
    border-color: #10b981;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

/* Share Button */
.share-btn {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.1));
    border-color: rgba(168, 85, 247, 0.4);
    color: #a855f7;
}

.share-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.15));
    border-color: #a855f7;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.2);
}

/* Modal Improvements */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 65, 0.95), rgba(20, 25, 70, 0.95));
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1.5px solid rgba(59, 130, 246, 0.2);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.close-modal {
    background: transparent;
    border: none;
    color: #e7e9ea;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 24px;
}

.template-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.template-card:hover {
    background: rgba(31, 41, 55, 0.8);
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.template-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.template-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.template-card p {
    font-size: 13px;
    color: #9ca3af;
}

/* Options Grid Enhancement */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    font-size: 14px;
    font-weight: 600;
    color: #e7e9ea;
    margin-bottom: 8px;
}

.option-group select {
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: #e7e9ea;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-group select:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.option-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Features Grid */
.features-section {
    margin: 24px 0;
}

.features-section > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e7e9ea;
    margin-bottom: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-checkbox:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.feature-checkbox input[type="checkbox"] {
    cursor: pointer;
    accent-color: #3b82f6;
}

.feature-checkbox span {
    color: #e7e9ea;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
    }

    .icon-btn {
        width: 100%;
    }

    .generate-btn {
        padding: 12px 20px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-content {
        max-width: 95vw;
    }
}

@media (max-width: 500px) {
    .header-controls {
        gap: 8px;
    }

    .icon-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .generate-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
