body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.navbar-brand {
    font-weight: bold;
}
.thumbnailPreview {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #e9ecef;
}
.result-thumbnail {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
#log {
    background-color: #e9ecef;
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    font-size: 0.85em;
    color: #333;
}
.card-header {
    background-color: #ffffff;
    font-weight: 500;
}
.btn {
    transition: all 0.2s ease-in-out;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Khu vực hiển thị kết quả metadata */
.results-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}
.result-card {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease-in-out;
}
.result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.result-card .thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}
.result-card .content {
    flex: 1;
}
.result-card .filename {
    font-weight: bold;
    color: #495057;
    font-size: 0.9em;
    word-break: break-all;
}
.result-card .title {
    font-size: 1.1em;
    font-weight: 500;
    margin: 5px 0;
}
.keywords-container {
    margin-top: 10px;
}
.keyword-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}
/* Drag & drop upload zone */
.dropzone {
    background: #f8fafc;
    border: 2px dashed #98b8d9;
    color: #346699;
    font-size: 1.05em;
    border-radius: 8px;
    padding: 32px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.dropzone.dragover {
    background: #e6f7ff;
    border-color: #3fb6ff;
}
/* File list UI Scroll/Badge */
#fileListContainer {
    max-height: 180px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 12px;
}
.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.96em;
}
.badge {
    min-width: 80px;
    text-align: center;
    font-size: 0.95em;
    letter-spacing: 0.012em;
}
.bg-secondary {background:#adb5bd!important; color:#fff!important;}

/* Progress counter and bar */
.progress-bar {
    background: linear-gradient(to right, #34c6eb, #49f08e);
    box-shadow: 0 1.5px 6px rgba(76,201,240,0.15);
    transition: width 0.3s;
}
#progressCounter,#uploadStatus {
    text-align: right;
    font-size: 0.95em;
    color:#677390;
    font-weight: 500;
}

/* Status message & log status highlight */
#statusMessage {
    color: #3bb043;
    font-weight: 600;
}
#successCount { color: #198754; }
#failedCount { color: #dc3545; }

#thumbnailPreview {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #e9ecef;
}
