:root {
    --primary-color: #0f172a;
    --accent-color: #374151; /* Anthrazit */
    --text-light: #374151;
    --text-dark: #1f2937;
    --glass-bg: rgba(255, 255, 255, 0.35); /* Helles Glasmorphismus, transparenter */
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
}

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

body, html {
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-color);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background Slideshow */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Langsamer Zoom-Effekt (Ken Burns) für mehr Dynamik */
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Etwas dunklerer Verlauf, damit helle Bildbereiche die weiße Schrift nicht überblenden */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 100%);
    z-index: 1;
}

/* Main Content Layout */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px;
    position: relative;
    z-index: 2;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    max-width: 680px;
    width: 100%;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Einflug-Animation beim Laden */
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px);
    opacity: 0;
}

.specialization {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Coming Soon & Countdown */
.coming-soon-container {
    margin: 1.2rem 0 0.8rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.coming-soon-badge {
    background: rgba(30, 41, 59, 0.85);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.countdown-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 440px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.8);
}

.countdown-number {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #4b5563;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* UGP Disclaimer Box (Compact) */
.disclaimer-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 3px solid #d97706;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0.9rem 0;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.disclaimer-box.compact .disclaimer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.disclaimer-box.compact .warning-icon {
    font-size: 0.95rem;
}

.disclaimer-box.compact .disclaimer-text {
    font-size: 0.76rem;
    line-height: 1.45;
    color: #374151;
    margin-bottom: 0;
}

/* Logo */
.logo-container {
    background: transparent; 
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    /* Macht den weißen Hintergrund des Logos transparent und färbt das Schwarz weicher */
    mix-blend-mode: multiply;
    opacity: 0.85;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container:hover {
    transform: scale(1.03);
}

.logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Text Content */
.text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.motto {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.motto .highlight {
    color: var(--accent-color);
    display: inline-block;
}

/* Contact Button */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(55, 65, 81, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.2);
    color: var(--text-light);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
}

.contact-btn:hover {
    background: var(--text-light);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(55, 65, 81, 0.2);
    border-color: var(--text-light);
}

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

.icon {
    width: 22px;
    height: 22px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.8rem;
    }
    
    .motto {
        font-size: 2.1rem;
    }

    .specialization {
        font-size: 0.98rem;
    }
    
    .disclaimer-box {
        padding: 1rem 1.1rem;
    }
    
    .contact-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .motto {
        font-size: 1.65rem;
    }
    
    .specialization {
        font-size: 0.88rem;
    }

    .countdown-grid {
        gap: 6px;
    }

    .countdown-item {
        padding: 0.5rem 0.3rem;
        border-radius: 12px;
    }

    .countdown-number {
        font-size: 1.35rem;
    }

    .countdown-label {
        font-size: 0.62rem;
    }

    .disclaimer-box.compact .disclaimer-text {
        font-size: 0.72rem;
    }
    
    .logo-container {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   Software Hub & Application Management Engine Styles
   ========================================================================== */

/* Top Navigation Header */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 32px;
    width: auto;
    mix-blend-mode: screen;
}

.nav-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #f39c12;
}

.btn-nav-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.4);
    color: #f39c12;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-admin:hover {
    background: #f39c12;
    color: #0f172a;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

/* Adjust Content Wrapper for Top Nav */
.content-wrapper {
    flex-direction: column;
    padding-top: 100px;
    gap: 3rem;
}

.glass-card.main-landing {
    max-width: 720px;
}

/* Public Software Section */
.public-software-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.section-header p {
    color: #cbd5e1;
    font-size: 1rem;
}

/* Apps Grid & Cards */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.glass-app-card {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.glass-app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 156, 18, 0.5);
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-badge {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.status-badge.public {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.private {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.app-card-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.app-card-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    width: 100%;
}

.btn-launch {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-launch:hover {
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Modals & Overlays Base */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #ffffff;
}

/* Modal 1: Login Dialog */
.glass-modal {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    position: relative;
}

.glass-modal .modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.icon-circle {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.modal-header p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.error-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #f39c12, #d35400);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

/* Modal 2: Admin Dashboard Container */
.modal-backdrop.full-overlay {
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.glass-dashboard-container {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.2rem;
}

.dash-title h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

.dash-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
}

.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-dash-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-dash-action:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.btn-dash-logout {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-dash-logout:hover {
    background: #ef4444;
    color: #fff;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #f39c12;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Upload Panel */
.upload-panel {
    background: rgba(30, 41, 59, 0.5);
    border: 1px dashed rgba(243, 156, 18, 0.4);
    border-radius: 20px;
    padding: 1.5rem;
}

.upload-panel h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.upload-options-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.upload-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-field label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.upload-field input[type="text"] {
    padding: 0.5rem 0.9rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

/* Custom Checkbox */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #f39c12 !important;
    font-weight: 600;
    font-size: 0.9rem !important;
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.4);
}

.drop-zone:hover, .drop-zone.highlight {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

.drop-text {
    color: #cbd5e1;
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

.drop-text span {
    color: #f39c12;
    text-decoration: underline;
}

/* Admin Controls Bar */
.admin-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.admin-controls-bar h3 {
    color: #ffffff;
    font-size: 1.2rem;
}

.controls-right {
    display: flex;
    gap: 1rem;
}

.controls-right select, .controls-right input {
    padding: 0.55rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
}

/* Admin Cards Specifics */
.admin-card .card-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.admin-card .card-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-action.launch {
    flex-grow: 1;
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.btn-action.launch:hover {
    background: #f39c12;
    color: #0f172a;
}

.btn-action.delete {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-action.delete:hover {
    background: #ef4444;
    color: #fff;
}

/* Visibility Toggle Switch */
.visibility-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visibility-label {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #22c55e;
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

/* Modal 3: Subpage Viewer Overlay */
.viewer-overlay {
    padding: 0;
    flex-direction: column;
}

.viewer-top-bar {
    width: 100%;
    height: 60px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 10;
}

.viewer-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-back-hub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-back-hub:hover {
    background: rgba(255, 255, 255, 0.2);
}

.viewer-info h2 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

.viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-icon.delete-icon {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-icon.delete-icon:hover {
    background: #ef4444;
}

.viewer-body {
    width: 100%;
    height: calc(100vh - 60px);
    background: #000;
}

#app-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

.empty-state-box {
    text-align: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 16px;
/* Project Form & Staged Files Panel */
.project-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full-width {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.form-field label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

.form-field input {
    padding: 0.7rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-field input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.staged-files-panel {
    margin-top: 1.5rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 16px;
    padding: 1.2rem;
}

.staged-files-panel h4 {
    color: #f39c12;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.staged-files-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
    padding-right: 5px;
}

.staged-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.file-path {
    flex-grow: 1;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.file-size {
    color: #64748b;
    font-size: 0.75rem;
}

.file-type-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.badge-html { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-css { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-js { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }
.badge-img { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.badge-file { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }

.btn-remove-staged {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-remove-staged:hover {
    color: #ef4444;
}

.staged-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.main-entry-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-entry-selector label {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.main-entry-selector select {
    padding: 0.4rem 0.8rem;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
}

.btn-save-project {
    width: auto;
    padding: 0.65rem 1.4rem;
}

@media (max-width: 768px) {
    .project-form-grid {
        grid-template-columns: 1fr;
    }
    .staged-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-save-project {
        width: 100%;
    }
}


