/* * ======================================================
 * STYL HYBRYDOWY: MODERN FARM + FIX DZIAŁANIA (v2.0)
 * ======================================================
 */

/* 1. Ładna czcionka */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --primary-green: #2e7d32;
  --secondary-green: #66bb6a;
  --dark-green: #1b5e20;
  --bg-gradient: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
}

body {
  background: var(--bg-gradient);
  font-family: 'Nunito', sans-serif; /* Nowoczesna czcionka */
  color: #4a4a4a;
  min-height: 100vh;
  padding-bottom: 80px; 
  overflow-x: hidden;
}

/* === KLUCZOWE NAPRAWY (ŻEBY GRA DZIAŁAŁA) === */

/* 1. Ukrywanie elementów (np. logowania po zalogowaniu) */
.d-none-force {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* 2. LOGIKA ZAKŁADEK (To naprawia "wszystko na jednej stronie") */
.section-content {
    display: none; /* Domyślnie ukryte */
}

.section-content.section-active {
    display: block; /* Pokaż tylko aktywną */
    animation: fadeIn 0.4s ease-out;
}

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

/* === WYGLĄD LOGOWANIA (Z Twojego pliku) === */
#login {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9000; 
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    overflow-y: auto; display: flex; flex-direction: column; 
}
#login > .row, #login > .container-fluid > .row {
    flex: 1 0 auto; display: flex; align-items: center; padding: 20px;
}

/* === NOWOCZESNY DESIGN ELEMENTÓW === */

/* Karty (Sklep, Ekwipunek, Panel) */
.card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Statystyki na górze */
.stat-card {
    text-align: center;
    border-left: 5px solid var(--primary-green);
}
.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 0;
}

/* Przyciski */
.btn {
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    transition: all 0.2s;
}
.btn-success {
    background: linear-gradient(45deg, #28a745, #34d058);
    border: none;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
.btn-primary {
    background: linear-gradient(45deg, #007bff, #3395ff);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.btn:hover { transform: scale(1.05); filter: brightness(1.1); }

/* === OGRÓD (Wygląd roślin) === */
.plant-card {
    background: #ffffff;
    border: 2px solid #edf2f7;
}
.plant-card.border-success {
    border-color: #48bb78 !important;
    background: #f0fff4;
}
.plant-card.border-danger {
    border-color: #f56565 !important;
    background: #fff5f5;
}
.plant-card-empty {
    border: 3px dashed #cbd5e0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}
.plant-card-empty:hover {
    border-color: var(--primary-green);
    background: #e6fffa;
}

/* Paski postępu */
.progress { border-radius: 8px; height: 8px; background-color: #e2e8f0; }
.progress-bar { background: linear-gradient(90deg, #48bb78, #81e6d9); }

/* Ikony i obrazki */
img { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }


/* === NAWIGACJA (Twoja wersja mobilna + nowy styl) === */
.main-nav {
    position: sticky; top: 0; z-index: 1000;
    background: linear-gradient(90deg, var(--dark-green), var(--primary-green));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
}

.navbar-brand { font-weight: 800; font-size: 1.4rem; color: white !important; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }

/* Balans konta */
#nav-user-balance {
    font-size: 1.1rem; font-weight: 800; color: #fbbf24 !important; /* Złoty kolor */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* MENU RESPONSYWNE (Zachowujemy Twoje przewijanie) */
@media (max-width: 991px) {
    .navbar-toggler { display: none !important; }
    
    .navbar-collapse {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        align-items: center;
        scrollbar-width: none;
    }
    .navbar-collapse::-webkit-scrollbar { display: none; }

    .navbar-nav {
        flex-direction: row !important;
        gap: 10px;
    }

    /* Przyciski menu na telefonie - styl "szkła" */
    .nav-tabs-custom .nav-link {
        white-space: nowrap;
        padding: 8px 16px !important;
        background: rgba(255, 255, 255, 0.15); /* Półprzezroczyste */
        border-radius: 20px;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 0.9rem;
        font-weight: 600;
        border: 1px solid rgba(255,255,255,0.1);
        transition: all 0.2s;
    }

    .nav-tabs-custom .nav-link.active {
        background: #ffffff !important;
        color: var(--dark-green) !important;
        font-weight: 800;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transform: scale(1.05);
    }
}

/* Wersja na komputer (zwykłe menu) */
@media (min-width: 992px) {
    .nav-tabs-custom .nav-link {
        color: rgba(255,255,255,0.8) !important;
        font-weight: 600;
        margin-right: 15px;
    }
    .nav-tabs-custom .nav-link:hover { color: white !important; }
    .nav-tabs-custom .nav-link.active {
        color: white !important;
        font-weight: 800;
        border-bottom: 3px solid #fbbf24;
    }
}
/* === CIASTECZKA (COOKIE BANNER) === */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95); /* Półprzezroczyste tło */
    backdrop-filter: blur(10px); /* Efekt rozmycia tła */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000; /* Zawsze na wierzchu */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(46, 125, 50, 0.2); /* Delikatna zielona ramka */
}

#cookie-banner p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #333;
}

#cookie-banner button {
    width: 100%;
    max-width: 200px;
}

/* Ukrywanie bannera */
.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    #cookie-banner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    #cookie-banner p {
        margin-bottom: 0;
        margin-right: 20px;
    }
}