/**
 * Feedback Styles
 */

/* Feedback Manager */
.feedback-manager {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.feedback-header h2 {
    margin: 0;
    color: #2d7a3e;
}

/* Tabs */
.feedback-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #2d7a3e;
}

.tab-btn.active {
    color: #2d7a3e;
    border-bottom-color: #2d7a3e;
}

.feedback-author {
    color: #2d7a3e;
    font-weight: 600;
}

/* Form */
.feedback-form-container {
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-card h3 {
    margin-top: 0;
    color: #2d7a3e;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #2d7a3e;
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Filters */
.feedback-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
}

.filter-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.filter-control:focus {
    outline: none;
    border-color: #2d7a3e;
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

/* Responsive filters */
@media (max-width: 768px) {
    .feedback-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-control {
        width: 100%;
    }
}

/* Feedback List */
.feedback-list-container h3 {
    color: #2d7a3e;
    margin-bottom: 1.5rem;
}

.feedback-list {
    display: grid;
    gap: 1rem;
}

.feedback-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Resolved feedback styling - slightly grayed out */
.feedback-card.feedback-resolved {
    opacity: 0.65;
    background: #f8f9fa;
}

.feedback-card.feedback-resolved:hover {
    opacity: 0.75;
}

.feedback-card .feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.feedback-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.feedback-type.bug {
    background: #fee;
    color: #c33;
}

.feedback-type.feature {
    background: #efe;
    color: #2d7a3e;
}

.feedback-type.aesthetic {
    background: #f3e5f5;
    color: #7b1fa2;
}

.feedback-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-new {
    background: #e3f2fd;
    color: #1565c0;
}

.status-in_progress {
    background: #fff3e0;
    color: #ef6c00;
}

.status-resolved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

.feedback-title {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.125rem;
}

.feedback-description {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.6;
}

.feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #999;
}

.feedback-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.feedback-creator {
    color: #999;
    font-size: 0.875rem;
}

.feedback-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.feedback-actions .edit-feedback-btn,
.feedback-actions .delete-feedback-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.feedback-actions .edit-feedback-btn:hover,
.feedback-actions .delete-feedback-btn:hover {
    opacity: 1;
}

.feedback-comments {
    color: #2d7a3e;
}

/* Admin Feedback */
.admin-feedback {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-feedback-header h2 {
    margin: 0;
    color: #2d7a3e;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filters select {
    min-width: 200px;
}

/* Table */
.feedback-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-table th,
.feedback-table td {
    padding: 1rem;
    text-align: left;
}

.feedback-table thead {
    background: #f8f9fa;
}

.feedback-table th {
    font-weight: 600;
    color: #333;
}

.feedback-table tbody tr {
    border-top: 1px solid #eee;
}

.feedback-table tbody tr:hover {
    background: #f8f9fa;
}

.status-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-buttons .view-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    color: #2d7a3e;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    text-decoration: underline;
}

.action-buttons .view-btn:hover {
    opacity: 1;
}

.action-buttons .delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.action-buttons .delete-btn:hover {
    opacity: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
}

.pagination-btn.active {
    background: #2d7a3e;
    color: white;
    border-color: #2d7a3e;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Feedback Detail Modal */
.feedback-detail-modal {
    max-width: 700px;
}

.feedback-detail {
    padding: 1rem 0;
}

.feedback-detail__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feedback-detail__title {
    font-size: 1.5rem;
    color: #2d7a3e;
    margin: 0 0 1rem 0;
}

.feedback-detail__description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

.feedback-detail__info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
    color: #666;
}

.feedback-comments-section {
    margin-top: 2rem;
}

.feedback-comments-section h5 {
    color: #2d7a3e;
    margin-bottom: 1rem;
}

.comments-list {
    margin-bottom: 1.5rem;
}

.comment-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-header strong {
    color: #2d7a3e;
}

.comment-date {
    font-size: 0.75rem;
    color: #999;
}

.comment-text {
    margin: 0;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.empty-comments {
    color: #999;
    font-style: italic;
    margin: 1rem 0;
}

.add-comment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.add-comment-form h5 {
    margin-bottom: 0.5rem;
}

.add-comment-form textarea {
    margin-bottom: 1rem;
}

.add-comment-form .btn {
    margin-top: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state p {
    margin: 0.5rem 0;
}

.empty-state .hint {
    font-size: 0.875rem;
    color: #bbb;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* Error Message */
.error-message {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}
