/* css/auto_slot_settings.css */

/* Main layout for auto slot settings page */
.auto-slot-settings-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
    padding: 1.5rem; /* p-6 */
    align-items: center; /* Center the card */
}

.auto-slot-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
    width: 100%;
    max-width: 800px; /* Adjust max-width as needed */
}

.auto-slot-card .card-title {
    margin-bottom: 1.5rem; /* mb-6 */
    border-bottom: 1px solid #E5E7EB; /* Subtle separator */
    padding-bottom: 0.75rem; /* pb-3 */
}

/* Fieldset styling (reused from style.css but with some overrides) */
fieldset.fieldset-styled {
    margin-bottom: 2rem; /* mb-8 */
    border: 1px solid #D1D5DB;
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
}

fieldset.fieldset-styled legend.fieldset-legend {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #1F2937;
    padding: 0 0.75rem; /* px-3 */
}

/* Form grid within fieldsets */
.form-grid-settings {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* grid-cols-1 */
    gap: 1rem 1.5rem; /* gap-y-4 gap-x-6 */
    margin-top: 1rem; /* mt-4 */
}

@media (min-width: 640px) { /* sm: */
    .form-grid-settings {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* sm:grid-cols-2 */
    }
}
@media (min-width: 768px) { /* md: */
    .form-grid-settings {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* md:grid-cols-3 */
    }
}

.form-group {
    margin-bottom: 0; /* Handled by grid gap */
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-input, .form-select {
    width: 100%;
    height: 2.5rem; /* h-10 */
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    background-color: white;
    font-size: 0.875rem;
}

.form-input:focus, .form-select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px #2563EB;
}

.radio-group, .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    /* For radio/checkbox within group, direct children */
    padding: 0.25rem 0;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    height: 1.15rem; /* Slightly smaller than general checkbox */
    width: 1.15rem;
    accent-color: #2563EB; /* Checkbox color */
    border: 1px solid #D1D5DB;
    cursor: pointer;
}
.radio-group label,
.checkbox-group label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

/* Specific styling for radio button group labels to stack on smaller screens */
.radio-group {
    flex-direction: row; /* Default for larger screens */
    flex-wrap: wrap; /* Wrap if needed */
}
@media (max-width: 640px) {
    .radio-group {
        flex-direction: column; /* Stack on small screens */
        align-items: flex-start;
    }
}

.form-help-text {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

.form-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.calculation-example {
    background-color: #F9FAFB; /* bg-gray-50 */
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.5;
}
.calculation-example strong {
    color: #1F2937;
}

/* Form actions at the bottom */
.form-actions-main {
    display: flex;
    justify-content: flex-end;
    gap: 1rem; /* space-x-4 */
    padding-top: 2rem; /* pt-8 */
    border-top: 1px solid #E5E7EB; /* border-gray-200 */
    margin-top: 2rem; /* mt-8 */
}

.form-actions-main .btn {
    height: 2.75rem; /* h-11 */
    font-size: 1rem; /* text-base */
    padding: 0 1.5rem; /* px-6 */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auto-slot-card {
        padding: 1rem;
    }
    fieldset.fieldset-styled {
        padding: 1rem;
    }
    fieldset.fieldset-styled legend.fieldset-legend {
        font-size: 1.125rem;
    }
    .form-actions-main {
        flex-direction: column;
        gap: 0.75rem;
    }
    .form-actions-main .btn {
        width: 100%;
    }
}