/* UPS Bill Checker - Custom Styles */

body {
    background-color: #f5f6f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #adb5bd;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #0d6efd;
    background: #e8f0fe;
}

.drop-zone.drag-over {
    transform: scale(1.01);
}

/* Summary cards */
.summary-card .card-body {
    padding: 0.75rem;
}

.summary-stat {
    font-size: 1.6rem;
}

/* Results table wrapper */
.results-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Results table */
.results-table {
    table-layout: fixed;
    width: 100%;
    min-width: 1100px;
    font-size: 0.8rem;
}

.results-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #212529;
    color: #fff;
}

.results-table th {
    white-space: nowrap;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.35rem;
    border-bottom: 2px solid #000;
    background: #212529;
    color: #fff;
}

.results-table td {
    vertical-align: middle;
    font-size: 0.8rem;
    padding: 0.3rem 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alternating rows */
.results-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.results-table tbody tr:nth-child(odd) {
    background-color: #fff;
}

/* Flagged rows */
.row-flagged {
    background-color: #fff0f0 !important;
    border-left: 4px solid #dc3545;
}

.row-flagged:nth-child(even) {
    background-color: #ffe8e8 !important;
}

.results-table tbody tr.row-flagged:hover {
    background-color: #ffd6d6 !important;
}

/* Column widths */
.col-sev { width: 24px; text-align: center; }
.cell-tracking { font-size: 0.72rem; max-width: 160px; }
.cell-compact { max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-wrap { white-space: normal; word-break: break-word; max-width: 140px; }
.cell-items { max-width: 200px; }
.cell-reason { max-width: 180px; white-space: normal; word-break: break-word; font-size: 0.72rem; }

/* Severity dots */
.sev-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.sev-red { background: #dc3545; }
.sev-orange { background: #fd7e14; }
.sev-yellow { background: #ffc107; }

/* Item rows with thumbnails */
.item-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.item-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    cursor: pointer;
}

.item-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #e9ecef;
    border-radius: 3px;
    color: #6c757d;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.item-name {
    font-size: 0.75rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* POD images */
.pod-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
}

/* Processing log */
#processing-log {
    font-size: 0.78rem;
    line-height: 1.6;
}

#processing-log .log-line {
    padding: 1px 0;
}

#processing-log .log-line:last-child {
    color: #6ef;
}

/* File list items */
#file-items .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border: none;
    font-size: 0.9rem;
}

.file-icon {
    width: 20px;
    text-align: center;
}

/* Filter buttons */
.filter-btn.active {
    font-weight: 600;
}

/* Navbar */
.navbar-brand {
    font-size: 1.15rem;
}

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Search hidden rows */
.search-hidden {
    display: none !important;
}
