* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Fredoka', sans-serif;
}

body {
  background-color: #1a0f0a;
  background-image: 
    radial-gradient(#2d1a10 2px, transparent 2px),
    linear-gradient(135deg, #150b07 0%, #22120b 100%);
  background-size: 30px 30px, 100% 100%;
  color: #eed9c4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: rgba(20, 10, 6, 0.8);
  border-bottom: 2px solid #3d2417;
}

.mole-avatar {
  font-size: 32px;
  background: #3a2216;
  padding: 6px 12px;
  border-radius: 50%;
  border: 2px solid #d4a359;
}

.nav-links a {
  color: #a88b77;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #f5cf89;
  border-bottom: 2px solid #f5cf89;
}

.user-avatar {
  font-size: 24px;
  background: #3a2216;
  padding: 8px;
  border-radius: 50%;
  border: 2px solid #d4a359;
  cursor: pointer;
}

/* Main Dashboard */
.dashboard-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  width: 90%;
}

.dashboard-title {
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  color: #a88b77;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.main-card {
  background: #28160e;
  border: 3px solid #4a2b1a;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.welcome-text {
  text-align: center;
  font-size: 38px;
  color: #fff1e0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 25px;
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-box {
  background: #1f100a;
  border: 2px solid #4d2e1c;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  color: #eed9c4;
  text-decoration: none;
  flex: 1;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hero-box:hover {
  transform: translateY(-5px);
  border-color: #f5cf89;
  box-shadow: 0 0 15px rgba(245, 207, 137, 0.2);
}

.hero-icon {
  font-size: 45px;
  margin-bottom: 10px;
}

.illustration-box {
  flex: 2;
  height: 180px;
  background: #1c0e08;
  border-radius: 15px;
  border: 2px dashed #4d2e1c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kitchen-emoji {
  font-size: 70px;
}

/* User Apps Grid */
.user-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  background: #1b0d07;
  padding: 15px;
  border-radius: 15px;
  border: 2px solid #3d2214;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2a170e;
  border: 2px solid #482818;
  border-radius: 12px;
  padding: 12px 15px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.app-card:hover {
  background: #361e12;
  border-color: #f5cf89;
  box-shadow: 0 0 10px rgba(245, 207, 137, 0.2);
}

.app-icon {
  font-size: 28px;
}

.app-info h3 {
  font-size: 16px;
  color: #f5cf89;
}

.app-info p {
  font-size: 12px;
  color: #9c7f6b;
}

/* Admin Corner (Prawy Dolny Róg) */
.admin-corner {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: rgba(20, 10, 6, 0.95);
  border: 2px solid #4a2b1a;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.admin-label {
  font-size: 10px;
  color: #8c6d58;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  text-align: right;
}

.admin-buttons {
  display: flex;
  gap: 8px;
}

.admin-btn {
  background: #2a170e;
  border: 1px solid #5a3521;
  color: #c9ad97;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.admin-btn:hover {
  background: #402315;
  color: #fff;
  border-color: #f5cf89;
}
/* --- RESPONSYWNOŚĆ DLA URZĄDZEŃ MOBILNYCH --- */
@media (max-width: 768px) {
  /* Zmniejszenie marginesów i paddingów strony */
  .dashboard-wrapper {
    width: 95%;
    margin: 10px auto;
  }

  /* Górna nawigacja układa się pionowo */
  .navbar {
    padding: 10px 15px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-links a {
    margin: 0 5px;
    font-size: 15px;
  }

  /* Główna sekcja (przyciski i ilustracja) jeden pod drugim */
  .hero-section {
    flex-direction: column;
    gap: 15px;
  }

  .hero-box {
    width: 100%;
  }

  .illustration-box {
    width: 100%;
    height: 120px;
  }

  /* Tytuł powitalny mniejszy na telefonach */
  .welcome-text {
    font-size: 24px;
    margin-bottom: 15px;
  }

  /* Siatka aplikacji – jedna kolumna na małym ekranie */
  .user-apps-grid {
    grid-template-columns: 1fr;
  }

  /* Panel administratora przeniesiony na dół lub zmniejszony, żeby nie zasłaniał treści */
  .admin-corner {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
    width: 100%;
  }

  .admin-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}
