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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
}

.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filters input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.filters button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.filters button:hover {
    background: #2980b9;
}

.filters button#clearBtn {
    background: #95a5a6;
}

.filters button#clearBtn:hover {
    background: #7f8c8d;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7f8c8d;
}

.jobs-list {
    display: grid;
    gap: 20px;
}

.job-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.job-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.job-info p {
    color: #7f8c8d;
    font-size: 14px;
}

.job-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.job-status.pending {
    background: #f39c12;
    color: white;
}

.job-status.generating {
    background: #3498db;
    color: white;
}

.job-status.completed {
    background: #27ae60;
    color: white;
}

.job-status.partial {
    background: #e67e22;
    color: white;
}

.job-status.failed {
    background: #e74c3c;
    color: white;
}

.selection-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    align-items: center;
}

.select-all-btn {
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.select-all-btn:hover {
    background: #7f8c8d;
}

.download-selected-btn {
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.download-selected-btn:hover:not(:disabled) {
    background: #229954;
}

.download-selected-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    z-index: 10;
    cursor: pointer;
    accent-color: #27ae60;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.checkbox-label {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    z-index: 9;
    cursor: pointer;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    pointer-events: none;
}

.image-item .download-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s;
}

.image-item .download-btn:hover {
    background: rgba(0,0,0,0.9);
}

.prompts-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.prompts-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.prompts-list {
    list-style: none;
}

.prompts-list li {
    padding: 8px;
    margin-bottom: 5px;
    background: #f9f9f9;
    border-left: 3px solid #3498db;
    font-size: 14px;
    color: #555;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #95a5a6;
}




