/**
 * Excel to JPG Converter Stylesheet
 * exceltoword.net
 */

/* 1. Off-screen sandbox container where HTML tables are staged for html2canvas */
.excel-sandbox-hidden {
    position: absolute !important;
    left: -99999px !important;
    top: 0 !important;
    width: max-content !important;
    min-width: 800px;
    background-color: #ffffff !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: -100;
}

/* 2. Render Card for Canvas Capture */
.excel-capture-container {
    background-color: #ffffff;
    padding: 32px 36px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    box-sizing: border-box;
    width: max-content;
    min-width: 760px;
}

.excel-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #14AE5C;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.excel-page-header .sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #1E1E2D;
    display: flex;
    align-items: center;
    gap: 8px;
}

.excel-page-header .page-tag {
    font-size: 11px;
    font-weight: 600;
    color: #14AE5C;
    background-color: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}

/* 3. Rendered Table Layout */
.excel-rendered-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: max-content;
    background-color: #ffffff;
    table-layout: fixed;
    margin: 0 auto;
}

.excel-rendered-table th,
.excel-rendered-table td {
    border: 1px solid #dcdfe4;
    padding: 5px 8px;
    font-size: 12.5px;
    color: #212529;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    line-height: 1.35;
}

/* Column row header repeat styling */
.excel-rendered-table tr.header-row th,
.excel-rendered-table tr.header-row td {
    background-color: #f8fafc;
    font-weight: 600;
}

/* 4. Gallery Preview Cards */
.gallery-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.gallery-thumbnail-wrap {
    position: relative;
    background-color: #f3f4f6;
    height: 190px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-thumbnail-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.gallery-thumbnail-wrap:hover img {
    transform: scale(1.03);
}

.gallery-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.gallery-thumbnail-wrap:hover .gallery-zoom-overlay {
    opacity: 1;
}

/* Active sheet tab */
.sheet-tab-btn.active {
    background-color: #14AE5C;
    color: #ffffff;
    border-color: #14AE5C;
}
