/* ---------- GLOBAL ---------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffffd9;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    padding: 14px 28px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 42px;
}

.header-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2D2B56;
}

.menu-btn {
    background: #2D2B56;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: 0.2s;
}

.menu-btn:hover {
    background: #242345;
}

/* ---------- OFF CANVAS ---------- */
.offcanvas {
    position: fixed;
    top: 70px;
    right: -320px;  /* INNEN CSÚSZIK BE */
    width: 300px;
    height: calc(100% - 70px);
    background: #2D2B56;
    box-shadow: -6px 0 25px rgba(0,0,0,0.25);
    transition: 0.35s ease;
    overflow-y: auto;
    z-index: 999;
}

.offcanvas.open {
    right: 0;   /* IDE ÉRKEZIK */
}

.offcanvas h2 {
    margin: 0 0 25px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.menu-section {
    margin-top: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: .9;
    text-transform: uppercase;
}

.offcanvas a {
    display: block;
    padding: 11px 0;
    font-size: 1.05rem;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    transition: 0.2s;
}

.offcanvas a {
    padding-left: 12px;
}

.offcanvas a:hover {
    padding-left: 20px;
    opacity: 0.85;
}

/* ---------- MAIN CONTAINER ---------- */
.container {
    max-width: 700px;
    margin: 130px auto 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    text-align: center;
    box-sizing: border-box;
}

.logo {
    max-width: 210px;
    margin-bottom: 20px;
    opacity: 0.95;
}

h1 {
    margin-top: 0;
    color: #2D2B56;
    font-size: 2rem;
    font-weight: 700;
}

p {
    color: #555;
    line-height: 1.6;
}

/* ---------- FORMS ---------- */
.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-group input,
input[type="file"] {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.2rem;
    border-radius: 14px;
    border: 2px solid #deddfa;
    background: #fafaff;
    box-sizing: border-box;
    transition: 0.2s;
    outline: none;
}

.form-group input:focus,
input[type="file"]:focus {
    border-color: #2D2B56;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45,43,86,0.18);
}

/* ---------- BUTTONS ---------- */
.btn-primary,
button[type="submit"] {
    width: 100%;
    padding: 16px 0;
    background: #2D2B56;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 6px 18px rgba(45,43,86,0.25);
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: #242345;
    transform: translateY(-2px);
}

.btn-back {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #e8e8e8;
    border-radius: 14px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.btn-back:hover {
    background: #dcdcdc;
}

/* ---------- ERROR ---------- */
.error {
    margin-top: 20px;
    background: #ffe7e7;
    padding: 14px;
    border-radius: 12px;
    color: #cc0000;
    font-weight: 600;
    border: 1px solid #ffc5c5;
}
/* ---------- DRAG & DROP FILE UPLOADER ---------- */

#file-drop-area {
    position: relative;
}

.file-upload-box {
    display: block;
    border: 2px dashed #bdbde3;
    background: #fafaff;
    border-radius: 18px;
    padding: 35px;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
    margin-bottom:20px;
}

.file-upload-box:hover {
    background: #f0f0ff;
    border-color: #2D2B56;
    transform: scale(1.01);
}

.file-upload-icon {
    font-size: 2.8rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.file-upload-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2D2B56;
    margin-bottom: 8px;
}

.file-upload-name {
    font-size: 0.95rem;
    color: #555;
    margin-top: 10px;
}

/* highlight, amikor fölé húzzák */
#file-drop-area.dragover .file-upload-box {
    background: #e9e9ff;
    border-color: #2D2B56;
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(45,43,86,0.25);
}

/* natív input elrejtése */
#csvfile, #xmlfile {
    display: none;
}
/* --------- PROGRESS BÁROK – HYUNDAI --------- */

.progress-wrapper {
    margin-bottom: 25px;
    text-align: left;
}

.progress-block {
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #ececec;
    overflow: hidden;
}

.progress-bar-inner {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: #2D2B56;
    transition: width 0.3s ease;
}

