/* Template Thumbnail Selector Styles */

/* Template Thumbnail Container */
.template-thumbnail {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s ease;
    background: white;
}

.template-thumbnail:hover {
    border-color: var(--primary-color, #3B82F6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.template-thumbnail.selected {
    border-color: var(--primary-color, #3B82F6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.thumbnail-preview {
    width: 120px;
    height: 160px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.thumbnail-label {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.thumbnail-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color, #3B82F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* Template Selector Container */
.template-selector {
    margin-bottom: 1.5rem;
}

.template-selector-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #374151;
}

.template-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Shared thumbnail elements */
.thumb-logo { width: 30px; height: 12px; background: #9ca3af; border-radius: 2px; }
.thumb-logo-small { width: 20px; height: 8px; background: #9ca3af; border-radius: 1px; }
.thumb-title { width: 40px; height: 10px; background: var(--primary-color, #3B82F6); border-radius: 2px; }
.thumb-title-small { width: 30px; height: 8px; background: #374151; border-radius: 1px; }
.thumb-customer { width: 40%; height: 20px; background: #e5e7eb; border-radius: 2px; }
.thumb-details { width: 35%; height: 20px; background: #e5e7eb; border-radius: 2px; }
.thumb-line { height: 1px; background: #d1d5db; margin: 4px 0; }
.thumb-color-bar { height: 3px; background: var(--primary-color, #3B82F6); margin: 4px 0; }
.thumb-color-bar.dark { background: #1F2937; }
.thumb-color-bar.accent { background: var(--accent-color, #22C55E); }
.thumb-spacer { flex: 1; }

/* Table elements */
.thumb-table { margin: 6px 0; }
.thumb-table-header { height: 8px; background: var(--primary-color, #3B82F6); border-radius: 1px; }
.thumb-table-header-line { height: 2px; background: var(--primary-color, #3B82F6); }
.thumb-table-header-thin { height: 1px; background: #374151; }
.thumb-table-header-dark { height: 8px; background: #1F2937; border-radius: 1px; }
.thumb-table-header-accent { height: 2px; background: var(--accent-color, #22C55E); }
.thumb-table-row { height: 6px; background: #f3f4f6; margin-top: 2px; border-radius: 1px; }
.thumb-table-row.alt { background: #e5e7eb; }

/* Totals */
.thumb-totals {
    width: 50%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-left: auto;
    border: 1px solid #d1d5db;
}
.thumb-totals-minimal {
    width: 45%;
    height: 16px;
    background: white;
    border: 1px solid #374151;
    margin-left: auto;
}
.thumb-totals-boxed {
    width: 55%;
    height: 24px;
    background: #1F2937;
    border-radius: 2px;
    margin-left: auto;
}

/* Classic specific */
.thumb-classic {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
}
.thumb-classic .thumb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.thumb-classic .thumb-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* Modern specific */
.thumb-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.thumb-modern .thumb-header-band {
    height: 30px;
    background: var(--primary-color, #3B82F6);
    margin-bottom: 8px;
}
.thumb-modern .thumb-row {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    margin-bottom: 6px;
}
.thumb-modern .thumb-table,
.thumb-modern .thumb-totals,
.thumb-modern .thumb-color-bar {
    margin-left: 8px;
    margin-right: 8px;
}

/* Minimal specific */
.thumb-minimal {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
}
.thumb-minimal .thumb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.thumb-minimal .thumb-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

/* Professional specific */
.thumb-professional {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.thumb-professional .thumb-header-dark {
    height: 28px;
    background: #1F2937;
    margin-bottom: 8px;
}
.thumb-professional .thumb-row {
    display: flex;
    gap: 6px;
    padding: 0 8px;
    margin-bottom: 6px;
}
.thumb-professional .thumb-box {
    flex: 1;
    height: 24px;
    background: #f3f4f6;
    border-radius: 2px;
}
.thumb-professional .thumb-table,
.thumb-professional .thumb-totals-boxed,
.thumb-professional .thumb-color-bar {
    margin-left: 8px;
    margin-right: 8px;
}

/* Creative specific */
.thumb-creative {
    display: flex;
    height: 100%;
}
.thumb-creative .thumb-sidebar {
    width: 6px;
    background: var(--accent-color, #22C55E);
}
.thumb-creative .thumb-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px;
}
.thumb-creative .thumb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.thumb-creative .thumb-title-badge {
    width: 35px;
    height: 12px;
    background: var(--primary-color, #3B82F6);
    border-radius: 2px;
}
.thumb-creative .thumb-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
