body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #151515;
    background-image: linear-gradient(45deg, #251515, #151525);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #e0e0e0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, #f39b30, #e74c3c, #9b59b6, #3498db);
    z-index: -1;
    opacity: 0.6;
}

h1 {
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 28px;
    color: #fff;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin: 0 0 30px 0;
    font-size: 14px;
}

.section-label {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
    font-weight: 500;
}

.url-form {
    margin-bottom: 30px;
}

input[type="url"], input[type="text"], input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #333;
    background-color: #252525;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

/* Remove number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="url"]:focus, input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

input[readonly] {
    background-color: #2a2a2a;
    border-color: #444;
}

.options {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #444;
    border-radius: 4px;
    background-color: #252525;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #FF8A00, #E53A8C);
    border-color: #FF8A00;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

input[type="checkbox"]:hover {
    border-color: #666;
}

input[type="checkbox"]:checked:hover {
    border-color: #FF8A00;
}

label {
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    user-select: none;
}

.input-container {
    margin-bottom: 16px;
}

.input-container label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.input-container input[type="number"] {
    margin-bottom: 0;
}

.scrape-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scrape-button:hover {
    background: linear-gradient(135deg, #7C3AED, #0891B2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.scrape-button:active {
    transform: translateY(0);
}

.scrape-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}



.result-container {
    background-color: #252525;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}



/* Job-related styles */
.job-info {
    background-color: #2a2a2a;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.job-field {
    margin-bottom: 8px;
    font-size: 14px;
    color: #e0e0e0;
}

.job-field:last-child {
    margin-bottom: 0;
}

.status-button {
    padding: 10px 16px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.status-button:hover {
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    transform: translateY(-1px);
}

.download-container {
    background-color: #1f3a28;
    border: 2px solid #10B981;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.download-button {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.jobs-section {
    margin-top: 30px;
    background-color: #252525;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #333;
}

.jobs-section h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-button {
    padding: 8px 12px;
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    background: linear-gradient(135deg, #4B5563, #374151);
    transform: translateY(-1px);
}

.jobs-list {
    max-height: 400px;
    overflow-y: auto;
}

.job-item {
    background-color: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.job-item:hover {
    background-color: #303030;
    border-color: #505050;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.job-status {
    font-weight: 600;
    font-size: 14px;
}

.job-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #888;
    background-color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
}

.job-url {
    color: #4a90e2;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 8px;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

.job-download-link {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-download-link:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.no-jobs, .job-error {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}



.error-container {
    background-color: #2c1810;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.error-message {
    color: #ff6b6b;
    font-weight: 500;
}



/* FontAwesome icon color classes */
.text-success {
    color: #10B981;
}

.text-error {
    color: #EF4444;
}

.text-info {
    color: #3B82F6;
}

.text-warning {
    color: #F59E0B;
}

/* Icon spacing */
.fas, .far, .fab {
    margin-right: 6px;
}

/* Specific button icon spacing */
.scrape-button .fas,
.status-button .fas,
.download-button .fas,
.refresh-button .fas {
    margin-right: 8px;
}

/* Spinner animation for loading states */
.fa-spinner {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 30px 20px;
    }
}
