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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 300;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1em;
}

.input-section {
    margin-bottom: 30px;
}

#urlInput {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

#urlInput:focus {
    border-color: #3498db;
}

#downloadBtn {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#downloadBtn:hover {
    background-color: #2980b9;
}

#downloadBtn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.status {
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
}

.status.success {
    color: #27ae60;
}

.status.error {
    color: #e74c3c;
}

.status.info {
    color: #3498db;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.results {
    margin-top: 30px;
}

.download-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-item.success {
    border-color: #27ae60;
    background-color: #d5f4e6;
}

.download-item.error {
    border-color: #e74c3c;
    background-color: #fdeaea;
}



.download-status {
    font-weight: bold;
}

.download-status.success {
    color: #27ae60;
}

.download-status.error {
    color: #e74c3c;
}

/* Download-Historie Styles */
.history {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.history-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background-color: #ffffff;
}

.history-url {
    color: #2c3e50;
    font-weight: 500;
    word-break: break-all;
}

.history-filename {
    color: #666;
    font-family: monospace;
    font-size: 12px;
}

.history-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.history-status.success {
    background-color: #d5f4e6;
    color: #27ae60;
}

.history-status.error {
    background-color: #fdeaea;
    color: #e74c3c;
}

.history-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 400;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}