/* /assets/css/style.css - KOMPLETT NEU GESCHRIEBEN */

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #f5f5f5;
    min-height: 100vh;
    width: 1920px;
    margin: 0 auto;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(229, 219, 193, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(229, 219, 193, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 219, 193, 0.1);
    padding: 24px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #e5dbc1;
    letter-spacing: -0.5px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 8px;
}

.nav-item {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(229, 219, 193, 0.15);
    border-radius: 12px;
    color: rgba(245, 245, 245, 0.8);
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.nav-item:hover {
    background: rgba(229, 219, 193, 0.1);
    border-color: rgba(229, 219, 193, 0.25);
    color: #e5dbc1;
    transform: translateY(-1px);
}

.nav-item.active {
    background: rgba(229, 219, 193, 0.15);
    border-color: rgba(229, 219, 193, 0.3);
    color: #e5dbc1;
}

/* Container */
.container {
    padding: 40px;
    max-width: 1840px;
    margin: 0 auto;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

/* Form Styles */
.form-section {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 32px;
    border: 1px solid rgba(229, 219, 193, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #e5dbc1;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: rgba(229, 219, 193, 0.9);
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(15, 15, 15, 0.8);
    border: 1.5px solid rgba(229, 219, 193, 0.15);
    border-radius: 16px;
    color: #f5f5f5;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s ease;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: rgba(229, 219, 193, 0.4);
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 0 0 4px rgba(229, 219, 193, 0.1);
}

.form-input::placeholder {
    color: rgba(245, 245, 245, 0.4);
}

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

/* Checkbox Styles */
.style-checkboxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(15, 15, 15, 0.6);
    border: 1.5px solid rgba(229, 219, 193, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.checkbox-group:hover {
    background: rgba(229, 219, 193, 0.08);
    border-color: rgba(229, 219, 193, 0.2);
    transform: translateY(-1px);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e5dbc1;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    color: rgba(245, 245, 245, 0.8);
    font-weight: 500;
    font-size: 14px;
}

.checkbox-group:has(input:checked) {
    background: rgba(229, 219, 193, 0.12);
    border-color: rgba(229, 219, 193, 0.3);
}

/* Button */
.generate-btn {
    width: auto;
    padding: 20px 48px;
    background: linear-gradient(135deg, rgba(229, 219, 193, 0.9) 0%, rgba(229, 219, 193, 0.7) 100%);
    border: none;
    border-radius: 16px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 30px rgba(229, 219, 193, 0.2);
    backdrop-filter: blur(10px);
}

.generate-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(229, 219, 193, 1) 0%, rgba(229, 219, 193, 0.8) 100%);
    box-shadow: 0 15px 40px rgba(229, 219, 193, 0.3);
}

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

.generate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: rgba(100, 100, 100, 0.3);
}

/* Progress */
.progress-section {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid rgba(229, 219, 193, 0.1);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
    border: 1px solid rgba(229, 219, 193, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(229, 219, 193, 0.8), rgba(229, 219, 193, 1));
    border-radius: 12px;
    transition: width 0.6s ease;
    width: 0%;
    box-shadow: 0 0 20px rgba(229, 219, 193, 0.3);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    aspect-ratio: 1;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* PROJECTS GRID - KOMPLETT NEU */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* PROJEKT KARTE - SIMPLE STRUKTUR */
.project-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

/* DELETE BUTTON - ABSOLUT POSITIONIERT */
.project-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.project-card:hover .project-delete-btn {
    display: flex;
}

.project-delete-btn:hover {
    background: rgba(255, 68, 68, 1);
    transform: scale(1.1);
}

/* BILDER BEREICH - OBEN */
.project-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    height: 80px;
    margin-bottom: 12px;
}

.project-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: #111;
}

.project-images .empty-slot {
    background: #111;
    border-radius: 4px;
}

/* TEXT BEREICH - UNTEN */
.project-text {
    color: #fff;
}

.project-text h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-text .project-info {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.status-created { background-color: #ffa500; }
.status-generating_prompts { background-color: #00bfff; animation: pulse 2s infinite; }
.status-generating_images { background-color: #00bfff; animation: pulse 2s infinite; }
.status-completed { background-color: #32cd32; }
.status-error { background-color: #ff4444; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid rgba(229, 219, 193, 0.1);
    border-top: 3px solid rgba(229, 219, 193, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1.2s linear infinite;
    margin: 24px auto;
}

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

/* Delete Modal */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.delete-modal.active {
    display: flex;
}

.delete-modal-content {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(229, 219, 193, 0.2);
}

.delete-modal h3 {
    color: #e5dbc1;
    font-size: 24px;
    margin-bottom: 16px;
}

.delete-modal p {
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 30px;
    line-height: 1.5;
}

.delete-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.delete-confirm-btn {
    padding: 12px 24px;
    background: rgba(255, 68, 68, 0.8);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-confirm-btn:hover {
    background: rgba(255, 68, 68, 1);
}

.delete-cancel-btn {
    padding: 12px 24px;
    background: rgba(100, 100, 100, 0.3);
    border: none;
    border-radius: 12px;
    color: #f5f5f5;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-cancel-btn:hover {
    background: rgba(100, 100, 100, 0.5);
}