/* ===== Global Styles ===== */
body {
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* ===== SEO Content Sections ===== */
.bit-seo-content {
    padding: 32px 0;
}

.bit-seo-content h2 {
    color: #2c3e50;
    margin-bottom: 16px;
}

.bit-seo-content p {
    color: #555;
    line-height: 1.7;
}

.bit-faq-section details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
}

.bit-faq-section summary {
    font-weight: 600;
    cursor: pointer;
    color: #2c3e50;
}

.bit-faq-section details[open] summary {
    margin-bottom: 10px;
    color: #0d6efd;
}

/* ===== Hub Page Feature Cards ===== */
.bit-feature-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    text-decoration: none;
}

.bit-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.bit-feature-card .card-body {
    padding: 28px 20px;
}

.bit-feature-card .bi {
    font-size: 2.5rem;
    color: #0d6efd;
}

.bit-page-title {
    color: #2c3e50;
    border-left: 4px solid #0d6efd;
    padding-left: 12px;
}

/* ===== Drop Zone ===== */
.bit-drop-zone {
    border: 2px dashed #b0c4de;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.bit-drop-zone:hover,
.bit-drop-zone.bit-drag-over {
    border-color: #0d6efd;
    background: #e8f0fe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

/* ===== Thumbnail Preview Grid ===== */
.bit-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.bit-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    border: 1px solid #ddd;
}

.bit-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bit-preview-item .bit-preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Hover Preview Button ===== */
.bit-preview-item .bit-preview-hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

.bit-preview-item:hover .bit-preview-hover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.bit-preview-item:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    border-radius: 8px;
    pointer-events: none;
}

/* ===== Preview Modal ===== */
.bit-preview-modal-body {
    max-height: 85vh;
    overflow: auto;
    background: #f0f0f0;
    min-height: 200px;
    padding: 0;
}

.bit-preview-modal-body img {
    max-width: none;
    display: block;
}

.bit-preview-loading {
    padding: 48px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* ===== Thumbnail Status Badge ===== */
.bit-preview-item .bit-preview-status {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.bit-preview-item .bit-preview-status.done {
    background: #28a745;
    color: #fff;
}

.bit-preview-item .bit-preview-status.fail {
    background: #dc3545;
    color: #fff;
}

/* ===== 3×3 Position Grid ===== */
.bit-position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 140px;
    margin: 0 auto;
}

.bit-pos-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #6c757d;
    padding: 0;
}

.bit-pos-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #e8f0fe;
}

.bit-pos-btn.active {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
}

/* ===== Watermark Image Upload Box ===== */
.bit-wm-upload-box {
    width: 100%;
    height: 100px;
    border: 2px dashed #b0c4de;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    background: #fafbfc;
}

.bit-wm-upload-box:hover {
    border-color: #0d6efd;
    background: #e8f0fe;
}

.bit-wm-upload-box .bit-wm-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #fff;
}

/* ===== Progress Bar ===== */
.progress {
    height: 24px;
    border-radius: 12px;
}

.progress-bar {
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    border-radius: 12px;
}

/* ===== Card Style ===== */
.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid #eee;
}

/* ===== Navbar ===== */
.navbar-nav .nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0 2px;
    transition: background 0.2s;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}
