/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #3c434a;
}

a {
    color: #007cba;
    text-decoration: none;
}
a:hover {
    color: #00a0d2;
}

/* Layout */
#keret {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.Login {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 12px 24px;
}

/* Current Scan Box */
.current-scan-box {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}
.current-scan-box strong {
    color: #50575e;
    display: block;
    margin-bottom: 5px;
}

/* Modernized Stats Grid */
.scan-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}
.stat-box {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}
.stat-box strong {
    color: #50575e;
    margin-bottom: 5px;
}
.stat-box span {
    font-size: 15px;
    font-weight: 600;
    word-break: break-all;
}
#cs {
	font-weight: 400;
	font-size: 13px;
	color: #007cba;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

/* Buttons */
.gomb, a.gomb:focus {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0 8px 8px 0;
    padding: 0 12px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 600;
}
.gomb:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

/* Scan Status */
.virus { color: #d63638; }
.suspicious { color: #f56e28; }
.deleted { color: #646970; }

#cleanbox {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}
#cleaning {
    margin-right: 8px;
}

/* Results Table */
#scan-results {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    overflow-x: auto;
    border: 1px solid #c3c4c7;
    margin: 1em 0;
    border-radius: 4px;
    background: #fff;
}
#resulttable {
    width: 100%;
    border-collapse: collapse;
}
#resulttable tr td, #resulttable tr th {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}
#resulttable tr th {
    font-weight: 600;
}
#resulttable tr:hover td {
    background-color: #f0f0f1;
    cursor: default;
}

/* Notices */
#hiba {
    display: none;
    border-left-width: 4px;
    border-left-style: solid;
    padding: 12px;
    margin: 1em 0;
    background-color: #fff;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
#hiba b {
    font-size: 1.1em;
    font-weight: 600;
}
#hiba {
    border-color: #007cba; /* Blue for info */
}
#hiba.piros {
    border-color: #d63638; /* Red for error */
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .gomb, a.gomb:focus {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
}

/* Progress Bar */
#progress-container {
    margin: 1em 0;
}
#scan-progress {
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
}
#scan-progress::-webkit-progress-bar {
    background-color: #f0f0f1;
    border-radius: 3px;
}
#scan-progress::-webkit-progress-value {
    background-color: #007cba;
    border-radius: 2px;
    transition: width 0.2s ease-in-out;
}
#scan-progress::-moz-progress-bar {
    background-color: #007cba;
    border-radius: 2px;
}
#progress-bar-text {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

/* CSS Circular Spinner */
.css-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(0, 124, 186, 0.2);
    border-radius: 50%;
    border-top-color: #007cba;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Larger spinner for the results container */
#scan-results .css-spinner {
    display: block;
    margin: 30px auto;
    width: 32px;
    height: 32px;
    border-width: 4px;
}