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

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

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

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #1a73e8;
    font-size: 2rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h2 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 16px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 8px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover:not(:disabled) {
    background: #1557b0;
}

.btn-primary:disabled {
    background: #a0c4ff;
    cursor: not-allowed;
}

.btn-link {
    display: block;
    text-align: center;
    background: #34a853;
    color: #fff;
    text-decoration: none;
    margin-top: 12px;
}

.btn-link:hover {
    background: #2d9249;
}

.btn-icon {
    font-size: 1.1rem;
}

.progress-card {
    border-left: 4px solid #1a73e8;
}

.progress-bar-container {
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1a73e8, #4285f4);
    transition: width 0.5s ease;
    border-radius: 4px;
}

#progress-text {
    color: #666;
    font-size: 0.9rem;
}

.result-success {
    background: #e6f4ea;
    color: #1e7e34;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.result-error {
    background: #fce8e6;
    color: #c5221f;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.result-icon {
    font-size: 1.3rem;
}

#history-table-container {
    overflow-x: auto;
}

.loading {
    color: #888;
    text-align: center;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 2px solid #e8eaed;
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-completed {
    background: #e6f4ea;
    color: #1e7e34;
}

.status-failed {
    background: #fce8e6;
    color: #c5221f;
}

.status-in_progress {
    background: #e8f0fe;
    color: #1a73e8;
}

.history-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.85rem;
}

.history-link:hover {
    text-decoration: underline;
}

.no-data {
    text-align: center;
    color: #888;
    padding: 20px;
}
