/* assets/css/pages/feedback.css - Feedback page styles (shared styles: assets/css/public-layout.css) */

body.dark .navbar,
body.dark .footer,
body.dark .card,
body.dark .benefit-card,
body.dark .pill-role,
body.dark .cta-box,
body.dark .sidebar-overlay,
body.dark .sidebar,
body.dark .who-card,
body.dark .feedback-card,
body.dark .feedback-form-card {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark .ai-chat-input input::placeholder {
    color: #94a3b8 !important;
}

body.dark .feedback-card .feedback-stars {
    color: #fbbf24 !important;
}

body.dark .feedback-card .feedback-helpful button {
    color: #7aa9ff !important;
}

body.dark .feedback-form-card .form-control {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark .feedback-form-card .form-control::placeholder {
    color: #94a3b8 !important;
}

body.dark .feedback-form-card .star-rating i {
    color: #475569 !important;
}

body.dark .feedback-form-card .star-rating i.active {
    color: #fbbf24 !important;
}

.btn-success {
    background: #22c55e;
    color: #fff;
}

.btn-success:hover {
    background: #16a34a;
    transform: scale(1.02);
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

body.dark .btn-outline {
    border-color: #475569;
    color: #e2e8f0;
}

body.dark .btn-outline:hover {
    background: #2d3a52;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    padding: 30px 0 20px;
    background: #f6f9fc;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
    transition: background 0.3s;
}

body.dark .page-header {
    background: #0f172a;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.05rem;
    color: #4a5c72;
}

body.dark .page-header p {
    color: #94a3b8;
}

.page-header .breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5c72;
    margin-top: 6px;
}

body.dark .page-header .breadcrumb {
    color: #94a3b8;
}

.page-header .breadcrumb a {
    color: #0d6efd;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================================
   RATING SUMMARY
   ============================================================ */

.rating-summary-section {
    padding: 30px 0 20px;
}

.rating-summary-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.rating-big {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    transition: background 0.3s, border-color 0.3s;
}

body.dark .rating-big {
    background: #1e293b;
    border-color: #334155;
}

.rating-big .big-number {
    font-size: 4rem;
    font-weight: 700;
    color: #0b1e33;
    line-height: 1;
}

body.dark .rating-big .big-number {
    color: #f1f5f9;
}

.rating-big .big-stars {
    color: #f59e0b;
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin: 4px 0;
}

.rating-big .big-total {
    color: #4a5c72;
    font-size: 0.95rem;
}

body.dark .rating-big .big-total {
    color: #94a3b8;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar-row .star-label {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 50px;
    color: #4a5c72;
}

body.dark .rating-bar-row .star-label {
    color: #94a3b8;
}

.rating-bar-row .bar-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 40px;
    overflow: hidden;
}

body.dark .rating-bar-row .bar-track {
    background: #2d3a52;
}

.rating-bar-row .bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 40px;
    transition: width 0.6s ease;
}

.rating-bar-row .bar-percent {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
    color: #4a5c72;
}

body.dark .rating-bar-row .bar-percent {
    color: #94a3b8;
}

/* ============================================================
   FEEDBACK FILTERS
   ============================================================ */

.filter-section {
    padding: 10px 0 20px;
}

.filter-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.06);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    transition: background 0.3s, border-color 0.3s;
}

.filter-card label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #0b1e33;
}

body.dark .filter-card label {
    color: #eef2f6;
}

.filter-card select,
.filter-card input {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.9rem;
    outline: none;
    background: #f8faff;
    color: #0b1e33;
    cursor: pointer;
    min-width: 140px;
}

.filter-card select:focus,
.filter-card input:focus {
    border-color: #0d6efd;
}

.filter-card .filter-btn {
    padding: 8px 24px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-card .filter-btn:hover {
    background: #0b5ed7;
}

.filter-card .reset-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5c72;
}

.filter-card .reset-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

body.dark .filter-card .reset-btn {
    color: #94a3b8;
    border-color: #475569;
}

body.dark .filter-card .reset-btn:hover {
    background: #2d3a52;
}

/* ============================================================
   FEEDBACK LIST
   ============================================================ */

.feedback-list-section {
    padding: 10px 0 40px;
}

.feedback-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.06);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.feedback-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.feedback-card .feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.feedback-card .feedback-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feedback-card .feedback-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.feedback-card .feedback-date {
    font-size: 0.8rem;
    color: #4a5c72;
    margin-left: auto;
}

body.dark .feedback-card .feedback-date {
    color: #94a3b8;
}

.feedback-card .feedback-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.feedback-card .feedback-doctor {
    font-size: 0.85rem;
    color: #0d6efd;
    font-weight: 500;
    margin-left: 8px;
}

body.dark .feedback-card .feedback-doctor {
    color: #7aa9ff;
}

.feedback-card .feedback-text {
    font-size: 0.95rem;
    color: #4a5c72;
    margin-top: 6px;
    line-height: 1.7;
}

body.dark .feedback-card .feedback-text {
    color: #94a3b8;
}

.feedback-card .feedback-helpful {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #4a5c72;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.dark .feedback-card .feedback-helpful {
    color: #94a3b8;
}

.feedback-card .feedback-helpful button {
    background: none;
    border: none;
    color: #0d6efd;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.feedback-card .feedback-helpful button:hover {
    color: #0b5ed7;
}

.feedback-card .feedback-helpful .helpful-count {
    color: #4a5c72;
    font-size: 0.8rem;
}

body.dark .feedback-card .feedback-helpful .helpful-count {
    color: #94a3b8;
}

/* ============================================================
   WRITE FEEDBACK FORM
   ============================================================ */

.feedback-form-section {
    padding: 20px 0 50px;
}

.feedback-form-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    padding: 32px;
    transition: background 0.3s, border-color 0.3s;
}

.feedback-form-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feedback-form-card .form-subtitle {
    color: #4a5c72;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

body.dark .feedback-form-card .form-subtitle {
    color: #94a3b8;
}

.feedback-form-card .form-group {
    margin-bottom: 16px;
}

.feedback-form-card .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #0b1e33;
}

body.dark .feedback-form-card .form-label {
    color: #eef2f6;
}

.feedback-form-card .form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
    background: #f8faff;
    color: #0b1e33;
}

.feedback-form-card .form-control:focus {
    border-color: #0d6efd;
}

.feedback-form-card .form-control::placeholder {
    color: #94a3b8;
}

.feedback-form-card select.form-control {
    appearance: auto;
    cursor: pointer;
}

.feedback-form-card textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.feedback-form-card .star-rating {
    display: flex;
    gap: 8px;
    font-size: 2rem;
    cursor: pointer;
    margin: 4px 0 8px;
}

.feedback-form-card .star-rating i {
    color: #d1d5db;
    transition: color 0.2s;
}

.feedback-form-card .star-rating i.active {
    color: #f59e0b;
}

.feedback-form-card .star-rating i:hover {
    color: #f59e0b;
}

.feedback-form-card .rating-text {
    font-size: 0.9rem;
    color: #4a5c72;
    margin-bottom: 12px;
}

body.dark .feedback-form-card .rating-text {
    color: #94a3b8;
}

.feedback-form-card .submit-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .rating-summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .phone-popup {
        right: 55px;
        min-width: 180px;
    }
    .lang-popup {
        right: 55px;
        min-width: 130px;
    }
    .ai-chat-widget {
        width: 340px;
        height: 460px;
        right: 80px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-actions .btn {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .navbar .container {
        flex-wrap: wrap;
    }
    .nav-actions {
        margin-left: auto;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .rating-big .big-number {
        font-size: 3rem;
    }
    .rating-big .big-stars {
        font-size: 1.4rem;
    }
    .filter-card {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-card select,
    .filter-card input {
        width: 100%;
        min-width: auto;
    }
    .feedback-form-card {
        padding: 20px;
    }
    .feedback-form-card .submit-row {
        flex-direction: column;
    }
    .feedback-form-card .submit-row .btn {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .sidebar {
        width: 280px;
        left: -300px;
    }
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 6px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    .floating-btn .tooltip,
    .ai-chat-toggle .tooltip {
        display: none;
    }
    .phone-popup {
        right: 48px;
        min-width: 160px;
        bottom: 0;
    }
    .phone-popup .phone-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 48px;
        min-width: 120px;
        bottom: 0;
    }
    .lang-popup .lang-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .ai-chat-widget {
        width: 300px;
        height: 420px;
        right: 70px;
        bottom: 16px;
    }
    .ai-chat-messages {
        padding: 10px 14px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
    .ai-chat-header {
        padding: 10px 14px;
        min-height: 50px;
    }
    .ai-chat-header .avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.8rem;
    }
    .ai-chat-input {
        padding: 8px 12px 12px;
        gap: 6px;
    }
    .ai-chat-input input {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-height: 34px;
    }
    .ai-chat-input button {
        font-size: 0.8rem;
        padding: 6px 14px;
        min-height: 34px;
    }
    .quick-replies {
        padding: 0 12px 6px;
    }
    .quick-replies button {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .feedback-card .feedback-header {
        flex-wrap: wrap;
    }
    .feedback-card .feedback-date {
        margin-left: 0;
        width: 100%;
    }
    .feedback-form-card {
        padding: 16px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
    .floating-actions {
        bottom: 12px;
        right: 12px;
        gap: 5px;
    }
    .phone-popup {
        right: 42px;
        min-width: 140px;
        bottom: 0;
        padding: 8px 0;
        border-radius: 12px;
    }
    .phone-popup .phone-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 8px;
    }
    .phone-popup .phone-item i {
        width: 16px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 42px;
        min-width: 100px;
        bottom: 0;
        padding: 6px 0;
        border-radius: 12px;
    }
    .lang-popup .lang-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
    .ai-chat-widget {
        width: 280px;
        height: 380px;
        right: 60px;
        bottom: 12px;
        border-radius: 16px;
    }
    .ai-chat-messages {
        padding: 10px 12px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.75rem;
        padding: 6px 10px;
        max-width: 90%;
    }
    .ai-chat-header {
        padding: 8px 12px;
        min-height: 44px;
    }
    .ai-chat-header .avatar {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.75rem;
    }
    .ai-chat-header .header-info p {
        font-size: 0.6rem;
    }
    .ai-chat-input {
        padding: 6px 10px 10px;
        gap: 5px;
    }
    .ai-chat-input input {
        font-size: 0.75rem;
        padding: 5px 10px;
        min-height: 30px;
    }
    .ai-chat-input button {
        font-size: 0.75rem;
        padding: 5px 12px;
        min-height: 30px;
    }
    .quick-replies {
        padding: 0 10px 4px;
        gap: 4px;
    }
    .quick-replies button {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}

@media (max-width: 400px) {
    .phone-popup {
        right: 38px;
        min-width: 120px;
    }
    .phone-popup .phone-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .lang-popup {
        right: 38px;
        min-width: 90px;
    }
    .lang-popup .lang-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .ai-chat-widget {
        width: 250px;
        height: 340px;
        right: 52px;
    }
    .ai-chat-messages {
        padding: 8px 10px;
    }
    .ai-chat-messages .message {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    .ai-chat-input input {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-height: 26px;
    }
    .ai-chat-input button {
        font-size: 0.7rem;
        padding: 4px 10px;
        min-height: 26px;
    }
}
