/* ===== استایل‌های بخش صندوق انتقادات و پیشنهادات ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 15px;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 25px;
}

/* ===== هدر ===== */
.main-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}
.main-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}
.main-header p {
    opacity: 0.9;
    font-size: 14px;
}
.back-link {
    display: inline-block;
    color: #ffd700;
    text-decoration: none;
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
}
.back-link:hover {
    text-decoration: underline;
}

/* ===== نوار مدیریت ===== */
.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 8px;
}
.admin-bar .admin-info {
    font-size: 13px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
}
.admin-bar .admin-info .admin-name {
    color: #3498db;
    font-weight: bold;
}
.admin-bar .logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}
.admin-bar .logout-btn:hover {
    background: #c82333;
}

/* ===== دکمه‌ها ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: Tahoma;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn-primary {
    background: #3498db;
    color: white;
}
.btn-primary:hover {
    background: #2980b9;
}
.btn-success {
    background: #28a745;
    color: white;
}
.btn-success:hover {
    background: #218838;
}
.btn-danger {
    background: #dc3545;
    color: white;
}
.btn-danger:hover {
    background: #c82333;
}
.btn-warning {
    background: #ffc107;
    color: #2c3e50;
}
.btn-warning:hover {
    background: #e0a800;
}
.btn-secondary {
    background: #95a5a6;
    color: white;
}
.btn-secondary:hover {
    background: #7f8c8d;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.btn-block {
    width: 100%;
    justify-content: center;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== فرم‌ها ===== */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}
.form-group label .required {
    color: #dc3545;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: Tahoma;
    font-size: 15px;
    transition: border 0.3s;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
select.form-control {
    appearance: auto;
}

/* ===== نوع درخواست (رادیو باتن) ===== */
.type-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.type-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}
.type-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    cursor: pointer;
}
.type-group label:hover {
    color: #3498db;
}

/* ===== پیام‌ها ===== */
.notification {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    font-weight: 600;
}
.notification.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.notification.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.notification.info {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.notification.warning {
    display: block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}
.empty-state .icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}

/* ===== مودال ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}
.modal-content .modal-body {
    font-size: 14px;
    line-height: 1.8;
    color: #2c3e50;
}
.modal-content .modal-body .section-title {
    font-weight: 700;
    color: #2c3e50;
    margin-top: 12px;
}
.modal-content .modal-body .highlight {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-right: 3px solid #3498db;
    margin: 6px 0;
}
.modal-content .modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

/* ===== مدیریت ===== */
.filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.filter-buttons .filter-btn {
    padding: 6px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-family: Tahoma;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}
.filter-buttons .filter-btn.active {
    border-color: #3498db;
    background: #3498db;
    color: white;
}
.filter-buttons .filter-btn:hover:not(.active) {
    border-color: #3498db;
}

.stats-box {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid #e9ecef;
}
.stats-box .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}
.stats-box .stat-item .number {
    color: #3498db;
    font-size: 18px;
}

.suggestion-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.3s;
}
.suggestion-item:hover {
    border-color: #3498db;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.suggestion-item .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.suggestion-item .badge {
    font-size: 12px;
    padding: 3px 14px;
    border-radius: 20px;
    font-weight: 600;
}
.suggestion-item .badge.criticism {
    background: #f8d7da;
    color: #721c24;
}
.suggestion-item .badge.suggestion {
    background: #d1ecf1;
    color: #0c5460;
}
.suggestion-item .badge.praise {
    background: #d4edda;
    color: #155724;
}
.suggestion-item .patient-name {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
}
.suggestion-item .info-row {
    font-size: 13px;
    color: #7f8c8d;
    margin: 4px 0;
}
.suggestion-item .info-row strong {
    color: #2c3e50;
}
.suggestion-item .text-content {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 8px 0;
    border-right: 3px solid #3498db;
}
.suggestion-item .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    .main-header h1 {
        font-size: 20px;
    }
    .main-header p {
        font-size: 13px;
    }
    .admin-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .type-group {
        gap: 12px;
    }
    .type-group label {
        font-size: 14px;
    }
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    .modal-content h2 {
        font-size: 18px;
    }
    .stats-box {
        flex-direction: column;
        gap: 8px;
    }
    .suggestion-item .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .suggestion-item .actions {
        flex-direction: column;
    }
    .suggestion-item .actions .btn {
        width: 100%;
        justify-content: center;
    }
    .filter-buttons .filter-btn {
        font-size: 12px;
        padding: 5px 12px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 8px;
    }
    .container {
        padding: 10px;
        border-radius: 10px;
    }
    .main-header {
        padding: 15px;
    }
    .main-header h1 {
        font-size: 17px;
    }
    .form-control {
        font-size: 13px;
        padding: 8px 10px;
    }
    .btn {
        font-size: 13px;
        padding: 8px 14px;
    }
    .type-group label {
        font-size: 13px;
    }
}