/**
 * Feedback Admin Styles
 * 
 * Note: Global styles (CSS variables, form inputs, buttons, modals, etc.)
 * are defined in admin-global.css which is loaded as a dependency.
 */

/* ===============================================
   Feedback Page Layout
   =============================================== */

.cha-feedback-container {
    min-height: calc(100vh - 100px);
}

/* Sidebar */
/* Sidebar styles removed (use admin-global.css) */

/* Main Content */
.cha-feedback-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* Stats Cards */
/* Stats cards styles removed (use admin-global.css) */

.cha-feedback-layout {
    display: flex;
    gap: 24px;
}

/* Table Container */
.cha-feedback-table-container {
    background: var(--cha-white);
    border-radius: var(--cha-radius);
    box-shadow: var(--cha-shadow);
    overflow: hidden;
}

/* Table header styles are in admin-global.css */

/* Table column widths specific to Feedback */
.cha-col-title {

    width: 35%;
}

.cha-col-category {
    width: 15%;
}

.cha-col-status {
    width: 12%;
}

.cha-col-votes {
    width: 10%;
}

.cha-col-date {
    width: 15%;
}

.cha-col-actions {
    width: 13%;
}
.cha-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 7px;
    margin-bottom: -4px;
    opacity: 0;
    visibility: hidden;
}

.cha-feedback-table tbody tr:hover .cha-actions {
	opacity: 1;
	visibility: visible;
}
/* ===============================================
   Feedback Detail Modal Specific
   =============================================== */

/* Note: Basic modal styles (cha-modal-*, cha-btn-*) are in admin-global.css */

.cha-detail-content {
    line-height: 1.6;
    color: var(--cha-text-primary);
}

.cha-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cha-detail-meta label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--cha-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cha-detail-meta select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--cha-border);
    border-radius: var(--cha-radius-sm);
    font-size: 14px;
}

.cha-detail-stats {
    display: flex;
    gap: 16px;
    padding-top: 10px;
}

.cha-detail-stat {
    text-align: center;
}

.cha-detail-stat .cha-stat-count {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--cha-text-primary);
}

.cha-detail-stat .cha-stat-label {
    font-size: 12px;
    color: var(--cha-text-muted);
}

/* Note: Enhanced Feedback Detail Modal styles are in admin-global.css */
/* Note: Simple Rich Editor styles are in admin-global.css */

/* ===============================================
   Responsive - Feedback Specific
   =============================================== */

@media (max-width: 1200px) {
    .cha-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .cha-feedback-container {
        grid-template-columns: 1fr;
    }

    .cha-feedback-sidebar {
        position: static;
    }

    .cha-product-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .cha-stats-cards {
        grid-template-columns: 1fr;
    }

    .cha-table-filters {
        flex-wrap: wrap;
    }

    .cha-modal-lg {
        width: 95%;
    }
}


/* ===============================================
   Category Management Modal
   =============================================== */

/* Button icon for manage categories */
.cha-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--cha-border);
    border-radius: var(--cha-radius-sm);
    background: var(--cha-white);
    cursor: pointer;
    color: var(--cha-text-secondary);
    transition: all 0.2s ease;
}

.cha-btn-icon:hover {
    background: var(--cha-background);
    color: var(--cha-primary);
    border-color: var(--cha-primary);
}


#cha-category-modal .cha-modal-body {
    display: block;
}
#cha-category-modal .cha-col-actions {
    display: flex;
    padding: 12px;
}
/* Add category form */
.cha-add-category-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.cha-add-category-form .cha-input {
    flex: 1;
}

.cha-add-category-form .cha-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Categories list wrapper */
.cha-categories-list-wrap {
    position: relative;
    min-height: 100px;
}

/* Categories table */
.cha-categories-table {
    width: 100%;
    border-collapse: collapse;
}

.cha-categories-table tr {
    border-bottom: 1px solid var(--cha-border);
}

.cha-categories-table th,
.cha-categories-table td {
    padding: 10px 12px;
    text-align: left;
}

.cha-categories-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--cha-text-secondary);
    background: var(--cha-background);
}

.cha-categories-table td {
    padding: 11px 12px;
}

.cha-categories-table td {
    font-size: 14px;
    color: var(--cha-text-primary);
}

.cha-categories-table td code {
    padding: 2px 6px;
    background: var(--cha-background);
    border-radius: 4px;
    font-size: 12px;
    color: var(--cha-text-secondary);
}

.cha-categories-table .cha-col-count {
    text-align: center;
    width: 60px;
}

.cha-categories-table .cha-col-actions {
    width: 100px;
    text-align: right;
}

.cha-categories-table .cat-name-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
}
.cha-categories-table .cat-name-input {
    padding:  0 12px;
}

/* Category action buttons */
.cha-categories-table .cha-action-btn {
    padding: 4px;
    margin-left: 4px;
}

/* Empty and loading states */
.cha-categories-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--cha-text-secondary);
}

.cha-categories-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
