/* =========================
   🧱 Grundlayout & Container
   ========================= */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.container {
    width: 75vw;           /* 75 % der Browserbreite */
    min-width: 1024px;     /* aber mindestens 1024px */
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


/* =========================
   🧭 Überschrift
   ========================= */
h1 {
    color: #6c2c7c;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* =========================
   📋 Tabellenlayout für Dateiübersicht
   ========================= */
.dl-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1em;
    font-size: 18px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #ccc;
}

.dl-table thead th {
    background-color: #f5d8f0;
    color: #000;
    font-weight: 600;
    font-size: 22px;
    padding: 1em;
    border-bottom: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
}

.dl-table td {
    padding: 1em;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}

.dl-table tbody tr:nth-child(odd) {
    background-color: #f8f3f9;
}
.dl-table tbody tr:nth-child(even) {
    background-color: #fff;
}

/* Abrundung der äußeren Ecken */
.dl-table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px;
}
.dl-table tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
}
.dl-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.dl-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* =========================
   📐 Spaltenausrichtung
   ========================= */
.tg-left {
    text-align: left;
}
.tg-center {
    text-align: center;
}
.tg-right {
    text-align: right;
}

/* =========================
   🔗 Linkfarbe auf Schwarz
   ========================= */
.dl-table a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}
.dl-table a:hover {
    text-decoration: underline;
}

/* =========================
   🔗 Folder-Icon
   ========================= */
.folder-icon {
    height: 1em;           /* passt sich der Textgröße an */
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
}

/* =========================
   🎯 Zurück-Button
   ========================= */
.btn-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1em;
}

/* =========================
   🔐 Header mit Login/Logout
   ========================= */
.header-bar {
    position: relative;
    margin-bottom: 1em;
}

.header-bar h1 {
    text-align: center;
    width: 100%;
    margin: 0;
}

.header-bar .btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* vertikal mittig zur Überschrift */
}

/* =========================
   🔘 Einheitliche Buttons
   ========================= */
.btn,
.btn-custom,
.upload-form label.btn {
    background: linear-gradient(90deg, #d46ac3, #b84fa8);
    color: white;
    border: none;
    width: 160px;          /* feste Breite */
    text-align: center;
    padding: 0.7em 0;      /* gleiche Höhe */
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: inline-block;
    text-decoration: none;
    transition: none;      /* kein Hover-Effekt */
}

/* Einheitlicher Hover-Effekt für alle Buttons */
.btn:hover,
.btn-custom:hover,
.upload-form label.btn:hover {
    transform: none; /* kein Hochspringen */
    box-shadow: 0 6px 14px rgba(0,0,0,0.15); /* stärkerer Schatten wie bei Login/Logout */
}

/* Buttons in der Toolbar rechts nebeneinander */
.toolbar-right .btn-group {
    display: flex;
    gap: 10px; /* Abstand zwischen den Buttons */
    align-items: center;
}

/* Login-Button ohne Hover-Effekt */
.header-bar .btn {
    transition: none;
}

.header-bar .btn:hover {
    transform: translateY(-50%); /* bleibt mittig, kein zusätzliches -2px */
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* 🗑 Delete-Button als Icon, aber im gleichen Stil */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #b84fa8;
    padding: 0.3em 0.6em;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.delete-btn:hover {
    background-color: rgba(212,106,195,0.1);
    transform: translateY(-2px);
    color: #6c2c7c;
}

/* =========================
   📤 Upload-Formular
   ========================= */
.upload-form {
    margin: 10px 0;
}

form.inline-delete {
    display: inline-block;
    margin: 0;
}

/* Upload-Bar rechtsbündig unter Login */
.upload-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1em;
}

/* Label als Button */
.upload-form label.btn {
    cursor: pointer;
}

/* Versteckter File-Input */
.upload-form input[type="file"] {
    display: none;
}

/* Gemeinsame Toolbar für Zurück (links) und Hochladen (rechts) */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

/* Modal Box */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #6c2c7c;
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
}

.modal-content input {
    width: 100%;
    padding: 0.6em;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

/* Close Button */
.modal-content .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.modal-content .close:hover {
    color: #333;
}

