/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Effra';
    src: url('../fonts/Effra Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Effra';
    src: url('../fonts/Effra Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Effra';
    src: url('../fonts/Effra Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Effra-Regular';
    src: url('../fonts/Effra Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Effra-Medium';
    src: url('../fonts/Effra Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Effra-Bold';
    src: url('../fonts/Effra Bold.ttf') format('truetype');
}

html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

/* ---------- HEADER ---------- */
header {
    background: #e61e14;
    color: #fff;
    padding: 15px 20px;
    font-size: 20px;
    font-family: 'Effra', sans-serif;
    font-weight: 900;
}

header i {
    margin-right: 10px;
}

/* ---------- MENU ---------- */
nav.menu {
    background: #f9f9f9;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

nav.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav.menu ul li a {
    text-decoration: none;
    color: #e61e14;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

nav.menu ul li a:hover,
nav.menu ul li a.active {
    background: #e61e14;
    color: #fff;
}


/* ---------- MAIN LAYOUT ---------- */
.main-container {
    flex: 1;
    display: flex;
    gap: 0px;
    padding: 0px;
}

.left-column {
    padding: 40px;
    width: 400px;
    /* of iets vergelijkbaars */
}

.left-column .section {
    margin-bottom: 20px;
}

.left-column .section h2 {
    font-size: 12px;
    margin-bottom: 10px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 5px;
}

.separator {
    height: 1px;
    background: #ddd;
    margin: 15px 0;
}

.right-column {
    flex: 1;
    background: #f1f1f1;
    padding: 40px;
    position: relative;
}

/* ---------- SECTIONS ---------- */
.section h2 {
    font-size: 12px;
    color: #000;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

fieldset {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

legend {
    font-size: 12px;
    font-weight: bold;
    padding: 0 5px;
}

#guidelines-option label {
    font-size: 12px;
}

/* ---------- TEMPLATE SELECTIE ---------- */
.template-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.template-option {
    cursor: pointer;
    text-align: center;
    border: 2px solid gray;
    border-radius: 10px;
    padding: 5px 4px 2px 4px;
    transition: border-color 0.3s ease, transform 0.2s ease;
    width: 70px;
    font-size: 10px;
}

.template-option:hover,
.template-option.active {
    border-color: #007BFF;
    transform: scale(1.05);
}

.template-option img {
    width: 100%;
    border-radius: 4px;
}

/* ---------- INPUTS ---------- */

.slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}


input[type="file"] {
    font-size: 12px;
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

/* Visible label that opens file inputs (works across browsers) */
.file-label {
    display: inline-block;
    margin-left: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 12px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    margin-top: 5px;
    background: #e61e14;
    border-radius: 4px;
    outline: none;
    width: 100%;

}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #e61e14;
    border-radius: 50%;
    cursor: pointer;
}

/* ---------- CHECKBOXES EN TEXTVELDEN ---------- */
.toggle-setting {
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="text"] {
    padding: 6px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    width: 100%;
}

/* ---------- BUTTONS ---------- */
.settings-buttons {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 12px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Effra', sans-serif;
}

.reset-button {
    background: #ddd;
    color: #black;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.reset-button:hover {
    background: #eee;
}

.export-button {
    background: #e61e14;
    color: #fff;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.export-button:hover {
    background: #c70000;
}

/* ---------- CANVAS ---------- */
canvas {
    border-radius: 10px;
    background: white;
    display: block;
    max-width: 100%;
}

.left-overlay,
.right-overlay,
.ogenlijn {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    display: none;
}

/* ---------- POPUP ---------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

.popup-options {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.button-dark-gray {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.button-dark-gray:hover {
    background: #555;
}

.button-red {
    background: red;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.button-red:hover {
    background: darkred;
}

/* ---------- FOOTER ---------- */
footer {
    padding: 10px;
    font-size: 12px;
    text-align: center;
    color: #999;
}