* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #111;
    color: white;
}

/* ===== LOGOWANIE ===== */
.login-screen {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f2027, #203a43);
}

.login-box {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    width: 350px;
    max-width: 90%;
}

.login-box h2 {
    margin-bottom: 25px;
    text-align: center;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    background: #2b2b2b;
    color: white;
}

.login-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2ecc71;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* ===== PANEL ===== */
.panel {
    display: none;
    padding: 20px;
}

.header {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== MENU ===== */
.navbar {
    display: flex;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    justify-content: center;
}

.navbar button {
    background: #222;
    border: none;
    color: white;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    flex-grow: 1;
    max-width: 200px;
}

.navbar button:hover {
    background: #2ecc71;
    color: black;
}

.navbar button.active {
    background: #2ecc71;
    color: black;
}

/* ===== ZAKŁADKI ===== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== KAFELKI ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.tile {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.tile:hover {
    background: #3a3a3a;
}

.tile.active {
    background: #2ecc71;
    color: black;
}

.status {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* ===== PODGLĄD KAMERY ===== */
.camera-view {
    text-align: center;
}

.camera-view img {
    max-width: 90%;
    border: 4px solid #00ffcc;
    border-radius: 12px;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
