body {
    font-family: Arial, sans-serif;
    background: #ecf0f1;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    margin-top: 30px;
    margin: 0;
}

.tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.tabs button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
.tabs button:hover {
    background: #2980b9;
}

.tab-content {
    background: #fff;
    max-width: 400px;
    margin: 0 auto 30px auto;
    padding: 30px 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
form label {
    display: block;
    margin-bottom: 10px;
}
input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
button[type="submit"] {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
button[type="submit"]:hover {
    background: #219150;
}
#fileList {
    margin-top: 20px;
}
.file-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.file-entry span.filename {
    cursor: pointer;
    color: #3498db;
    text-decoration: underline;
}
.file-entry button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}
.file-entry button:hover {
    background: #c0392b;
}
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}
.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #000;
}
#previewContent img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    margin: 0 auto;
}
#previewContent pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

/* Dashboard Layout */
header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #c0392b;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.upload-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.files-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-header {
    position: absolute;
    top: 20px;
    right: 30px;
}
.register-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.register-btn:hover {
    background: #217dbb;
}

.small-modal {
    max-width: 350px;
    margin: 10% auto;
    padding: 20px;
}
.file-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.file-icon {
    font-size: 28px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Modernes Vorschau-Modal */
.modal-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e3e9f0 100%);
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    border-radius: 16px;
    padding: 32px 24px 24px 24px;
    position: relative;
    max-width: 600px;
    width: 90%;
    min-height: 120px;
    animation: modalIn 0.2s;
}
@keyframes modalIn {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close {
    color: #888;
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close:hover {
    color: #e74c3c;
}
.preview-image img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: block;
    margin: 0 auto;
}
.preview-text pre {
    background: #f4f4f4;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-btn {
    background: #8e44ad;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.admin-btn:hover {
    background: #5e3370;
}
.settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2980b9;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.settings-btn:hover {
    background: #14507c;
}
.danger-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
.danger-btn:hover {
    background: #c0392b;
}
.file-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.file-toolbar button, .file-toolbar .settings-btn {
    background: #f4f4f4;
    color: #222;
    border: 1px solid #d0d6e1;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    margin-right: 2px;
    transition: background 0.15s, border 0.15s;
}
.file-toolbar button:hover, .file-toolbar .settings-btn:hover {
    background: #e3e9f0;
    border-color: #b0b8c1;
}
.large-thumb {
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 0;
}
#fileList.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.file-tile {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 10px;
    box-shadow: none;
    border: 1.5px solid #e3e9f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.2s;
}
.file-tile:hover {
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    border-color: #b0b8c1;
}
.file-tile .file-thumb, .file-tile .file-icon {
    width: 48px;
    height: 48px;
    font-size: 44px;
    margin-bottom: 8px;
}
.file-tile .tile-label {
    font-size: 13px;
    text-align: center;
    word-break: break-all;
}
.file-tile.folder {
    background: #f6f7fa;
    border: 2px solid #d0d6e1;
}
.file-tile.drag-over {
    border: 2px dashed #2980b9;
    background: #eaf6fb;
}
.folder-icon {
    font-size: 48px;
    color: #f1c40f;
    margin-bottom: 4px;
}
.context-menu {
    position: absolute;
    z-index: 2000;
    background: #fff;
    border: 1px solid #d0d6e1;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.13);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 160px;
}
.context-menu li {
    padding: 8px 18px;
    cursor: pointer;
    font-size: 15px;
    color: #222;
    transition: background 0.15s;
}
.context-menu li:hover {
    background: #e3e9f0;
}
.upload-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 18px;
    margin-left: 10px;
    transition: background 0.2s;
}
.upload-btn:hover {
    background: #219150;
}
.upload-label {
    display: inline-block;
    margin-right: 8px;
}
.upload-label .upload-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    display: inline-block;
}
.upload-label .upload-btn:hover {
    background: #219150;
} 