/*
Theme Name: CV Studio by HSEStack
Theme URI: https://hsestack.com
Author: HSEStack
Author URI: https://hsestack.com
Description: Multi-Discipline Professional AI Resume & CV Generator WordPress Theme. Features 16 resume formats, 10 engineering/HSE discipline profiles, real-time scaled A4 preview, PDF/DOCX export, and Gemini AI integration.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cv-studio
Tags: one-column, custom-colors, custom-menu, full-width-template, theme-options
*/

{
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}

::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}

/* A4 Document Paper Canvas */
.cv-paper {
width: 210mm !important;
min-height: 297mm !important;
max-width: none !important;
box-sizing: border-box !important;
background: #ffffff;
margin: 0 auto;
position: relative;
padding: 18mm !important;
box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
word-wrap: break-word;
overflow-wrap: break-word;
transform-origin: top center;
flex-shrink: 0;
}

.cv-page-wrapper {
width: 100%;
display: flex;
justify-content: center;
align-items: flex-start;
overflow: visible;
position: relative;
transition: height 0.2s ease;
}

.cv-paper * {
box-sizing: border-box !important;
}

.tab-btn.active {
border-color: #2563eb;
color: #2563eb;
background-color: #eff6ff;
}

#fullscreenModal.active,
#cloudModal.active {
display: flex !important;
}

/* Ensure WordPress admin bar does not overlap top fixed navbar */
body.admin-bar header {
top: 32px;
}
@media screen and (max-width: 782px) {
body.admin-bar header {
top: 46px;
}
}

/* Print Overrides */
@media print {
body {
background: white !important;
padding: 0 !important;
}
.no-print,
#wpadminbar,
header,
footer,
#editorPanel {
display: none !important;
}
.cv-paper {
box-shadow: none !important;
width: 100% !important;
margin: 0 !important;
padding: 12mm !important;
transform: none !important;
page-break-after: always;
}
.cv-page-wrapper {
height: auto !important;
}
}