/* Same look as dorobanti184.ro: white, #232323 text, blush bands, raspberry buttons, Inter, square corners. */
:root {
    --bg: #ffffff;
    --band: #f2d5ca;
    --light: #f9f9f9;
    --card: #ffffff;
    --text: #232323;
    --muted: #6f6461;
    --line: #e7dcd7;
    --accent: #da3458;
    --accent-hover: #ca3051;
    --accent-soft: #fbe9ed;
    --ok: #1a7f37;
    --ok-soft: #e8f5ec;
    --bad: #c62828;
    --bad-soft: #fdecec;
    --warn-soft: #fbf1e6;
    --radius: 2.5px;
    color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* Header: white bar with the office logo, like the main site */
.top { background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 900; font-size: 1.05rem; color: var(--text); text-decoration: none; line-height: 1.25; }
.brand img { width: 48px; height: 48px; flex: none; }
main { flex: 1; padding-bottom: 56px; }

/* Footer: the blush band */
.bottom { background: var(--band); font-size: .875rem; padding: 22px 0; }
.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.bottom a { color: var(--text); font-weight: 700; text-decoration: none; }
.bottom a:hover { color: var(--accent); }

h1, h2, h3 { font-weight: 900; line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
h2 { font-size: 1.2rem; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.nowrap { white-space: nowrap; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.hidden { display: none !important; }
.center { text-align: center; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 4px solid var(--band);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 .625rem 1.5rem rgba(35, 35, 35, .05);
}
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.narrow-form { max-width: 520px; }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
input[type=text], input[type=password], input[type=number], textarea, select {
    width: 100%;
    font: inherit;
    font-weight: 400;
    color: var(--text);
    background: var(--light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 14px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; background: var(--card); }
input[readonly] { background: var(--light); color: var(--muted); }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px; font-weight: 400 !important; }
input[type=checkbox] { accent-color: var(--accent); }

/* Buttons: raspberry, bold, uppercase, like .btn-secondary on the main site */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: .95rem; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .02em;
    cursor: pointer; white-space: nowrap;
    background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: var(--radius);
    padding: 15px 34px; text-decoration: none;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, color .15s ease-in-out;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); border-color: var(--text); color: #fff; }
.btn-link { background: none; border: 0; color: var(--accent); padding: 4px 8px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.btn-link:hover { background: none; color: var(--accent-hover); }
.inline { display: inline-flex; align-items: center; gap: 4px; }
.inline-form { margin-top: 14px; }

.alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; border-left: 4px solid currentColor; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-danger { background: var(--bad-soft); color: var(--bad); }
.alert-warning { background: var(--warn-soft); color: var(--text); border-left-color: var(--band); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.stat { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.stat-value { font-weight: 900; }

.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .03em; }

/* Upload */
.drop {
    position: relative; display: grid; justify-items: center; gap: 4px;
    border: 2px dashed var(--band); border-radius: var(--radius); background: var(--light); padding: 40px 16px; margin: 16px 0 12px;
    cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop svg { width: 40px; height: 40px; color: var(--accent); }
.drop-title { font-weight: 900; font-size: 1.1rem; color: var(--accent); }
.drop-hint { color: var(--muted); font-size: .9rem; }
.camera { position: relative; width: 100%; margin-bottom: 12px; }
.camera input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
@media (min-width: 768px) { .camera { display: none; } }

.files { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.file {
    display: grid; grid-template-columns: 1fr; gap: 2px;
    border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 10px 12px;
}
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: .85rem; color: var(--muted); }
.file-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.file-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.file.is-sending { border-left-color: var(--accent); }
.file.is-ok { border-left-color: var(--ok); }
.file.is-ok .file-meta { color: var(--ok); }
.file.is-bad { border-left-color: var(--bad); }
.file.is-bad .file-meta { color: var(--bad); }
.file.is-ok .file-bar, .file.is-bad .file-bar { display: none; }
.contact { margin-top: 16px; }
