/* Modal styling */
.modal-header {
    background-color: #2c4669;
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

/* Form styling */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c4669;
    box-shadow: 0 0 0 0.2rem rgba(44, 70, 105, 0.25);
}

.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Button styling */
.btn-primary {
    background-color: #2c4669;
    border-color: #2c4669;
}

.btn-primary:hover {
    background-color: #1f3247;
    border-color: #1f3247;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 70, 105, 0.5);
}

/* Color picker styling */
input[type="color"] {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 0.25rem;
}

/* Toast notifications */
.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 250px;
}

/* Table actions */
.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    margin-right: 0.25rem;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Drag and drop styling */
.draggable {
    cursor: move;
}

.draggable:hover {
    background-color: #f8f9fa;
}

.drag-over {
    border-top: 2px solid #2c4669;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group .form-check {
    margin-bottom: 0;
}

/* Badge enhancements */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Status indicators */
.status-active {
    color: #28a745;
}

.status-inactive {
    color: #6c757d;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .table-actions .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}