/* Feedback Modal Styles */
#feedback-modal .modal-content {
    max-width: 600px;
}

#feedback-form textarea {
    min-height: 120px;
    resize: vertical;
}

#feedback-form .form-group {
    margin-bottom: 20px;
}

#feedback-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

#feedback-form input,
#feedback-form select,
#feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

#feedback-form input:focus,
#feedback-form select:focus,
#feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.feedback-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Mobile responsive */
@media (max-width: 640px) {
    #feedback-modal .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    #feedback-form input,
    #feedback-form select,
    #feedback-form textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Admin Panel Styles */
.admin-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.feedback-filters select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}

.feedback-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feedback-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feedback-item.status-new {
    border-left: 4px solid #f59e0b;
}

.feedback-item.status-reviewed {
    border-left: 4px solid #3b82f6;
}

.feedback-item.status-resolved {
    border-left: 4px solid #10b981;
}

.feedback-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feedback-content {
    flex: 1;
}

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

.feedback-subject {
    font-weight: 600;
    color: var(--text);
}

.feedback-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.feedback-status.status-new {
    background: #fef3c7;
    color: #92400e;
}

.feedback-status.status-reviewed {
    background: #dbeafe;
    color: #1e40af;
}

.feedback-status.status-resolved {
    background: #d1fae5;
    color: #065f46;
}

.feedback-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.feedback-preview {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Feedback Detail Modal */
.feedback-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    font-size: 0.875rem;
}

.detail-message {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.detail-technical {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
}

.feedback-actions-admin {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.feedback-actions {
    display: flex;
    gap: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .feedback-filters {
        flex-direction: column;
    }
    
    .feedback-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .feedback-actions-admin {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Danger Zone Styles */
.danger-zone {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.danger-warning {
    color: #721c24;
    background: #f8d7da;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-danger-outline {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: #dc3545;
    color: white;
}

.setting-description {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.settings-section {
    margin-bottom: 2rem;
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}
