/* =========================
   Global Reset & Base Styles
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f6f8;
  color: #222;
  line-height: 1.6;
}

/* =========================
   Layout Helpers
   ========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  background-color: #0f4c5c;
  color: #ffffff;
  padding: 16px 0;
}

header h1 {
  font-size: 22px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 16px;
  font-weight: 600;
}

nav a.active,
nav a:hover {
  text-decoration: underline;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background-color: #f4a261;
  color: #000;
}

.btn.secondary {
  background-color: #e0e0e0;
  color: #000;
}

.btn:hover {
  opacity: 0.9;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  background-color: #12343b;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-actions a {
  margin: 0 8px;
}

/* =========================
   Section Base
   ========================= */
section {
  padding: 60px 0;
}

section h2,
section h3 {
  margin-bottom: 20px;
}

/* =========================
   Feature Cards
   ========================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-card,
.card,
.admin-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* =========================
   Auth (Login / Register)
   ========================= */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.auth-box {
  background: #ffffff;
  padding: 30px;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.message {
  margin-top: 12px;
  font-size: 14px;
}

/* =========================
   Dashboard
   ========================= */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.notifications {
  margin-top: 40px;
}

.notifications ul {
  list-style: disc;
  padding-left: 20px;
}

/* =========================
   Viewer Placeholder
   ========================= */
.viewer-container {
  margin: 30px 0;
}

.viewer-placeholder {
  background: #000;
  color: #fff;
  height: 360px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.viewer-placeholder .hint {
  font-size: 14px;
  opacity: 0.7;
}

/* =========================
   Assessment
   ========================= */
.timer {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.result-box {
  margin-top: 30px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
}

/* =========================
   Admin Panel
   ========================= */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* =========================
   Reports
   ========================= */
.report-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.report-table table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

/* =========================
   About & Contact
   ========================= */
.about-section ul {
  margin-top: 15px;
  padding-left: 20px;
}

.contact-form {
  max-width: 500px;
  margin-top: 20px;
}

/* =========================
   Footer
   ========================= */
footer {
  background-color: #0f4c5c;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

/* =========================
   Accessibility & Responsive
   ========================= */
@media (max-width: 768px) {
  nav a {
    display: inline-block;
    margin-bottom: 8px;
  }

  .hero h2 {
    font-size: 28px;
  }
}
/* =========================
   360 Viewer Fix
   ========================= */

.viewer {
  width: 100%;
  min-height: 60vh;      /* 🔥 Viewport-based height */
  max-height: 75vh;      /* Prevents over-stretch */
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}


.training-controls {
  margin-top: 15px;
}

.training-note {
  margin-top: 15px;
  font-size: 0.95rem;
}
