/* Feedback & Complaints Plugin Styles */

/* Frontend Styles */
.feedback-complaint-form {
    max-width: 100%;
    margin: 0 auto;
}

.feedback-complaint-form .required:after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.feedback-complaint-form .card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.feedback-complaint-form .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.feedback-complaint-form .card-header h5 {
    margin: 0;
    color: #495057;
}

.feedback-complaint-form .card-body {
    padding: 1.25rem;
}

.feedback-complaint-form .form-group {
    margin-bottom: 1rem;
}

.feedback-complaint-form .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.feedback-complaint-form .form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.feedback-complaint-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.feedback-complaint-form .form-control-file {
    display: block;
    width: 100%;
    padding: 0.375rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: transparent;
    border: 0;
}

.feedback-complaint-form .btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.feedback-complaint-form .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.feedback-complaint-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.feedback-complaint-form .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Results Styles */
.fc-results {
    display: none;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    font-weight: 500;
}

.fc-results.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.fc-results.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.fc-results i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* Loading State */
.fc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.fc-loading .form-control,
.fc-loading .btn {
    cursor: not-allowed;
}

/* Backend Admin Styles */
.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100vh;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    border: 0;
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

/* Table Styles */
.table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: 0;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Badge Styles */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
    color: #fff;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}

/* Button Styles */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
    background-color: transparent;
}

.btn-outline-info:hover {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Alert Styles */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-complaint-form .card-body {
        padding: 1rem;
    }
    
    .feedback-complaint-form .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .modal-fullscreen {
        padding: 0;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc-results {
    animation: fadeIn 0.3s ease-in-out;
}

/* Spinner Animation */
.la-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
