/* GLOBALNE */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.1);
    z-index: 0;
}

/* TOPBAR */
.topbar {
    background: #2e7d32;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo, .topbar h1 {
    margin: 0;
    font-size: 22px;
}

/* MENU GŁÓWNE */
.hamburger {
    font-size: 28px;
    cursor: pointer;
}

#menu {
    display: flex;
    gap: 15px;
}

#menu a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

#menu a:hover {
    background: rgba(255,255,255,0.15);
}

@media (max-width: 700px) {
    #menu {
        display: none;
        flex-direction: column;
        background: #2e7d32;
        position: absolute;
        top: 60px;
        right: 10px;
        padding: 10px;
        border-radius: 8px;
        z-index: 999;
    }

    #menu.active {
        display: flex !important;
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 701px) {
    .hamburger {
        display: none !important;
    }
}

/* HERO */
.hero {
    width: 100%;
    height: 380px;
    background: url('camping_hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: -1;
}

/* KARTY */
.card {
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* SZKLARNIA */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.module-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 6px solid #2e7d32;
    transition: 0.25s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.module-card .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.module-card button {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 10px 16px;
    margin-right: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s ease;
}

.module-card button:hover {
    background: #1b5e20;
}

/* WYKRESY */
canvas {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: block;
}

/* ALERTY */
#alerts {
    background: #fff3cd;
    border-left: 6px solid #ff9800;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
}

/* USTAWIENIA */
.settings {
    max-width: 600px;
    margin: 20px auto;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.settings-row label {
    margin-right: 10px;
}

.settings-row input,
.settings-row select {
    flex: 1;
}

/* FORMULARZE */
input,
button {
    position: relative;
    z-index: 1000;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
    background: #ffffff;
    color: #000;
    padding: 10px;
    border: 2px solid #2e7d32;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

/* ANIMACJE */
.fade {
    animation: fadeIn 0.7s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* TRYB NOCNY */
body.dark {
    background: #121212;
    color: #e0e0e0;
}

body.dark .module-card {
    background: #1e1e1e;
    border-left-color: #90caf9;
}

/* MENU SZKLARNI */
#gh-menu {
    display: flex;
    gap: 10px;
}

#gh-menu a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
}

@media (max-width: 700px) {
    #gh-menu {
        display: none;
        flex-direction: column;
        background: #2e7d32;
        position: absolute;
        top: 60px;
        right: 10px;
        padding: 10px;
        border-radius: 8px;
        z-index: 999;
    }

    #gh-menu.active {
        display: flex !important;
    }

    .gh-hamburger {
        display: block;
        font-size: 28px;
        cursor: pointer;
        z-index: 1000;
    }
}

@media (min-width: 701px) {
    .gh-hamburger {
        display: none !important;
    }
}
