:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --accent-color: #8b5cf6;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --button-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --valid-green: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Login Overlay */
#login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.login-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.login-card h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  background: var(--button-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.btn-primary {
  background: var(--button-gradient);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

/* Main Content */
#main-content {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Hidden initially */
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

header {
  margin-bottom: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  /* For absolute positioning of logout */
  width: 100%;
}

.btn-logout {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.logo {
  height: 80px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
  /* Orange glow for the Oasis theme */
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0;
  background: linear-gradient(to right, #fff, #fbbf24);
  /* Warmer gradient for Oasis */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: #94a3b8;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image-container img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-link {
  flex: 1;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-app {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-app:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-admin {
  background: rgba(239, 68, 68, 0.1);
  /* Reddish tint for admin */
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-admin:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--glass-border);
}

.accordion-header {
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  color: #d1d5db;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: #fff;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.accordion-content.active {
  /* max-height: 500px; - handled by JS for exact height */
  padding-bottom: 1rem;
}

.accordion-content h3,
.accordion-content h2 {
  color: #fff;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.accordion-content ul,
.accordion-content ol {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}

/* Animation utilities */
.rotate-180 {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
}