/* Dashboard Styles */
.dashboard-container {
  min-height: 100vh;
  background: #ffffff;
}

.dashboard-header {
  background: linear-gradient(135deg, #c8102e 0%, #13294b 100%);
  color: #ffffff;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
  background: linear-gradient(135deg, #c8102e 0%, #13294b 100%);
  color: #ffffff;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
  box-sizing: border-box;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.header-logo {
  width: 4rem;
  height: 2.5rem;
  object-fit: contain;
  object-position: center;
  cursor: pointer;
}

.logo-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  color: inherit;
}

.header-content h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  font-family: inherit;
  font-style: italic;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.user-welcome {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-welcome span {
  font-weight: 500;
}

.admin-badge {
  font-size: 0.8rem;
  background: rgba(200, 16, 46, 0.2);
  color: #c8102e;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(200, 16, 46, 0.3);
  font-weight: 600;
  text-align: center;
}

.header-button,
.logout-button, 
.account-button {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.header-button:hover,
.logout-button:hover, 
.account-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-button.logout {
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-main,
.main-content {
  background: #f5f5f5;
  min-height: calc(100vh - 70px);
  padding: 30px 20px;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.welcome-section {
  display: none; /* Hide welcome section to match layout */
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header h2 {
  color: #13294b;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-header p {
  color: #b1b3b3;
  font-size: 1.1rem;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  color: #13294b;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card p {
  color: #b1b3b3;
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-button {
  background: linear-gradient(135deg, #c8102e 0%, #13294b 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.feature-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #b1b3b3;
  background: linear-gradient(135deg, #b1b3b3 0%, #000000 100%);
}

.feature-button.danger-button {
  background: linear-gradient(135deg, #c8102e 0%, #000000 100%);
}

.feature-button.danger-button:hover {
  background: linear-gradient(135deg, #a00e26 0%, #000000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(200, 16, 46, 0.4);
}

.admin-card {
  border: 2px solid #c8102e;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.admin-card h3 {
  color: #c8102e;
}

.admin-card .feature-button {
  background: linear-gradient(135deg, #c8102e 0%, #13294b 100%);
}

.admin-card .feature-button:disabled {
  background: linear-gradient(135deg, #b1b3b3 0%, #000000 100%);
}

.user-details {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-details h3 {
  color: #13294b;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-info p {
  margin: 0;
  color: #b1b3b3;
  font-size: 1.1rem;
}

.account-info strong {
  color: #13294b;
  font-weight: 600;
}

.back-arrow {
  background: none;
  color: #13294b;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 10px 0;
  margin-bottom: 20px;
  margin-left: -500px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: left;
}

.back-arrow:hover {
  color: #c8102e;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-content {
    padding: 0 15px;
    height: 45px;
  }
  
  .header-logo {
    width: 3rem;
    height: 1.8rem;
  }
  
  .main-content {
    padding: 20px 15px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .user-details {
    padding: 20px;
  }

  .header-button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .back-arrow {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
}