
:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg: #F3F4F6;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
    --error: #EF4444;
    --pending: #F59E0B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button.submit-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button.submit-btn:hover {
    background-color: var(--primary-hover);
}

button.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#statusBox {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: var(--bg);
    display: none;
    text-align: center;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-Pending { background-color: var(--pending); }
.status-Running { background-color: var(--pending); animation: pulse 1s infinite alternate; }
.status-Success { background-color: var(--success); }
.status-Failed { background-color: var(--error); }

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

#statusText {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#messageText {
    font-size: 0.875rem;
    color: var(--text-muted);
}


/* Alert Box Styles */
.alert-box {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    color: #881337;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 24px;
    font-size: 14px;
    position: relative;
    box-shadow: 0 2px 4px -1px rgba(225, 29, 72, 0.05);
}

.alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #9f1239;
    font-size: 16px;
    font-weight: 600;
}

.alert-icon {
    font-size: 20px;
    margin-right: 10px;
}

.alert-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fb7185;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.alert-close:hover {
    background: #ffe4e6;
    color: #e11d48;
}

.alert-list {
    margin: 0;
    padding-left: 22px;
    line-height: 1.6;
    color: #4c0519;
}

.alert-list li {
    margin-bottom: 8px;
}
.alert-list li:last-child {
    margin-bottom: 0;
}
.alert-list li strong {
    color: #9f1239;
    font-weight: 600;
}
