/* Global Modal Styling - Applied to all modals in the application */

/*.modal-header,
.modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
}*/

.modal-body {
    padding: 1.5rem 2rem;
}

/* Modal footer buttons container for consistent spacing */
.modal-footer-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Form styling for modals */
.modal-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Form input styling for full width */
.form-input,
.modal-body .form-control,
.modal-body .form-select,
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="tel"],
.modal-body input[type="number"],
.modal-body textarea,
.modal-body select {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus,
.modal-body .form-control:focus,
.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Info sections in modals */
.info-group {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 1rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.badge-primary {
    background-color: #0d6efd;
    color: white;
}

.badge-active {
    background-color: #0a58ca;
    color: white;
    font-weight: 600;
    border: 2px solid #084298;
    box-shadow: 0 2px 4px rgba(10, 88, 202, 0.3);
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-outline {
    background-color: transparent;
    color: #495057;
    border: 1px solid #ced4da;
}

/* Button styles for modals - only custom styles, let Bootstrap handle the rest */

.modal-body .btn,
.modal-footer .btn {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.modal-body .btn:hover,
.modal-footer .btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.modal-body .btn:active,
.modal-footer .btn:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.btn-danger {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-danger:disabled {
    background: #dc3545;
    border-color: #dc3545;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Confirmation Dialog Specific Styles */
.confirmation-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.confirmation-icon {
    flex-shrink: 0;
    color: #dc3545;
    margin-top: 0.25rem;
}

.confirmation-text h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #212529;
}

.confirmation-text p {
    margin: 0;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Change Password Dialog Specific Styles */
.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-help {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

.password-match-indicator {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.password-match-indicator.match {
    color: #198754;
}

.password-match-indicator.no-match {
    color: #dc3545;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.25rem;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak {
    background-color: #dc3545;
    width: 33%;
}

.password-strength-medium {
    background-color: #fd7e14;
    width: 66%;
}

.password-strength-strong {
    background-color: #198754;
    width: 100%;
}

/* Form validation styles */
.field-error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Alert spacing in modals */
.modal-body .alert {
    margin-bottom: 1rem;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        margin: 1rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modal-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .modal-actions {
        justify-content: center;
    }
}