/* Base Styles and Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

h1, h2 {
    color: #2c3e50;
}

/* Main Content Styles */
main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    main {
        grid-template-columns: 300px 1fr;
        grid-template-areas:
            "control status"
            "control results";
    }
    
    .control-panel {
        grid-area: control;
    }
    
    .status-panel {
        grid-area: status;
    }
    
    .results-container {
        grid-area: results;
    }
}

/* Control Panel Styles */
.control-panel {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="url"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results Container Styles */
.results-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status Panel Styles */
.status-panel {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.status-item {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.progress-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress {
    flex-grow: 1;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    width: 0;
    transition: width 0.3s ease;
}

#progress-text {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
}

/* Results List Styles */
.results-list {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
}

#url-list {
    list-style-type: none;
}

#url-list li {
    padding: 8px 10px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    word-break: break-all;
}

#url-list li:last-child {
    border-bottom: none;
}

#url-list li.success {
    border-left: 3px solid #28a745;
}

#url-list li.error {
    border-left: 3px solid #dc3545;
}

/* Footer Styles */
footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
    color: #6c757d;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Status Colors */
.status-running {
    color: #3498db;
}

.status-complete {
    color: #27ae60;
}

.status-error, .status-aborted {
    color: #e74c3c;
} 