body {
    font-family: Arial, sans-serif;
    background: url("/static/menu.jpg") no-repeat center center / cover;
    margin: 0;
    padding: 0;
    background-color: #f4f4f428;
}

/* Kontener trzech kolumn */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Lewa i prawa kolumna */
.sidebar {
  width: 240px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 20px;
  height: 100vh;

  display: flex;
  flex-direction: column;
}

.sidebar h2 {
  color: #38bdf8;
  margin-bottom: 20px;
}

.sidebar a {
  display: block;          /* 🔥 NAJWAŻNIEJSZE */
  color: #e5e7eb;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.sidebar a:hover {
  background: #1e293b;
}

.sidebar .section {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
}


/* Środkowa kolumna */
.main {
    flex: 1;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    border-radius: 8px;

    /* Tło */
   background-image: url('/static/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* tekst będzie widoczny na tle */
    position: relative; /* potrzebne dla overlay */
}

.main::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    border-radius: 8px;
    z-index: 0;
}

.main * {
    position: relative;
    z-index: 1; /* tekst nad overlay */
}





.tile {
    flex: 1; /* równomierna szerokość dla wszystkich kafelków */
    min-width: 150px; /* minimalna szerokość kafelka */
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tile h3 {
    margin-bottom: 10px;
}

.tile a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #007bff;
}

/* Posty / treść w środku */
.post {
    margin-bottom: 20px;
}

.post img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Linki */
a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* Responsywność – dla ekranów poniżej 900px */
@media (max-width: 900px) {
    .container {
        flex-direction: column; /* kolumny jedna pod drugą */
    }

    .sidebar, .main {
        width: 100%;
    }

    .dashboard {
        flex-direction: column;
    }
}

.training-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.training-form input,
.training-form button {
    padding: 10px;
    font-size: 14px;
}

.training-form button {
    grid-column: span 2;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.currency-widget {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    padding: 20px;
    color:#0c0c0c;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
    


.currency-widget h3 {
    margin-top: 0;
}

.currency-widget a {
    text-decoration: none;
    font-weight: bold;
    color: #0c0c0c;
    
}

.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    color: #0c0c0c;
}

.tile {
    flex: 1 1 200px; /* elastyczne kafelki */
    padding: 20px;
    background-color: #fff9f9;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.login-body {
  background: url('/static/motywacja.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-align: center;
  width: 320px;
}

.login-container input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.login-container button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: #0f172a;
  color: white;
  cursor: pointer;
}

.login-container button:hover {
  background-color: #1e293b;
}

.error {
  color: red;
  margin-top: 10px;
}

.auth-page {
    min-height: 100vh;
    background: url("/static/rejestr.jpg") no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: center;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* przyciemnienie */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* karta */
.auth-box {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 45px 40px;
    width: 380px;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* tekst */
.auth-box h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
}

.auth-box p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

/* inputy */
.auth-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* button */
.auth-box button {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-box button:hover {
    background: #4338ca;
}

/* komunikaty */
.error {
    color: #dc2626;
    text-align: center;
    margin-bottom: 10px;
}

.success {
    color: #16a34a;
    text-align: center;
    margin-bottom: 10px;
}

/* link */
.link {
    text-align: center;
    margin-top: 18px;
}

.link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.link a:hover {
    text-decoration: underline;
}

.auth-box form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.auth-box input {
    display: block;
    width: 100%;
    margin: 0 0 15px 0;
    padding: 12px 14px;
    box-sizing: border-box;
}

.weather1 {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
    padding: 20px;
    color:#0c0c0c;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

}

.weather2 {
    flex: 1;
    color: #0c0c0c;
    padding: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.video-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.main-video {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.donate-btn {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1e293b;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);

}