/* ===== Login Box ===== */
.login-box {
    background: #fff;
    padding: 40px 50px; /* více prostoru uvnitř */
    border-radius: 16px; /* zaoblenější rohy */
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); /* silnější stín */
    width: 100%;
    max-width: 400px;
    margin: 80px auto;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.login-box h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 26px;
    font-weight: 600;
}

/* Inputs */
.login-box input {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
}

.login-box input:focus {
    border-color: #77A8A8;
    outline: none;
    box-shadow: 0 0 8px rgba(119,168,168,0.3);
}

/* Button */
.login-box button {
    width: 100%;
    padding: 14px;
    background: #77A8A8;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    margin-top: 15px;
}

.login-box button:hover {
    background: #518080;
    color: #fff;
    transform: translateY(-2px);
}


/* ================= HERO BACKGROUND ================= */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(-45deg, 
              #E6EBEB, #BFDCDC, #A8CACA, #77A8A8, 
              #E6EBEB, #BFDCDC, #A8CACA, #77A8A8);
  background-size: 400% 400%;
  animation: gradientMove 6s linear infinite;
  min-height: 100vh;
  display: flex;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ================= LAYOUT ================= */
.container {
  display: flex;
  width: 100%;
}

/* ===== Sidebar ===== */
nav {
  position: fixed; /* bude fixní při scrollu */
  top: 0;          /* začíná od vrchu stránky */
  left: 0;
  width: 260px;
  height: 100vh;   /* celá výška viewportu */
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  border-right: 2px solid #A8CACA;
  z-index: 999;    /* aby byl nad hlavním obsahem */
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}

nav ul li a {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background: #77A8A8;
  color: #fff;
}

/* Hlavní obsah se posune doprava, aby nebyl pod fixed nav */
.main {
  margin-left: 260px; /* stejná šířka jako sidebar */
  padding: 40px;
  color: #333;
}


/* ================= STATS CARDS ================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #4b7979;
}

.card p {
  font-size: 1.8em;
  font-weight: bold;
}

/* ================= CHART CARDS ================= */
.chart-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0; /* menší mezera, ne moc velká */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  nav {
    width: 200px;
  }
  .main {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  nav {
    width: 100%;
    height: auto;
    border-right: none;
    display: flex;
  }
  nav ul {
    flex-direction: row;
    justify-content: space-around;
  }
}
	