/**
 * Coachment Feedback Frontend CSS
 */

.coachment-feedback-list {
    margin: 20px 0;
}

.coachment-feedback-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.feedback-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.feedback-view-toggle {
    display: flex;
    gap: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    background: #f5f5f5;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    color: #666;
}

.view-toggle-btn:hover {
    background: #e9e9e9;
    color: #23282d;
}

.view-toggle-btn.active {
    background: #0073aa;
    color: white;
}

.view-toggle-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.coachment-feedback-items {
    display: grid;
    gap: 20px;
}

/* Card view (default) */
.feedback-view-card .feedback-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* List view (table) */
.feedback-view-list .coachment-feedback-items {
    display: block;
}

.coachment-feedback-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.coachment-feedback-table thead {
    background: #f5f5f5;
}

.coachment-feedback-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #23282d;
    border-bottom: 2px solid #ddd;
}

.coachment-feedback-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 14px;
}

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

.coachment-feedback-table tbody tr:last-child td {
    border-bottom: none;
}

.feedback-view-list .feedback-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0;
}

.feedback-view-list .feedback-type,
.feedback-view-list .feedback-priority,
.feedback-view-list .feedback-status {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    padding: 3px 8px;
}

.feedback-view-list .feedback-message {
    margin-bottom: 0;
    line-height: 1.5;
    color: #333;
}

.feedback-view-list .feedback-plugin {
    font-weight: 600;
    color: #23282d;
}

.feedback-view-list .plugin-version {
    color: #666;
    font-weight: normal;
    font-size: 12px;
}

.feedback-view-list .feedback-author {
    color: #666;
}

.feedback-view-list .feedback-date {
    color: #999;
    font-size: 12px;
}

.feedback-view-list .feedback-votes {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.feedback-view-list .vote-button {
    padding: 6px 12px;
    font-size: 13px;
}

.feedback-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.feedback-type,
.feedback-priority,
.feedback-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.feedback-type.type-ide {
    background: #5cb85c;
}

.feedback-type.type-fejl {
    background: #d9534f;
}

.feedback-priority.priority-mindre {
    background: #5cb85c;
}

.feedback-priority.priority-vigtigt {
    background: #f0ad4e;
}

.feedback-priority.priority-kritisk {
    background: #d9534f;
}

.feedback-status.status-ny {
    background: #f0ad4e;
}

.feedback-status.status-under-behandling {
    background: #5bc0de;
}

.feedback-status.status-faerdig {
    background: #5cb85c;
}

.feedback-status.status-afvist {
    background: #d9534f;
}

.feedback-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
}

.feedback-message {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feedback-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.feedback-plugin {
    font-weight: bold;
}

.plugin-version {
    color: #666;
    font-weight: normal;
}

.feedback-votes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.vote-button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.vote-button:hover {
    background: #e9e9e9;
}

.vote-button.voted {
    background: #0073aa;
    border-color: #005177;
    color: white;
}

.vote-icon {
    font-size: 16px;
}

.vote-count {
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .coachment-feedback-filters {
        flex-direction: column;
    }
    
    .feedback-filter {
        width: 100%;
    }
    
    .feedback-meta {
        flex-direction: column;
        gap: 5px;
    }
}

