#batch-preview-modal {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#batch-preview-modal .batch-preview-overlay {
    backdrop-filter: blur(4px);
    transition: backdrop-filter 0.3s ease;
}

#batch-preview-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    display: flex;
    flex-direction: column;
    border: 2px solid #667eea;
    z-index: 10001;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

#batch-preview-modal .batch-preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 24px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

#batch-preview-modal .batch-preview-title {
    margin: 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    flex: 1;
}

#batch-preview-modal .batch-preview-close-btn {
    background: var(--app-close-btn-bg, rgba(255, 255, 255, 0.10));
    border: none;
    color: var(--app-close-btn-color, #FFFFFF);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: var(--close-btn-transition, 0.2s ease);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 12px;
}

#batch-preview-modal .batch-preview-toolbar {
    padding: 16px 24px;
    background: linear-gradient(135deg, #F0F2F5 0%, #FAFBFC 100%);
    border-bottom: 1px solid #E6E8EA;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

#batch-preview-modal .batch-preview-counts {
    display: flex;
    gap: 20px;
    align-items: center;
}

#batch-preview-modal .batch-preview-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

#batch-preview-modal .batch-preview-count-label {
    color: var(--text-secondary);
    font-size: 14px;
}

#batch-preview-modal .batch-preview-count-value {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

#batch-preview-modal .batch-preview-count-selected {
    color: #0ECB81;
    font-size: 16px;
    font-weight: 600;
}

#batch-preview-modal .batch-preview-actions {
    display: flex;
    gap: 8px;
}

#batch-preview-modal .batch-preview-btn-primary,
#batch-preview-modal .batch-preview-btn-secondary,
#batch-preview-modal .batch-preview-btn-warning,
#batch-preview-modal .batch-preview-btn-confirm {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#batch-preview-modal .batch-preview-btn-primary {
    background: #667eea;
    color: #FFFFFF;
}

#batch-preview-modal .batch-preview-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

#batch-preview-modal .batch-preview-btn-warning {
    background: #F0B90B;
    color: #FFFFFF;
}

#batch-preview-modal .batch-preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: var(--modal-bg, #FFFFFF);
    scroll-behavior: smooth;
}

#batch-preview-modal .batch-preview-footer {
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-top: 1px solid #E6E8EA;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

#batch-preview-modal .batch-preview-footer .batch-preview-btn-secondary {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

#batch-preview-modal .batch-preview-btn-confirm {
    padding: 10px 32px;
    background: linear-gradient(135deg, #0ECB81 0%, #10D98D 100%);
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(14, 203, 129, 0.3);
}

/* Batch preview hover states */
.batch-preview-close-btn:hover {
    background: var(--app-close-btn-bg-hover, rgba(255, 255, 255, 0.18));
    transform: var(--close-btn-hover-transform, rotate(90deg));
}

.batch-preview-btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.batch-preview-btn-secondary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.batch-preview-btn-warning:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.batch-preview-btn-confirm:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
