/* static/dashboard.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', Courier, monospace;
  background-color: rgb(234, 255, 221);
  color: black;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Navbar - matching index.html style */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: rgb(220, 255, 198);
  border-color: black;
  border-style: solid;
  border-bottom-width: 2px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: black;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  border-radius: 4px;
  border: 2px solid black;
  background-color: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.nav-btn:hover {
  background-color: rgb(201, 255, 167);
  color: rgb(0, 0, 0);
}

.logout-btn {
  background-color: rgb(255, 220, 220);
}

.logout-btn:hover {
  background-color: rgb(255, 180, 180);
}

/* Dashboard Container */
.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.header-section {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 0.6s ease-out;
}

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

.dashboard-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #2c3e50;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.dashboard-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 35px;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
  background-color: white;
  border: 2px solid black;
  border-radius: 8px;
  box-shadow: 4px 4px 0px black;
  transition: all 0.3s;
  animation: statSlideIn 0.6s ease-out backwards;
}

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

.stat-item:nth-child(1) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.3s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.4s;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0px black;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: rgb(76, 175, 80);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: bold;
}

/* Feature Cards - Vertical Layout */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: white;
  border: 3px solid black;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 6px 6px 0px black;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 255, 167, 0.3), transparent);
  transition: left 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  box-shadow: 10px 10px 0px black;
  background-color: rgb(250, 255, 245);
}

.card-icon {
  font-size: 4rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.card-content {
  flex: 1;
  text-align: left;
}

.feature-card h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #2c3e50;
  font-weight: bold;
}

.feature-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}

.card-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgb(220, 255, 198);
  border: 1px solid black;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  transition: all 0.3s;
}

.feature-card:hover .tag {
  background-color: rgb(201, 255, 167);
  transform: translateY(-2px);
}

.feature-btn {
  padding: 12px 25px;
  font-size: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid black;
  background-color: rgb(220, 255, 198);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: black;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.feature-btn:hover {
  background-color: rgb(201, 255, 167);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px black;
}

.feature-btn:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0px black;
}

.btn-arrow {
  transition: transform 0.3s;
  font-size: 1.2rem;
}

.feature-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Decorative floating elements */
.decorative-elements {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  font-size: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.float-1 {
  top: 15%;
  left: 8%;
  animation: float 4s ease-in-out infinite;
}

.float-2 {
  top: 50%;
  right: 10%;
  animation: float 5s ease-in-out infinite 1s;
}

.float-3 {
  bottom: 20%;
  left: 12%;
  animation: float 4.5s ease-in-out infinite 0.5s;
}

.float-4 {
  top: 70%;
  right: 15%;
  animation: float 5.5s ease-in-out infinite 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 30px 15px;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .dashboard-subtitle {
    font-size: 1rem;
  }

  .stats-bar {
    gap: 15px;
  }

  .stat-item {
    padding: 15px 20px;
  }

  .stat-icon {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .card-content {
    text-align: center;
  }

  .card-icon {
    font-size: 3rem;
  }

  .feature-card h2 {
    font-size: 1.5rem;
  }

  .card-features {
    justify-content: center;
  }

  .navbar {
    padding: 10px 20px;
  }

  .logo {
    font-size: 20px;
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .float-item {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .dashboard-title {
    font-size: 1.6rem;
  }

  .stats-bar {
    flex-direction: column;
    align-items: center;
  }

  .stat-item {
    width: 100%;
    max-width: 250px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-btn {
    width: 100%;
    justify-content: center;
  }

  .decorative-elements {
    display: none;
  }
}