/* Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.welcome-card {
    background: rgba(30, 30, 30, 0.95);
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid #4ecdc4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(10px);
}

h1 {
    color: #4ecdc4;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.subtitle {
    color: #88d3ce;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-style: italic;
}

.smiley {
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Button Styles */
.button-container {
    margin-top: 20px;
}

.main-button {
    display: inline-block;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    background: linear-gradient(135deg, #45b7d1 0%, #4ecdc4 100%);
}

/* Login-Styles */
.login-card {
    background: rgba(30, 30, 30, 0.95);
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid #4ecdc4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin: 0 auto;
}

.login-form {
    margin: 30px 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: #2c2c2c;
    border: 1px solid #4ecdc4;
    border-radius: 8px;
    color: white;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #45b7d1;
    box-shadow: 0 0 10px rgba(69, 183, 209, 0.3);
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #45b7d1 0%, #4ecdc4 100%);
    transform: translateY(-2px);
}

.error-message {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ff4757;
    margin: 15px 0;
}

.back-link {
    color: #88d3ce;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4ecdc4;
}

/* Dateimanager-Styles */
.filemanager-card {
    background: rgba(30, 30, 30, 0.95);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #4ecdc4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.nav-bar h1 {
    margin: 0;
    font-size: 2em;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-button {
    background: #2c2c2c;
    border: 1px solid #4ecdc4;
    color: #4ecdc4;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(78, 205, 196, 0.2);
}

.refresh:hover {
    transform: rotate(180deg);
}

.file-list h2 {
    color: #88d3ce;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.file-item {
    display: flex;
    align-items: center;
    background: #2c2c2c;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid #4ecdc4;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: #363636;
    transform: translateX(5px);
}

.file-icon {
    font-size: 1.2em;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-info {
    flex-grow: 1;
    min-width: 0;
}

.file-link {
    color: #45b7d1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    word-break: break-word;
}

.file-link:hover {
    text-decoration: underline;
}

.file-meta {
    color: #888;
    font-size: 0.85em;
    margin-top: 4px;
}

.delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

.empty-message {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
    font-size: 1.1em;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #4CAF50;
    margin: 15px 0;
    text-align: center;
}

/* Dialog-Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog {
    background: #2c2c2c;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #4ecdc4;
    max-width: 400px;
    width: 90%;
}

.dialog h3 {
    color: #4ecdc4;
    margin-bottom: 15px;
}

.dialog-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.confirm-yes, .confirm-no {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.confirm-yes {
    background: #ff4757;
    color: white;
}

.confirm-yes:hover {
    background: #ff6b81;
}

.confirm-no {
    background: #4ecdc4;
    color: #121212;
}

.confirm-no:hover {
    background: #45b7d1;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .welcome-card, .login-card, .filemanager-card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .nav-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-bar h1 {
        font-size: 1.8em;
    }
    
    .main-button, .login-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .input-group input {
        padding: 12px;
    }
    
    .file-item {
        padding: 10px 12px;
    }
    
    .dialog {
        padding: 20px;
    }
    
    .dialog-buttons {
        flex-direction: column;
    }
}