/* --- ZMIENNE I STYLE GLOBALNE --- */
body { 
    font-family: Arial, sans-serif; 
    background-color: #f0f2f5; 
    padding: 20px; 
    display: flex; 
    justify-content: center; 
    margin: 0; 
}
h2 { margin-top: 0; color: #333; }
label { font-weight: bold; font-size: 13px; display: block; margin-bottom: 4px; color: #555; }
input[type="text"], input[type="email"], select, textarea { 
    width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; margin-bottom: 10px;
}
.hidden { display: none !important; }

/* --- WIDOK LOGOWANIA --- */
.login-wrapper {
    display: flex; align-items: center; justify-content: center; min-height: 80vh; width: 100%;
}
.login-box { 
    background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 100%; max-width: 300px; text-align: center; 
}
.login-box button { 
    width: 100%; padding: 10px; background: #0056b3; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold;
}
.login-box button:hover { background: #003d82; }
.error { color: #dc3545; font-size: 14px; font-weight: bold; margin-bottom: 15px;}

/* --- WIDOK GENERATORA: UKŁAD GŁÓWNY --- */
.app-container { 
    background: white; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; max-width: 1000px; width: 100%; flex-wrap: wrap; position: relative; 
}
.header-bar { position: absolute; top: -40px; right: 0; }
.header-bar a { color: #dc3545; text-decoration: none; font-weight: bold; background: white; padding: 5px 10px; border-radius: 4px; }
.left-panel { flex: 1.2; padding: 30px; min-width: 350px; border-right: 1px solid #eee; }
.right-panel { flex: 0.8; padding: 30px; min-width: 300px; display: flex; flex-direction: column; align-items: center; background: #fafbfc; border-radius: 0 12px 12px 0; }

/* --- WIDOK GENERATORA: USTAWIENIA --- */
.settings-group { background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #e9ecef; }
.settings-group h3 { margin-top: 0; font-size: 15px; color: #495057; border-bottom: 1px solid #dee2e6; padding-bottom: 5px; margin-bottom: 10px; }
input[type="color"] { width: 100%; height: 35px; padding: 0; border: none; border-radius: 4px; cursor: pointer; margin-bottom: 10px; }
input[type="range"] { width: 100%; margin-bottom: 15px; }

.grid-2 { display: flex; gap: 10px; }
.grid-2 > div { flex: 1; }
.grid-3 { display: flex; gap: 10px; }
.grid-3 > div { flex: 1; }

/* --- WIDOK GENERATORA: KOD QR --- */
.qr-wrapper { 
    position: relative; display: inline-block; box-sizing: border-box; 
    background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 16px; padding: 20px;
}
.qr-wrapper svg { width: 280px; height: 280px; display: block; }
.qr-logo { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 55px; height: 55px; background-color: #fff; border: 1px solid #ddd; 
    border-radius: 12px; padding: 4px; box-sizing: border-box; z-index: 10;
}

/* --- PRZYCISKI --- */
.btn-download { 
    margin-top: 25px; padding: 12px 25px; background-color: #28a745; color: white; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; font-size: 15px; transition: 0.3s;
}
.btn-download:hover { background-color: #218838; }

/* --- PRZYCISK CZYSZCZENIA LOGO --- */
.btn-clear {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 5px;
    transition: 0.3s;
    width: 100%;
    font-weight: bold;
}
.btn-clear:hover {
    background-color: #5a6268;
}