/* style.css */

/* Allgemeine Stile */
body {
    background-color: #121212;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: cyan;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.header a {
    text-decoration: none;
    color: inherit;
}

.header a:hover {
    text-decoration: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.block {
    background-color: #1E1E1E;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.accent {
    background: linear-gradient(45deg, magenta, cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 40px 0 20px 0;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 20px 0;
}

.header .logo {
    width: 50px;
    height: auto;
    margin-right: 15px;
}

.header .accent {
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: center;
}

.footer {
    text-align: center;
    margin-top: 20px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    background-color: #2A2A2A;
    border: 1px solid #444;
    padding: 12px;
    color: #FFFFFF;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 16px;
    display: block;
}

button {
    background: linear-gradient(45deg, magenta, cyan);
    border: none;
    padding: 12px 20px;
    color: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin: 10px auto 0 auto;
    display: block;
}

button:hover {
    opacity: 0.9;
}

button.delete-button {
    background-color: #FF4444;
    background-image: none;
}

.message {
    background-color: #2A2A2A;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message a {
    color: cyan;
    word-break: break-all;
}

.message input[type="text"] {
    width: 80%;
    padding: 10px;
    margin-right: 10px;
    color: #FFFFFF;
    background-color: #2A2A2A;
    border: 1px solid #444;
    border-radius: 4px;
}

.message button {
    padding: 10px 20px;
    background: linear-gradient(45deg, magenta, cyan);
    border: none;
    color: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
}

.message button:hover {
    opacity: 0.9;
}

.message.error {
    background-color: #FF4444;
    color: #FFFFFF;
}

.message.success {
    background-color: #4CAF50;
    color: #FFFFFF;
}

#progressContainer {
    margin-top: 20px;
    text-align: center;
}

progress {
    width: 100%;
    height: 20px;
}

#uploadSpeed {
    display: block;
    margin-top: 5px;
}

/* Tabellenstile */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: #2A2A2A;
    color: #FFFFFF;
}

td {
    background-color: #1E1E1E;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

table td button {
    padding: 5px 10px;
    background: linear-gradient(45deg, magenta, cyan);
    border: none;
    color: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

table td button:hover {
    opacity: 0.9;
}

/* Spaltenbreiten */
th:nth-child(1), td:nth-child(1) {
    width: 40%;
}

th:nth-child(2), td:nth-child(2) {
    width: 25%;
}

th:nth-child(3), td:nth-child(3) {
    width: 10%;
}

th:nth-child(4), td:nth-child(4) {
    width: 25%;
}

/* Responsive Tabelle */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    td {
        position: relative;
        padding-left: 50%;
    }

    td::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 45%;
        padding-left: 5px;
        white-space: nowrap;
        font-weight: bold;
    }

    td:nth-of-type(1)::before { content: "Dateiname"; }
    td:nth-of-type(2)::before { content: "Größe"; }
    td:nth-of-type(3)::before { content: "Hochgeladen am"; }
    td:nth-of-type(4)::before { content: "Aktionen"; }
}

/* Dateiname */
.file-name {
    margin-top: 10px;
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fortschrittsanzeige */
#progressContainer {
    margin-top: 20px;
    text-align: center;
}

#progressContainer progress {
    width: 100%;
    height: 20px;
    margin-bottom: 10px;
}

#progressPercentage,
#uploadSpeed {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
}

progress {
    width: 100%;
    height: 20px;
}

#uploadSpeed {
    display: block;
    margin-top: 5px;
}

/* Upload-Bereich */
.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #555;
    border-radius: 10px;
    padding: 40px;
    cursor: pointer;
    color: #aaa;
    background-color: #1e1e1e;
    transition: border-color 0.3s, color 0.3s;
    margin-bottom: 20px;
}

.custom-file-upload:hover {
    border-color: magenta;
    color: #fff;
}

.custom-file-upload img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.custom-file-upload span {
    font-size: 18px;
    text-align: center;
}

.custom-file-upload input[type="file"] {
    display: none;
}

#uploadForm button[type="submit"] {
    padding: 10px 20px;
    background: linear-gradient(45deg, magenta, cyan);
    border: none;
    color: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#uploadForm button[type="submit"]:hover {
    opacity: 0.9;
}

/* Teilen-Link */
.share-link-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #2A2A2A;
    color: #FFFFFF;
}

/* Aktionen */
.actions {
    white-space: nowrap;
    text-align: center;
}

.actions form,
.actions a {
    display: inline-block;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.icon-button img {
    width: 24px;
    height: 24px;
}

.icon-button:hover img {
    opacity: 0.7;
}

/* Kategorienverwaltung */
.add-category-form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.add-category-form input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #2A2A2A;
    color: #FFFFFF;
}

.add-category-form button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.add-category-form button img {
    width: 32px;
    height: 32px;
}

.add-category-form button:hover img {
    opacity: 0.7;
}

/* Kategorie-Tabelle spezifische Stile */
.category-table th {
    background-color: #2A2A2A;
    color: #FFFFFF;
}

.category-table td.actions {
    display: flex;
    /*align-items: right;*/
}

.category-table .rename-input {
    
	/*flex: 1;*/
    padding: 5px;
    margin-right: 5px;
    background-color: #2A2A2A;
    border: 1px solid #444;
    color: #FFFFFF;
    border-radius: 4px;
}

.category-table .icon-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.category-table .icon-button img {
    width: 24px;
    height: 24px;
}

.category-table .icon-button:hover img {
    opacity: 0.7;
}

/* Spaltenbreiten für die Kategorie-Tabelle */
.category-table th:nth-child(1) {
    width: 70%;
}

.category-table th:nth-child(2) {
    width: 100%;
}

/* Custom Select */
.custom-select-wrapper {
    margin-top: 10px;
}

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

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select select {
    width: 100%;
    padding: 10px;
    appearance: none;
    background-color: #2A2A2A;
    border: 1px solid #444;
    color: #FFFFFF;
    border-radius: 4px;
}

.custom-select::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 600px) {
    .block {
        padding: 20px;
    }

    button {
        font-size: 14px;
    }

    .add-category-form {
        flex-direction: column;
        align-items: stretch;
    }

    .add-category-form button {
        width: 100%;
        margin-top: 10px;
    }

    .category-table .actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-table .rename-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .action-buttons {
        gap: 5px;
    }

    .share-link-input {
        width: 100%;
        margin-bottom: 5px;
    }

    .custom-file-upload {
        padding: 20px;
    }

    .custom-file-upload img {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .custom-file-upload span {
        font-size: 16px;
    }

    #uploadForm button[type="submit"] {
        width: 100%;
        margin-top: 10px;
    }
}

/* Index-Seite */
.index-page {
    background-color: #1A1A1A;
    color: #E0E0E0;
}

.index-page .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1E1E1E;
    padding: 10px 20px;
    border-bottom: 1px solid #333;
}

.index-page .header-left {
    display: flex;
    align-items: center;
}

.index-page .header-right {
    display: flex;
    align-items: center;
}

.index-page .header .logo {
    width: 80px;
    height: auto;
    margin-right: 15px;
}

.index-page .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.index-page .logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.index-page .site-title {
    font-size: 24px;
    color: #FFFFFF;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(45deg, magenta, cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.index-page .header-right a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 15px;
    font-size: 16px;
}

.index-page .header-right a:hover {
    text-decoration: underline;
}

.index-page .welcome-message {
    color: #FFFFFF;
    margin-right: 15px;
    font-size: 16px;
}

.index-page .hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #121212, #1e1e1e);
    border-radius: 10px;
    margin-bottom: 40px;
}

.index-page .hero-section .accent {
    font-size: 48px;
    margin-bottom: 20px;
}

.index-page .hero-section p {
    font-size: 18px;
    color: #B3B3B3;
}

.index-page .btn {
    background: linear-gradient(45deg, magenta, cyan);
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    display: inline-block;
    margin-top: 20px;
}

.index-page .btn:hover {
    opacity: 0.8;
}

.index-page .features-section {
    padding: 40px 20px;
}

.index-page .features-section h2 {
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 30px;
    font-size: 28px;
}

.index-page .features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
}

.index-page .feature {
    background-color: #2A2A2A;
    color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 calc(33% - 40px);
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.index-page .feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.index-page .feature p {
    font-size: 14px;
    color: #B3B3B3;
}

.index-page .footer {
    background-color: #222;
    text-align: center;
    color: #FFFFFF;
    padding: 15px;
    margin-top: 40px;
}

.index-page .footer p {
    margin: 0;
    font-size: 14px;
}

/* Einstellungen-Seite */
.settings-page .container {
    max-width: 800px;
    margin-top: 40px;
}

.settings-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.settings-page .block {
    background-color: #1E1E1E;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.settings-page .block h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.settings-page .form-group {
    margin-bottom: 20px;
}

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

.settings-page input[type="text"],
.settings-page input[type="password"] {
    width: 100%;
    padding: 12px;
    background-color: #2A2A2A;
    border: 1px solid #444;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 16px;
}

.settings-page button {
    background: linear-gradient(45deg, magenta, cyan);
    border: none;
    padding: 12px 20px;
    color: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    display: block;
}

.settings-page button:hover {
    opacity: 0.9;
}

.settings-page p {
    text-align: center;
    color: #AAAAAA;
}

.file-preview-with-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-preview-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.gradient-text {
    background: linear-gradient(45deg, magenta, cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Damit der Effekt auf den Text angewendet wird */
}
