/* Generated by GitHub Copilot */
/* Shared dashboard styles for Reviewer and Author dashboards */

/* Page container */
.dashboard-container {
    padding: 16px 24px;
}

/* Page heading */
.dashboard-heading {
    font-weight: 700;
    color: #212529;
    margin-bottom: 24px;
}

/* Summary cards section */
.summary-section {
    margin-bottom: 24px;
}

.summary-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.summary-card {
    flex: 1 1 0;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.icon-draft {
    background-color: #f59e0b;
}

.icon-submitted {
    background-color: #3b82f6;
}

.icon-comments {
    background-color: #ec4899;
}

.icon-approved {
    background-color: #22c55e;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-count {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.summary-label {
    font-size: 13px;
    color: #6c757d;
}

/* Filter bar */
.filter-section {
    margin-bottom: 24px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1 1 auto;
    min-width: 200px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.search-input {
    padding-left: 36px;
    height: 38px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.filter-select {
    width: 150px;
    height: 38px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Submissions table */
.submissions-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 14px;
}

.submissions-table thead {
    background-color: #f8f9fa;
}

.submissions-table th {
    font-weight: 700;
    font-size: 13px;
    color: #212529;
    padding: 12px 10px;
    border: 1px solid #e9ecef;
}

.submissions-table td {
    padding: 12px 10px;
    border: 1px solid #e9ecef;
    vertical-align: middle;
    color: #212529;
}

.submissions-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Sort button in headers */
.sort-button {
    background: none;
    border: none;
    padding: 0;
    font-weight: 700;
    font-size: 13px;
    color: #212529;
    cursor: pointer;
    white-space: nowrap;
}

.sort-button:hover {
    text-decoration: underline;
}

.sort-button:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Truncated cells */
.cell-truncate {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action links */
.action-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.action-link:hover {
    text-decoration: underline;
}

.action-link:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Column resize handles */
.resizable-th {
    position: relative;
}

.resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
}

.resize-handle:hover {
    background-color: #0d6efd;
    opacity: 0.4;
}

/* Responsive: cards stack below 768px */
@media (max-width: 767.98px) {
    .summary-cards {
        flex-direction: column;
    }

    .summary-card {
        min-width: unset;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }
}

/* Table horizontal scroll below 992px */
@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto;
    }
}
