:root{
--primary:#2563eb;
--primary-dark:#1d4ed8;
--text:#172b4d;
--muted:#64748b;
--bg:#f6f8fc;
--border:#e2e8f0;
--white:#fff;
}

*{box-sizing:border-box}

body{
margin:0;
font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
background:var(--bg);
color:var(--text);
line-height:1.65;
}

a{color:inherit}
button,select{font:inherit}
button{cursor:pointer}

.container{
width:min(1100px,calc(100% - 36px));
margin:auto;
}

.header{
background:#fff;
border-bottom:1px solid var(--border);
}

.nav{
min-height:76px;
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
}

.nav a{text-decoration:none}

.brand{
display:flex;
align-items:center;
gap:11px;
font-weight:800;
font-size:21px;
letter-spacing:-.5px;
}

.brand-icon{
background:var(--primary);
color:#fff;
font-size:13px;
font-weight:800;
padding:9px;
border-radius:9px;
letter-spacing:0;
}

.nav nav{
font-weight:650;
font-size:14px;
color:var(--muted);
}

.hero{
max-width:850px;
text-align:center;
margin:85px auto 90px;
}

.eyebrow{
font-size:12px;
font-weight:800;
letter-spacing:1.5px;
color:var(--primary);
}

.hero h1{
font-size:clamp(36px,5vw,62px);
letter-spacing:-2px;
line-height:1.12;
margin:20px 0;
}

.hero p{
font-size:19px;
color:var(--muted);
max-width:700px;
margin:0 auto 30px;
}

.btn{
display:inline-block;
border:0;
border-radius:10px;
padding:14px 25px;
background:var(--primary);
color:#fff;
text-decoration:none;
font-weight:750;
font-size:15px;
line-height:1.5;
}

.btn:hover{background:var(--primary-dark)}
.btn:disabled{opacity:.55;cursor:wait}
.btn-green{background:#15803d}
.btn-green:hover{background:#166534}

.section-heading{
text-align:center;
margin-bottom:28px;
}

.section-heading h2{
font-size:30px;
margin:0;
}

.section-heading p{
color:var(--muted);
margin:5px 0;
}

.tools-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:22px;
}

.tool-card{
display:block;
background:#fff;
border:1px solid var(--border);
border-radius:17px;
padding:28px;
text-decoration:none;
box-shadow:0 10px 35px rgba(20,48,85,.04);
transition:transform .15s,border-color .15s;
}

.tool-card:hover{
transform:translateY(-3px);
border-color:#a7bff5;
}

.tool-icon{
width:61px;
height:61px;
display:grid;
place-items:center;
background:#eaf1ff;
color:var(--primary);
font-weight:850;
border-radius:13px;
font-size:16px;
}

.tool-card h3{
font-size:20px;
margin:20px 0 8px;
}

.tool-card p{
color:var(--muted);
margin:0 0 22px;
}

.tool-link{
color:var(--primary);
font-weight:750;
font-size:14px;
}

.benefits{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:25px;
margin:75px 0;
}

.benefit{text-align:center}

.benefit-icon{
width:46px;
height:46px;
background:#eaf1ff;
color:var(--primary);
border-radius:50%;
display:grid;
place-items:center;
margin:auto;
font-weight:800;
}

.benefit h3{margin:12px 0 4px}
.benefit p{color:var(--muted);margin:0}

.about{
background:#fff;
border:1px solid var(--border);
border-radius:16px;
padding:30px;
margin:45px 0;
}

.about h2{
font-size:23px;
margin-top:10px;
}

.about p{color:var(--muted)}

.footer{
border-top:1px solid var(--border);
background:#fff;
margin-top:65px;
padding:26px 0;
color:var(--muted);
font-size:14px;
}

.footer-inner{
display:flex;
justify-content:space-between;
gap:15px;
flex-wrap:wrap;
}

.tool-header{
text-align:center;
max-width:800px;
margin:45px auto 32px;
}

.back{
color:var(--muted);
text-decoration:none;
font-size:14px;
}

.tool-header h1{
font-size:clamp(33px,4vw,48px);
letter-spacing:-1.5px;
line-height:1.2;
margin:12px 0;
}

.tool-header p{
font-size:18px;
color:var(--muted);
}

.converter{
max-width:960px;
margin:auto;
background:#fff;
border:1px solid var(--border);
border-radius:18px;
padding:28px;
box-shadow:0 14px 40px rgba(20,48,85,.05);
}

.dropzone{
border:2px dashed #a8bee4;
background:#f8fbff;
border-radius:14px;
text-align:center;
padding:43px 20px;
transition:background .15s;
}

.dropzone.drag{
background:#e8f0ff;
border-color:var(--primary);
}

.upload-icon{
font-size:52px;
color:var(--primary);
line-height:1;
}

.dropzone h2{
font-size:24px;
margin:12px 0 5px;
}

.dropzone p{color:var(--muted)}

.hint{
color:var(--muted);
font-size:13px;
}

.status{
min-height:25px;
color:#166534;
font-size:14px;
margin:18px 0;
}

.status.error{color:#b42336}

.workspace-heading{
display:flex;
justify-content:space-between;
align-items:center;
gap:15px;
}

.workspace-heading h2{font-size:19px}

.plain-button{
border:0;
background:none;
color:#b42336;
font-size:14px;
font-weight:750;
}

.image-list{
padding:0;
margin:18px 0;
list-style:none;
}

.image-list li{
display:flex;
justify-content:space-between;
align-items:center;
gap:14px;
border:1px solid var(--border);
border-radius:10px;
padding:11px 13px;
margin:8px 0;
}

.file-name{
overflow-wrap:anywhere;
min-width:0;
font-size:14px;
}

.file-actions{
display:flex;
flex-shrink:0;
gap:5px;
}

.file-actions button{
width:35px;
height:35px;
border:1px solid var(--border);
border-radius:7px;
background:#fff;
font-size:18px;
}

.file-actions button:disabled{
opacity:.3;
cursor:default;
}

.options{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:17px;
margin:25px 0;
}

.options label{
font-weight:700;
font-size:14px;
}

.options select{
display:block;
width:100%;
margin-top:7px;
padding:11px;
border:1px solid #cbd5e1;
border-radius:8px;
background:#fff;
color:var(--text);
}

.actions{
display:flex;
flex-wrap:wrap;
gap:12px;
}

progress{
display:block;
width:100%;
height:12px;
margin-top:22px;
accent-color:var(--primary);
}

.tool-about{
max-width:960px;
margin:35px auto;
}

[hidden]{display:none!important}

a:focus-visible,
button:focus-visible,
select:focus-visible{
outline:3px solid #93b4ff;
outline-offset:3px;
}

@media(max-width:700px){
.hero{margin:55px auto}
.hero h1{letter-spacing:-1px}
.benefits{grid-template-columns:1fr;gap:30px}
.converter{padding:15px}
.dropzone{padding:27px 12px}
.options{grid-template-columns:1fr}
.workspace-heading{flex-wrap:wrap}
.about{padding:20px}
.footer-inner{display:block}
}


/* PHOTO_DRAG_GRID_V1 */

.image-list.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
}

.image-list.photo-grid > .photo-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 10px;
    gap: 5px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: grab;
    transition: border-color .15s, background .15s;
}

.photo-thumb {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: contain;
    border-radius: 8px;
    background: #f0f4f9;
    pointer-events: none;
}

.photo-order {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    margin-top: 4px;
}

.photo-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 650;
}

.photo-size {
    color: var(--muted);
    font-size: 12px;
}

.photo-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    padding-top: 9px;
}

.photo-controls button {
    display: grid;
    place-items: center;
    min-width: 31px;
    height: 33px;
    padding: 0 4px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

.photo-controls button:hover {
    background: #eaf1ff;
}

.photo-controls button:disabled {
    opacity: .3;
    cursor: default;
}

.photo-controls .photo-grip {
    background: #eaf1ff;
    color: var(--primary);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.photo-item.photo-moving {
    opacity: .55;
    border-color: var(--primary) !important;
    background: #eaf1ff !important;
}

.photo-item.photo-target {
    border-color: var(--primary) !important;
    background: #edf4ff !important;
}

@media(max-width:700px) {
    .image-list.photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .photo-thumb {
        height: 125px;
    }
}

@media(max-width:420px) {
    .image-list.photo-grid {
        grid-template-columns: 1fr;
    }
}


/* PDF_HEADER_PRIVACY_V1 */

/* Navigare globală */

.nav {
    flex-wrap: wrap;
    padding-top: 13px;
    padding-bottom: 13px;
}

.pdf-main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.pdf-main-menu a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s;
}

.pdf-main-menu a:hover {
    background: #eaf1ff;
    color: #2563eb;
}

.pdf-main-menu a[aria-current="page"] {
    background: #eaf1ff;
    color: #1d4ed8;
}

/* Informarea privind confidențialitatea */

.pdf-privacy-notice {
    background: #edf8f2;
    border-bottom: 1px solid #ccebd9;
    color: #215b3d;
}

.pdf-privacy-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.pdf-privacy-symbol {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d1f0dd;
    color: #17643d;
    font-size: 15px;
    font-weight: 800;
}

.pdf-privacy-inner strong {
    display: inline;
    font-weight: 800;
}

.pdf-privacy-inner span:not(.pdf-privacy-symbol) {
    display: inline;
}

.pdf-privacy-inner small {
    display: block;
    color: #557461;
    font-size: 11px;
    margin-top: 2px;
}

@media (max-width: 800px) {
    .pdf-main-menu {
        justify-content: flex-start;
        width: 100%;
    }

    .pdf-main-menu a {
        font-size: 12px;
        padding: 7px 9px;
    }

    .pdf-privacy-inner {
        font-size: 12px;
    }
}


/* PDF_NAV_BUTTONS_V2 */

/* Antet elegant */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
}

.header .brand {
    flex-shrink: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.header .brand-icon {
    background: linear-gradient(135deg,#2563eb,#1e40af);
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 3px 9px rgba(37,99,235,.18);
}

/* Bara cu butoane */
.header .pdf-main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

.header .pdf-main-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #dce5f1;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15,23,42,.035);
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.header .pdf-main-menu a:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 3px 12px rgba(37,99,235,.09);
    transform: translateY(-1px);
}

/* Pagina activa */
.header .pdf-main-menu a[aria-current="page"] {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(37,99,235,.19);
}

.header .pdf-main-menu a[aria-current="page"]:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

/* Accesibilitate */
.header .pdf-main-menu a:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

/* Tablete si telefoane */
@media (max-width: 900px) {
    .header .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 12px;
    }

    .header .pdf-main-menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding: 2px 2px 7px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .header .pdf-main-menu a {
        flex-shrink: 0;
        min-height: 40px;
        padding: 9px 13px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header .pdf-main-menu a {
        transition: none;
    }
}


/* PDF_PRIVACY_FOOTER_V2 */

.footer .pdf-privacy-notice {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.footer .pdf-privacy-inner {
    padding: 0 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.7;
}

.footer .pdf-privacy-inner strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 3px;
}

.footer .pdf-privacy-inner span:not(.pdf-privacy-symbol) {
    display: block;
}

.footer .pdf-privacy-inner small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--muted);
}

.footer .pdf-privacy-symbol {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    background: #eaf1ff;
    color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 800;
}

.footer .footer-inner {
    padding-top: 20px;
}

@media(max-width:700px) {
    .footer .pdf-privacy-inner {
        font-size: 12px;
    }
}
