/**
 * 🎨 Modal Components
 * Styling für alle Modals (Login, Profil, Galerie, Kamera)
 */

/* ═══════════════════════════════════════════════════════════
   MODAL OVERLAY (Basis für alle Modals)
   ═══════════════════════════════════════════════════════════ */

.glass-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    display: grid;
    place-items: center;
}

.glass-content-box {
    position: relative;
    z-index: 100;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    min-width: 350px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
}

.glass-body {
    position: relative;
    z-index: 50;
    pointer-events: auto;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
    color: #fff;
}

.glass-body::-webkit-scrollbar { 
    width: 6px; 
}

.glass-body::-webkit-scrollbar-thumb { 
    background: rgba(255,255,255,0.2); 
    border-radius: 10px; 
}

/* ═══════════════════════════════════════════════════════════
   MODAL TASKBAR
   ═══════════════════════════════════════════════════════════ */

.modal-taskbar {
    position: sticky;
    top: -20px;
    z-index: 100000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    margin: -20px -20px 20px -20px;
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.taskbar-title { 
    pointer-events: auto;
    color: #fff; 
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.taskbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Kamera-Button */
.taskbar-camera-btn {
    pointer-events: auto;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(1.2);
}

.taskbar-camera-btn:hover {
    filter: grayscale(0%) brightness(1.5);
    transform: scale(1.15);
}

/* Close-Button */
.glass-close-btn {
    pointer-events: auto;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
}

.glass-close-btn:hover { 
    color: #ff4444; 
}

/* ═══════════════════════════════════════════════════════════
   GALERIE-SPEZIFISCH
   ═══════════════════════════════════════════════════════════ */

.gallery-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.gallery-item {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   FORMULAR-ELEMENTE
   ═══════════════════════════════════════════════════════════ */

.display-box {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: bold;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

/* ═══════════════════════════════════════════════════════════
   KAMERA-MODAL (Phase 2)
   ═══════════════════════════════════════════════════════════ */

.camera-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.camera-info {
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.camera-preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.camera-btn {
    flex: 1;
    max-width: 200px;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.camera-btn-capture {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.15);
}

.camera-btn-capture:hover {
    background: rgba(0, 255, 204, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.camera-btn-cancel {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
}

.camera-btn-cancel:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: translateY(-3px);
}

.camera-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .camera-container {
        max-width: 100%;
    }
    
    .camera-actions {
        flex-direction: column;
    }
    
    .camera-btn {
        max-width: 100%;
    }
}