:root { 

    --accent: #2563eb; 

    --bg: #000; 

    --side: #111; 

    --modal-bg: #1e293b; 

}



body { 

    margin: 0; 

    font-family: sans-serif; 

    background: var(--bg); 

    color: white; 

    display: flex; 

    height: 100vh; 

    overflow: hidden; 

}



/* Modal Style */

#instruction-overlay { 

    position: fixed; 

    top: 0; 

    left: 0; 

    width: 100%; 

    height: 100%; 

    background: rgba(0,0,0,0.9); 

    display: flex; 

    justify-content: center; 

    align-items: center; 

    z-index: 10000; 

    backdrop-filter: blur(10px);

}



.modal { 

    background: var(--modal-bg); 

    padding: 40px; 

    border-radius: 16px; 

    max-width: 450px; 

    width: 90%; 

    border: 1px solid #334155; 

    text-align: center; 

    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 

}



.lang-select-container { 

    display: flex; 

    gap: 20px; 

    justify-content: center; 

    margin-top: 30px; 

}



.lang-card { 

    background: #0f172a; 

    border: 2px solid #334155; 

    padding: 20px; 

    border-radius: 12px; 

    cursor: pointer; 

    transition: 0.3s; 

    flex: 1; 

    display: flex; 

    flex-direction: column; 

    align-items: center; 

    gap: 10px;

}



.lang-card:hover { 

    border-color: var(--accent); 

    transform: translateY(-5px); 

    background: #1e293b; 

}



.lang-card span { font-size: 40px; }

.lang-card b { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }



/* Sidebar & Layout */

#sidebar { 

    width: 320px; 

    background: var(--side); 

    padding: 20px; 

    border-right: 1px solid #333; 

    display: flex; 

    flex-direction: column; 

    gap: 12px; 

    box-sizing: border-box; 

    overflow-y: auto;

}



#viewer { flex-grow: 1; position: relative; }



h2 { color: var(--accent); margin: 0; font-size: 1.5rem; text-align: center; margin-bottom: 10px; }

h3 { font-size: 0.8rem; color: var(--accent); border-bottom: 1px solid #333; padding-bottom: 5px; margin-top: 10px; }



.label-row { display: flex; align-items: center; justify-content: space-between; }

label { font-size: 11px; text-transform: uppercase; color: #777; font-weight: bold; }



.help-icon {

    background: #333; 

    color: #888; 

    width: 18px; 

    height: 18px; 

    border-radius: 50%; 

    font-size: 11px; 

    display: flex; 

    justify-content: center; 

    align-items: center; 

    cursor: help; 

    transition: 0.2s;

}



.help-icon:hover { background: var(--accent); color: white; }



#help-panel {

    margin-top: auto; 

    background: #1a1a1a; 

    border: 1px solid #333;

    padding: 12px; 

    border-radius: 6px; 

    min-height: 100px;

}



#help-panel h4 { margin: 0 0 5px 0; font-size: 10px; color: var(--accent); text-transform: uppercase; }

#help-text { font-size: 12px; color: #aaa; line-height: 1.4; }



.input-group { display: flex; flex-direction: column; gap: 5px; }

input, select { 

    background: #222; 

    border: 1px solid #444; 

    color: white; 

    padding: 10px; 

    border-radius: 4px; 

    outline: none; 

    width: 100%; 

    box-sizing: border-box; 

    transition: border-color 0.2s;

}



input:focus, select:focus {

    border-color: var(--accent);

}



#viewer canvas {

    display: block; /* Usuwa białą linię na dole */

}



button#downloadBtn { 

    background: var(--accent); 

    color: white; 

    border: none; 

    padding: 15px; 

    border-radius: 4px; 

    cursor: pointer; 

    font-weight: bold; 

    width: 100%; 

    margin-top: 10px; 

}



button#downloadBtn:hover { filter: brightness(1.2); }

.hidden { display: none; }