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

body {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.page-wrapper {
    width: 75%; /* Gesamtseitenbreite auf 75% des Bildschirms begrenzen */
    max-width: 1200px; /* Optional: maximale Breite hinzufügen */
    position: relative; /* Für die relative Positionierung des Logos */
}

.logo-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.logo {
    max-width: 150px;
    max-height: 80px;
}

.page-content {
    width: 100%;
    margin: 80px auto 0;
    padding: 20px;
}

.upload-section {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#upload-form, #share-form {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

#upload-form button, #share-form button {
    margin: 10px 0;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.file-types-hint {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* Dialog-Styles */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.dialog-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 80%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

.dialog-content {
    margin-bottom: 20px;
    line-height: 1.5;
    color: #6f6f6f;
}

.dialog-close {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.dialog-close:hover {
    background-color: #e0e0e0;
}

/* Dialog-Typen */
.dialog-box.success {
    border-top: 5px solid #4CAF50;
}

.dialog-box.error {
    border-top: 5px solid #F44336;
}

.dialog-box.info {
    border-top: 5px solid #2196F3;
}

/* Animation für das Einblenden */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dialog-overlay {
    animation: fadeIn 0.3s ease-out;
}

/* Dateifreigabe-Styles */
.share-result {
    color: #6F6F6F;
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #4CAF50;
    border-radius: 5px;
    background-color: #f1f8e9;
}

.share-info {
    margin: 15px 0;
}

.share-link-container {
    display: flex;
    margin: 20px 0;
}

.share-link-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-family: monospace;
}

.share-link-container button {
    padding: 10px 15px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.share-note {
    font-size: 0.9em;
    color: #666;
}

/* File Icons */
.file-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
}

/* Styling für den internen Bereich */
.internal-tools-section {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    border-left: 4px solid #4a90e2;
}

.internal-tools-section h3 {
    margin-top: 0;
    color: #4a90e2;
}

.internal-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.internal-link:hover {
    background-color: #f5f5f5;
    border-color: #aaa;
}

.internal-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.link-generator-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
}

.link-generator-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.link-display-container {
    display: flex;
    margin-top: 5px;
}

.link-display-container input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.icon-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    cursor: pointer;
}

.icon-button:hover {
    background-color: #357abd;
}

.secondary-button {
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    margin-top: 10px;
}

.secondary-button:hover {
    background-color: #4cae4c;
}

/* Trennlinie zwischen den Funktionen */
.function-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 25px 0;
}
