/* ================================== */
/* css/pdf-number.css
/* Page-specific styles for Numbering
/* Theme: Orange/Amber
/* ================================== */

/* 1. Position Grid Buttons */
.pos-btn {
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

body.dark .pos-btn {
    background-color: var(--bg-secondary-hover);
}

.pos-btn:hover {
    border-color: #f97316; /* orange-500 */
    color: #f97316;
    background-color: rgba(249, 115, 22, 0.05);
}

/* Selected/Active State */
.pos-btn.active {
    background: linear-gradient(135deg, #f97316, #d97706); /* orange-500 to amber-600 */
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* 2. Gradient Border Input Box (Theme: Orange) */
.input-gradient-wrap {
    padding: 2px;
    border-radius: 0.6rem;
    background: linear-gradient(to bottom right, #f97316, #d97706);
    transition: all 0.3s ease;
}
.input-gradient-wrap:focus-within {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
}

.input-gradient-wrap input,
.input-gradient-wrap select {
    width: 100%;
    border: none !important;
    outline: none !important;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-primary); 
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

body.dark .input-gradient-wrap input,
body.dark .input-gradient-wrap select {
     background-color: var(--bg-secondary-hover);
}

/* 3. Live Preview Overlay on Canvas */
.number-overlay {
    position: absolute;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px; /* Scaled down for thumb */
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid #f97316;
    white-space: nowrap;
    pointer-events: none; /* Let clicks pass through */
}

/* Page Card relative positioning is crucial */
#numberPagePreview .page-card .relative {
    position: relative; 
}