* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; background-color: #008080; overflow: hidden; }
.main-window { width: 640px; height: 520px; margin: 50px auto; transition: width 0.2s, height 0.2s; display: flex; flex-direction: column; }
.main-window.fullscreen { width: 100%; height: 100%; margin: 0; }
.window-body { flex-grow: 1; overflow-y: auto; padding: 10px; min-height: 0; }
.controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.search-controls { display: flex; align-items: center; }
.search-controls input[type="text"] { flex-grow: 1; margin-right: 6px; }

/* === UPDATED DESKTOP TABLE STYLES === */
.desktop-view .results-table { margin-top: 15px; table-layout: fixed; width: 100%; }
.desktop-view .results-table th, 
.desktop-view .results-table td { padding: 4px 6px; }
.desktop-view .results-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Updated column widths to 60/10/15/15 */
.desktop-view .results-table .col-hash { width: 60%; }
.desktop-view .results-table .col-vt { width: 10%; text-align: center; }
.desktop-view .results-table .col-filename { width: 15%; }
.desktop-view .results-table .col-date { width: 15%; }
.desktop-view .results-table thead th { position: sticky; top: -1px; background-color: #c0c0c0; z-index: 10; }

/* === MOBILE CARD STYLES === */
.mobile-view { display: none; }
.record-card { padding: 8px; margin-bottom: 10px; }
.record-card .card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}
.record-card .record-filename {
    font-weight: bold;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.record-card .card-top-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.record-card .record-date { font-size: 0.9em; color: #555; white-space: nowrap; }
.record-card .record-hash { word-break: break-all; color: #333; }
.record-card .record-hash::before { content: 'SHA-256: '; font-weight: bold; color: #000; }

/* === VIRUSTOTAL LINK STYLE === */
.vt-link {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
    text-decoration: none;
    color: #000080;
    margin-left: 8px;
}
.vt-link:hover { color: #0000FF; }

/* === MEDIA QUERY FOR MOBILE === */
@media (max-width: 650px) {
    .main-window { width: 100%; height: 100%; margin: 0; transition: none; }
    .controls { flex-direction: column; gap: 15px; }
    .controls form { width: 100%; margin-right: 0 !important; }
    .desktop-view { display: none; }
    .mobile-view { display: block; }
}

/* === ICON ALIGNMENT === */
.title-bar-text img {
    vertical-align: middle;
    margin-right: 4px;
}