/**
 * Frontend styles for Feedback EduCMS Plugin
 */

/* Feedback Form Styles */
.feedback-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.feedback-form-title {
    color: #ff5722;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.feedback-form {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.feedback-form .form-label {
    font-weight: 500;
    color: #343a40;
    margin-bottom: 8px;
}

.feedback-form .form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.feedback-form .form-control:focus {
    border-color: #ff5722;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
}

.feedback-form .btn-submit {
    background: linear-gradient(45deg, #ff5722, #e91e63);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feedback-form .btn-submit:hover {
    background: linear-gradient(45deg, #e64a19, #c2185b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Star Rating Styles */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
    color: #ffc107;
}

.rating-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Error Messages */
.feedback-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* Success/Error Alerts */
.feedback-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.feedback-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Feedback Display Styles */
.feedback-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    transition: 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feedback-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feedback-card .profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    margin: 0 auto 15px;
}

.feedback-card .name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 5px;
}

.feedback-card .university {
    font-size: 0.9rem;
    color: #ff5722;
    font-weight: 500;
    margin-bottom: 10px;
}

.feedback-card .badge {
    background-color: #ff5722;
    color: white;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.feedback-card .rating {
    justify-content: center;
    margin-bottom: 15px;
}

.feedback-card .rating span {
    color: #ffc107;
    font-size: 1.2rem;
}

.feedback-card .message {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    flex-grow: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .feedback-form-container {
        padding: 15px;
    }
    
    .feedback-form {
        padding: 15px;
    }
    
    .rating label {
        font-size: 2rem;
    }
} 