* { box-sizing: border-box; }
body {
    background: #f0f4f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    color: #1e2a3a;
}
.container { max-width: 1600px; margin: 0 auto; }
.header {
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #e67e22;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header h1 { margin: 0; font-size: 1.8rem; font-weight: 600; color: #2c3e50; }
.header .badge { background: #e67e22; padding: 5px 15px; border-radius: 30px; font-size: 0.8rem; color: white; font-weight: bold; }
.config-panel {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}
.section {
    background: #f9fafc;
    border-left: 5px solid #e67e22;
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.section-header {
    background: #eef2f7;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.2s;
}
.section-header:hover { background: #e2e8f0; }
.section-header h2 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; color: #2c3e50; }
.toggle-container { display: flex; align-items: center; gap: 12px; }
.toggle-switch {
    width: 50px; height: 26px; background: #cbd5e1; border-radius: 26px;
    position: relative; cursor: pointer; transition: 0.2s;
}
.toggle-switch.active { background: #e67e22; }
.toggle-switch:after {
    content: ""; width: 22px; height: 22px; background: white; border-radius: 50%;
    position: absolute; top: 2px; left: 3px; transition: 0.2s;
}
.toggle-switch.active:after { left: 25px; }
.toggle-label { font-weight: 600; font-size: 0.85rem; color: #334155; }
.section-content { padding: 18px; display: none; border-top: 1px solid #e2e8f0; background: white; }
.section-content.visible { display: block; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 1rem; }
label { 
    font-weight: 600; font-size: 0.8rem; display: block; margin-bottom: 5px; color: #334155;
    display: flex; align-items: center; gap: 6px;
}
.info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; background: #94a3b8; color: white; border-radius: 50%;
    font-size: 11px; font-weight: bold; cursor: help;
    position: relative;
}
.info-icon:hover:after {
    content: attr(data-tooltip);
    position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
    background: #1e293b; color: #e2e8f0; padding: 6px 10px; border-radius: 6px;
    font-size: 0.7rem; font-weight: normal; white-space: nowrap; z-index: 100;
    width: max-content; max-width: 300px; white-space: normal;
}
input, select, textarea {
    width: 100%; padding: 8px 12px; background: #ffffff; border: 1px solid #cbd5e1;
    border-radius: 8px; color: #1e2a3a; font-size: 0.85rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #e67e22; box-shadow: 0 0 0 2px #fef3c7; }
.checkbox-group { 
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; 
    background: #ffffff; padding: 6px 0;
}
.checkbox-group label { margin-bottom: 0; font-weight: normal; display: inline-flex; align-items: center; gap: 5px; }
.checkbox-group input { width: auto; margin-right: 0; }
.dynamic-list { margin-bottom: 12px; }
.dynamic-row { display: flex; gap: 10px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.dynamic-row input, .dynamic-row select { flex: 1; min-width: 100px; }
.dynamic-row button { background: #dc2626; border: none; color: white; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; }
button { background: #e2e8f0; border: none; color: #1e2a3a; padding: 8px 18px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-weight: 600; }
button.primary { background: #e67e22; color: white; }
button.primary:hover { background: #d35400; }
.flex-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.output-box { background: #f8fafc; border-radius: 12px; padding: 18px; border: 1px solid #cbd5e1; margin-top: 20px; }
pre { background: #1e293b; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 0.7rem; font-family: 'Consolas', monospace; white-space: pre-wrap; word-wrap: break-word; max-height: 60vh; color: #e2e8f0; }
.copy-btn { margin-bottom: 12px; background: #cbd5e1; }
.note { font-size: 0.7rem; color: #475569; background: #f1f5f9; padding: 6px 10px; border-radius: 8px; margin-top: 8px; }
.time-settings { background: #f1f5f9; padding: 12px; border-radius: 10px; margin-top: 12px; }
.country-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
    margin-top: 6px;
}
.country-table label {
    font-weight: normal;
    font-size: 0.8rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
hr { margin: 15px 0; }

/* Fül vezérlés */
.tab-bar {
    display: flex;
    gap: 5px;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 10px 20px 0 20px;
    margin-bottom: -1px;
}
.tab-btn {
    background: #e2e8f0;
    border: none;
    padding: 10px 24px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.tab-btn.active {
    background: #ffffff;
    border-bottom: 3px solid #e67e22;
    color: #e67e22;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

@media (max-width: 800px) { .grid-2col { grid-template-columns: 1fr; } }