.input-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.input-group label { margin-bottom: 0.5rem; color: var(--text-primary); font-size: 0.9rem; font-weight: 500; }
.input-group input, .input-group select {
    padding: 0.85rem 1rem; border: 1px solid var(--border-color);
    background-color: #0f172a; color: var(--text-primary);
    border-radius: 0.375rem; outline: none; transition: all 0.2s;
    font-size: 1rem; width: 100%; max-width: 600px;
    box-sizing: border-box;
}
.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}
.input-group input:focus, .input-group select:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); 
}

.btn {
    padding: 0.85rem 1.5rem; border: none; border-radius: 0.375rem;
    background-color: var(--primary-color); color: #fff;
    cursor: pointer; font-weight: 600; transition: all 0.2s;
    font-size: 0.95rem; width: auto; min-width: 200px; display: inline-block;
}
.btn:hover:not(:disabled) { 
    background-color: var(--primary-hover); 
    transform: translateY(-1px); 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.alert-message { font-size: 0.875rem; margin-bottom: 1.5rem; font-weight: 500; display: none; }

.progress-wrapper { 
    width: 100%; max-width: 600px; background-color: #0f172a; 
    border: 1px solid var(--border-color); border-radius: 999px; 
    overflow: hidden; margin-top: 1.5rem; display: none; 
}
.progress-fill { height: 12px; background-color: var(--success-color); width: 0%; transition: width 0.4s ease; }
.progress-text { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.5rem; display: none; font-weight: 500; }
.download-link {
    display: none; margin-top: 1.5rem; text-align: center;
    background-color: rgba(34, 197, 94, 0.1); padding: 1rem; border-radius: 0.375rem;
    border: 1px dashed var(--success-color); color: var(--success-color);
    text-decoration: none; font-weight: bold; max-width: 400px;
}
.download-link:hover { background-color: rgba(34, 197, 94, 0.2); }

.modal-dialog {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-panel);
    color: var(--text-primary);
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    margin: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.modal-dialog::backdrop { background-color: rgba(15, 23, 42, 0.85); backdrop-filter: blur(2px); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.modal-title { font-size: 1.25rem; font-weight: bold; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--danger-color); }
.log-row { cursor: pointer; transition: background-color 0.2s; }
.log-row:hover { background-color: rgba(59, 130, 246, 0.1); }

.w-full { width: 100%; }
.overflow-x-auto { overflow-x: auto; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.raw-log-box { min-height: 100px; white-space: pre-wrap; }
