/* feedback.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --bg-color: #e6f3f3;
    --text-color: #333;
    --primary-color: #16a085;
    --secondary-color: #1abc9c;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

[data-theme="dark"] {
    --bg-color: #1a2b2b;
    --text-color: #e6f3f3;
    --primary-color: #1abc9c;
    --secondary-color: #16a085;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.top-bar {
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

[data-theme="dark"] .top-bar {
    background: linear-gradient(90deg, #0d47a1, #1a73e8);
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    background: white;
    padding: 35px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

[data-theme="dark"] .section {
    background: #2e3b3b;
}

.feedback-form {
    border-left: 5px solid #16a085;
}

[data-theme="dark"] .feedback-form {
    border-left-color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

[data-theme="dark"] .form-group label {
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #16a085;
    border-radius: 5px;
    font-size: 14px;
    background: #f9f9f9;
    transition: border-color 0.3s;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    border-color: var(--primary-color);
    background: #3a4a4a;
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1abc9c;
    outline: none;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--secondary-color);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: rtl;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

[data-theme="dark"] .rating-stars label {
    color: #666;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #16a085;
}

[data-theme="dark"] .rating-stars input:checked ~ label,
[data-theme="dark"] .rating-stars label:hover,
[data-theme="dark"] .rating-stars label:hover ~ label {
    color: var(--primary-color);
}

.form-message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    font-size: 16px;
}

.recent-feedback {
    margin-top: 30px;
}

.recent-feedback h3 {
    margin-bottom: 15px;
    color: #16a085;
}

[data-theme="dark"] .recent-feedback h3 {
    color: var(--primary-color);
}

.feedback-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

[data-theme="dark"] .feedback-item {
    background: #3a4a4a;
}

.feedback-item p {
    margin: 5px 0;
    font-size: 14px;
}

[data-theme="dark"] .feedback-item p {
    color: #ccc;
}

.testimonials {
    border-left: 5px solid #1abc9c;
}

[data-theme="dark"] .testimonials {
    border-left-color: var(--secondary-color);
}

.testimonial-slider {
    position: relative;
    height: 100px;
    margin-top: 20px;
    overflow: hidden;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

[data-theme="dark"] .testimonial-item {
    background: #3a4a4a;
}

.testimonial-item.active {
    opacity: 1;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
    font-size: 16px;
}

[data-theme="dark"] .testimonial-item p {
    color: #ccc;
}

.testimonial-item span {
    font-weight: normal;
    color: #16a085;
}

[data-theme="dark"] .testimonial-item span {
    color: var(--primary-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.slider-btn {
    background: transparent;
    border: 2px solid #16a085;
    color: #16a085;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

[data-theme="dark"] .slider-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.slider-btn:hover {
    background: #16a085;
    color: white;
}

[data-theme="dark"] .slider-btn:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

.share-story {
    display: block;
    margin: 20px auto 0;
}

@media (max-width: 768px) {
    .rating-stars label {
        font-size: 24px;
    }

    .feedback-item {
        padding: 10px;
    }

    .testimonial-slider {
        height: auto;
    }

    .testimonial-item {
        position: static;
        opacity: 1;
        margin-bottom: 20px;
    }

    .slider-controls {
        display: none;
    }
}