/* Global Toggle Switch Styling */
/* Consistent green/red toggle switches ONLY for form-switch elements */

.form-check-input {
    cursor: pointer;
}

/* Green/red styling ONLY for toggle switches (form-switch) */
.form-check.form-switch .form-check-input:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.form-check.form-switch .form-check-input:not(:checked) {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.form-check.form-switch .form-check-input:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
}

/* Large toggle switches (used in settings and admin pages) */
.form-check.form-switch .form-check-input {
    width: 3rem;
    margin-left: 0;
}

.form-check.form-switch {
    padding-right: 3rem;
    margin-bottom: 0;
}

/* Setting item styling for admin-style toggles */
.setting-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.setting-item:hover {
    border-color: var(--primary);
}

.setting-item .d-flex {
    gap: 1rem;
}

.setting-info {
    flex: 1;
    min-width: 0;
}

/* Theme-specific adjustments */
[data-theme="light"] .form-check-input {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

[data-theme="dark"] .form-check-input {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

/* Table checkboxes - simple and clean styling */
.table .form-check-input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid #000;
    background-color: #fff;
    border-radius: 0.25rem;
}

.table .form-check-input[type="checkbox"]:checked {
    background-color: #fff !important;
    border-color: #000 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.table .form-check-input[type="checkbox"]:focus {
    border-color: #000 !important;
    box-shadow: 0 0 0 0.15rem rgba(0, 0, 0, 0.25) !important;
}

/* Dark theme table checkboxes */
[data-theme="dark"] .table .form-check-input[type="checkbox"] {
    border-color: #fff;
    background-color: transparent;
}

[data-theme="dark"] .table .form-check-input[type="checkbox"]:checked {
    background-color: transparent !important;
    border-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .table .form-check-input[type="checkbox"]:focus {
    border-color: #fff !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25) !important;
}