/* Arko Space Reservation System Stylesheet */
:root {
  --primary: #00ff66;
  --primary-glow: rgba(0, 255, 102, 0.25);
  --secondary: #3b82f6;
  --secondary-glow: rgba(59, 130, 246, 0.25);
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.2);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.25);
  --bg-color: #08090e;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-bg: rgba(255, 255, 255, 0.06);
  --text-color: #e2e8f0;
  --text-muted: #94a3b8;
  --font-title: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  color-scheme: dark;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: var(--primary);
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: 100px;
  right: -50px;
  background: var(--secondary);
}

/* Links & Typography */
a {
  color: inherit;
  transition: all 0.2s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: rgba(8, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  border-radius: 0 0 16px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #08090e;
  font-size: 0.95rem;
  font-weight: 900;
}

.brand-dot {
  color: var(--primary);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

nav {
  display: flex;
  gap: 0.5rem;
}

nav a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--primary);
  background: rgba(0, 255, 102, 0.05);
}

/* Main Container */
main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

/* Glass Panels */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(0, 255, 102, 0.2);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 4rem;
  min-height: calc(80vh - 5rem);
  padding: 3.5rem 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #a3e635, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #059669);
  color: #08090e;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 102, 0.5);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: #ffffff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 102, 0.25);
  transform: translateY(-2px);
}

.button-full {
  width: 100%;
}

/* Step list */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  width: 100%;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.step-num {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.step-list li strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.step-list li span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Media - Status preview */
.hero-media-wrapper {
  position: relative;
}

.hero-media {
  position: relative;
  z-index: 1;
}

.visual-security-preview {
  padding: 1.5rem;
  border-color: rgba(0, 255, 102, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  background: #0d0f17;
}

.preview-card-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.mode-indicator {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgba(0, 255, 102, 0); }
  100% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

.terminal-content {
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.term-line {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.term-line:last-child {
  margin-bottom: 0;
}

.term-prompt {
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Badges tags small */
.badge-tag-small {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-tag-small.reserved {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: #f87171;
}

.badge-tag-small.free {
  background: rgba(0, 255, 102, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* Sections Global Styling */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--card-border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
  background: rgba(0, 255, 102, 0.1);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.15);
}

/* Calendar Display */
.calendar-display {
  padding: 1rem;
  overflow: hidden;
}

.schedule-table-container {
  overflow-x: auto;
  width: 100%;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.schedule-table th {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
}

.schedule-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
  vertical-align: top;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table td:first-child {
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-title);
  background: rgba(255, 255, 255, 0.01);
  width: 180px;
}

/* Calendar Cell Reservation Item Styles */
.cell-reservation {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--secondary);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.cell-reservation:last-child {
  margin-bottom: 0;
}

.cell-reservation strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.cell-reservation .prof-tag {
  color: var(--secondary);
  font-weight: 600;
}

.cell-reservation .purpose-tag {
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
  font-style: italic;
  font-size: 0.8rem;
}

.cell-free {
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.cell-free::before {
  content: "●";
  color: var(--primary);
  font-size: 0.7rem;
}

/* Reservation Form Layout */
.reservation-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.reservation-form-card h3, .reservation-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"], select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.1);
}

select option {
  background-color: #0d0f17;
  color: #fff;
}

/* Booking Rules List */
.booking-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-rules li {
  display: flex;
  gap: 1.25rem;
}

.rule-bullet {
  font-size: 1.5rem;
  line-height: 1;
}

.booking-rules li strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.booking-rules li div {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Coordination Approval Panel */
.coordination-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

.coordination-header h3 {
  font-size: 1.25rem;
}

.coordination-badge {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.pending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pending-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem 0;
}

.pending-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  animation: slideIn 0.3s ease-out;
}

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

.pending-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.pending-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.4rem 0;
}

.pending-details span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pending-purpose {
  font-size: 0.85rem;
  color: #cbd5e1;
  border-left: 2px solid var(--accent);
  padding-left: 0.5rem;
  margin-top: 0.35rem;
}

.pending-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-approve, .btn-reject {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-approve {
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-approve:hover {
  background: var(--primary);
  color: #08090e;
  box-shadow: 0 0 12px var(--primary-glow);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: #f87171;
}

.btn-reject:hover {
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 0 12px var(--danger-glow);
}

/* Team Grid & Member Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover {
  transform: translateY(-6px);
  background: var(--card-hover-bg);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

.member-card:hover::before {
  opacity: 1;
}

.member-img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.08);
  background-color: var(--bg-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover .member-img {
  border-color: var(--secondary);
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

.member-avatar-placeholder {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #08090e;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover .member-avatar-placeholder {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

.member-card span {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.member-card strong {
  font-size: 1.05rem;
  color: #ffffff;
}

/* Footer Section */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
}

footer a:hover {
  color: var(--secondary);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: #0d0f17;
  border: 1px solid var(--primary);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: var(--danger);
  border-left-color: var(--danger);
}

/* Responsive Styling */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-copy {
    align-items: center;
  }
  
  .hero-media-wrapper {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
  }
  
  .reservation-layout {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
  }
  
  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .step-list {
    grid-template-columns: 1fr;
  }
  
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
