/* Custom styles to complement Bootstrap */
body {
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.card {
    border: none;
    border-radius: 12px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    border-bottom: 3px solid #198754;
    padding-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-label {
    color: #343a40;
}

/* File Item */
.file-item {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-item span:first-child {
    font-weight: 500;
    flex: 1;
    word-break: break-all;
}

/* Download Button */
.file-item a {
    background: #198754;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
}

.file-item a:hover {
    background: #157347;
    transform: translateY(-1px);
}

.file-item a:active {
    transform: translateY(0);
}

/* Log Box */
.log-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #343a40;
    max-height: 200px;
    overflow-y: auto;
}

.log-success { color: #198754; }
.log-error { color: #dc3545; }
.log-warning { color: #ffc107; }
.log-info { color: #6c757d; }

/* Responsive adjustments */
@media (max-width: 576px) {
    .file-item {
        flex-direction: column;
        align-items: stretch;
    }

    .file-item a {
        width: 100%;
        text-align: center;
    }
}