/* Print styles for A4 paper */
@page {
    size: A4 portrait;
    margin: 1cm;
}

html, body {
    width: 21cm;
    height: 29.7cm;
    margin: 0;
    padding: 0;
    background-color: white !important;
    color: black !important;
    font-size: 10px;
    line-height: 1.3;
}

/* Hide dark mode toggle and action buttons */
#dark-mode-toggle, .action-buttons {
    display: none !important;
}

/* Last updated text for print */
.last-updated {
    position: fixed !important;
    bottom: 0.5cm !important;
    right: 1cm !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
}

.last-updated p {
    margin: 0 !important;
    font-size: 7pt !important;
    color: #666 !important;
}

/* Prevent page breaks inside elements */
section {
    page-break-inside: avoid;
    break-inside: avoid;
    background-color: white !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    margin: 0.3cm 0 !important;
    padding: 0.2cm 0 !important;
}

/* Allow breaking in experience section */
section#experience {
    page-break-inside: auto !important;
    break-inside: auto !important;
}

/* Optimize container width */
.max-w-6xl {
    max-width: 100% !important;
    padding: 0.3cm !important;
    margin: 0 !important;
}

/* Reset all padding and margins for print */
.p-8, .p-6, .py-12, .p-uniform {
    padding: 0.2cm !important;
}

/* Optimize header */
header {
    margin-bottom: 0.3cm !important;
    text-align: center !important;
    padding-top: 0.3cm !important;
}

/* Optimize profile picture */
header img {
    width: 2cm !important;
    height: 2cm !important;
    margin-bottom: 0.2cm !important;
}

/* Text styles optimization */
h1 {
    font-size: 18pt !important;
    margin: 0.2cm 0 !important;
    color: black !important;
    background: none !important;
    -webkit-text-fill-color: black !important;
}

h2 {
    font-size: 14pt !important;
    margin: 0.2cm 0 !important;
    color: black !important;
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 0.1cm !important;
}

h3 {
    font-size: 12pt !important;
    margin: 0.2cm 0 0.1cm 0 !important;
    color: black !important;
}

p {
    margin: 0.1cm 0 !important;
    font-size: 10pt !important;
}

/* Nested elements */
ul {
    margin: 0.08cm 0 0.15cm 0.2cm !important;
    padding: 0 !important;
}

li {
    margin-bottom: 0.08cm !important;
    page-break-inside: avoid;
    break-inside: avoid;
    line-height: 1.15 !important;
    font-size: 10pt !important;
}

.icons {
    width: 0 !important;
    height: 0 !important;
}

/* Tag styling */
.tag, .bg-gray-100 {
    background-color: white !important;
    padding: 0.02cm 0.08cm !important;
    margin: 0.02cm !important;
    font-size: 7pt !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

/* Links */
a {
    color: black !important;
    text-decoration: none !important;
}

a.text-blue-600 {
    font-weight: bold !important;
    text-decoration: underline !important;
}

/* Remove shadows and rounded corners */
.shadow-sm, .rounded-xl, .rounded-lg {
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Better text contrast */
.text-gray-700, .text-gray-600, .text-gray-900, .text-gray-500 {
    color: black !important;
}

/* Optimize spacing between job entries */
.space-y-6 > *, .space-y-3 > * {
    margin-top: 0.15cm !important;
}

/* Make skills tags more compact */
.gap-2 {
    gap: 0.05cm !important;
}

.mt-2 {
    margin-top: 0.1cm !important;
}

.mt-3, .mb-3, .mb-4, .mb-section {
    margin: 0.1cm 0 !important;
}

/* Fix text size for better printing */
.text-sm {
    font-size: 8pt !important;
}

.text-lg {
    font-size: 11pt !important;
}

.text-xl {
    font-size: 13pt !important;
}

/* Education section adjustments */
.border-l-4 {
    border-left-width: 2px !important;
    border-color: #000 !important;
}

.pl-4, .pl-3 {
    padding-left: 0.2cm !important;
}

/* Hide background color transitions */
.transition-colors {
    transition: none !important;
}

/* Force background colors to white for better printing */
.bg-white, .bg-gray-50, .bg-gray-100 {
    background-color: white !important;
}

/* Allow specific job entries to break across pages */
.job-entry {
    page-break-inside: auto !important;
    break-inside: auto !important;
    padding: 0.1cm 0 !important;
    margin-bottom: 0.15cm !important;
    border-bottom: 1px dotted #eee !important;
}

/* Optimize specific sections to fit in 2 pages */
#summary {
    margin-bottom: 0.2cm !important;
}

#education, #languages {
    margin-top: 0.2cm !important;
    padding-top: 0.15cm !important;
}

/* Ensure languages section stays together */
#languages {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

/* Make summary more compact */
#summary p {
    margin-bottom: 0.1cm !important;
}

/* Compact skills tags display */
.flex-wrap {
    row-gap: 0.05cm !important;
    column-gap: 0.05cm !important;
} 
