/* Feedback Button Styles */
.btn-feedback {
    background: linear-gradient(135deg, #0d6efd 0%, #0959d0 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-feedback:hover {
    background: linear-gradient(135deg, #0959d0 0%, #0747a6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-feedback .material-icons {
    font-size: 20px;
}

/* Feedback Modal Styles */
.feedback-modal .modal-dialog {
    max-width: 650px;
}

.feedback-modal .modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0891b2 100%);
    color: white;
    border-bottom: none;
    padding: 16px 24px;
}

.feedback-modal .modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 1em !important;
    width: 1em !important;
    height: 1em !important;
    padding: 0.25em !important;
    position: relative;
    z-index: 1060;
    pointer-events: auto !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: none !important;
}

/* Additional specificity for feedback modal close button */
.feedback-modal .modal-header button.btn-close,
#feedbackModal .modal-header .btn-close,
#feedbackModal .modal-header .btn-close-white {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

/* Hover effect for close button */
.feedback-modal .modal-header .btn-close:hover {
    opacity: 0.8 !important;
    transform: scale(1.1);
}

.feedback-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.feedback-modal .modal-title .material-icons {
    font-size: 26px;
}

.feedback-modal .modal-body {
    padding: 24px 28px;
    background: #f8f9fa;
}

.feedback-modal .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.feedback-modal .form-label .material-icons {
    font-size: 18px;
    color: #0d6efd;
}

.feedback-modal .form-label .required {
    color: #e74c3c;
    margin-left: 3px;
    font-size: 1.1rem;
}

.feedback-modal .form-control,
.feedback-modal .form-select {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
    color: #2c3e50;
}

.feedback-modal .form-control:focus,
.feedback-modal .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    outline: none;
    background: white;
    color: #2c3e50;
}

.feedback-modal .form-control::placeholder {
    color: #adb5bd;
}

.feedback-modal .form-select option {
    color: #2c3e50;
    background: white;
}

.feedback-modal textarea.form-control {
    min-height: 90px;
    resize: vertical;
    color: #2c3e50 !important;
    background: white !important;
}

.feedback-modal input.form-control {
    color: #2c3e50 !important;
    background: white !important;
}

.feedback-modal select.form-select {
    color: #2c3e50 !important;
    background: white !important;
}

.feedback-modal .row {
    margin-left: -10px;
    margin-right: -10px;
}

.feedback-modal .row > [class*='col-'] {
    padding-left: 10px;
    padding-right: 10px;
}

.feedback-modal .btn-submit-feedback {
    background: linear-gradient(135deg, #0d6efd 0%, #0891b2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
    min-width: 200px;
    justify-content: center;
}

.feedback-modal .btn-submit-feedback:hover:not(:disabled) {
    background: linear-gradient(135deg, #0959d0 0%, #0891b2 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.45);
}

.feedback-modal .btn-submit-feedback:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback-modal .btn-submit-feedback .material-icons {
    font-size: 20px;
}

.feedback-modal .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 3px;
}

/* Alert Styles */
.feedback-alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}

.feedback-alert .material-icons {
    font-size: 22px;
}

.feedback-alert.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.feedback-alert.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .feedback-modal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .feedback-modal .modal-body {
        padding: 25px 20px;
    }
    
    .feedback-modal .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .feedback-modal .row > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
    }
    
    .btn-feedback {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .feedback-modal .btn-submit-feedback {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 576px) {
    .feedback-modal .modal-header {
        padding: 15px 20px;
    }
    
    .feedback-modal .modal-title {
        font-size: 1.2rem;
    }
    
    .feedback-modal .modal-title .material-icons {
        font-size: 26px;
    }
}
