/* FixIt QC Marketing Site v7.0 - Enhanced Edition with Admin Console */

:root {
  --bg: #101318;
  --copper: #EC9C42;
  --violet: #8B5CF6;
  --text: #EDEFF4;
  --muted: #9aa3b2;
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(236, 156, 66, 0.15);
  --glow-violet: rgba(139, 92, 246, 0.4);
  --glow-orange: rgba(236, 156, 66, 0.5);
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  background: rgba(16, 19, 24, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo {
  height: 50px;
  width: auto;
}

#hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.bar {
  width: 24px;
  height: 2px;
  background: var(--copper);
  transition: all 0.3s ease;
}

#hamburger[aria-expanded="true"] .bar:first-child {
  transform: rotate(45deg) translateY(6px);
}

#hamburger[aria-expanded="true"] .bar:last-child {
  transform: rotate(-45deg) translateY(-6px);
}

/* Cascade Menu with Icons */
.cascade {
  position: fixed;
  top: 70px;
  right: 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(16, 19, 24, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cascade.active {
  display: flex;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--glow-violet);
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 180px;
}

.mini-card:hover,
.mini-card:focus,
.mini-card.active {
  background: rgba(236, 156, 66, 0.1);
  border-color: var(--copper);
  box-shadow: 0 0 25px var(--glow-orange);
  transform: translateY(-2px);
}

.mini-card .ico {
  font-size: 1.2rem;
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* SVG Icon Support */
.mini-card svg {
  width: 20px;
  height: 20px;
  stroke: var(--copper);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logout-btn {
  background: rgba(236, 66, 66, 0.15) !important;
  border-color: rgba(236, 66, 66, 0.4) !important;
  box-shadow: 0 0 20px rgba(236, 66, 66, 0.3) !important;
}

/* Glass Effect */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px var(--glow-violet);
  transition: all 0.3s ease;
}

.glass:hover {
  box-shadow: 0 0 25px var(--glow-orange);
  border-color: var(--copper);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  padding: 80px 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero em {
  color: var(--copper);
  font-style: normal;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn.primary {
  background: var(--copper);
  color: #000;
  box-shadow: 0 4px 20px rgba(236, 156, 66, 0.3);
}

.btn.primary:hover {
  background: #ffa952;
  box-shadow: 0 6px 30px rgba(236, 156, 66, 0.5);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--copper);
  border: 2px solid var(--copper);
}

.btn.ghost:hover {
  background: rgba(236, 156, 66, 0.1);
  box-shadow: 0 0 20px var(--glow-orange);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid article h3 {
  color: var(--copper);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature h3 {
  color: var(--copper);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

/* Page Header */
.pagehead {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.pagehead h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--copper);
}

.pagehead .sub {
  font-size: 1.125rem;
  color: var(--muted);
}

/* Panel */
.panel {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 40px 24px;
}

/* Pricing Tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.tier {
  text-align: center;
  padding: 40px 32px;
  position: relative;
}

.tier.best::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: #000;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.tier h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--copper);
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}

.tier ul {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.tier li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.tier li:before {
  content: 'âœ"';
  color: var(--copper);
  margin-right: 12px;
  font-weight: 800;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.shot {
  overflow: hidden;
  text-align: center;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
}

figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Forms */
.form {
  max-width: 500px;
  margin: 0 auto;
}

.form label {
  display: block;
  margin-bottom: 20px;
}

.form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(236, 156, 66, 0.1);
}

/* Login */
.login {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card {
  max-width: 420px;
  width: 100%;
  padding: 40px;
}

/* Admin Sections */
.admin-section {
  margin-bottom: 40px;
}

.admin-section h4 {
  color: var(--copper);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(236, 156, 66, 0.1);
  border-bottom: 2px solid var(--copper);
  font-weight: 600;
  color: var(--copper);
  font-size: 0.9rem;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table .role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.role-badge.admin {
  background: rgba(236, 156, 66, 0.2);
  color: var(--copper);
  border: 1px solid var(--copper);
}

.role-badge.tech {
  background: rgba(139, 92, 246, 0.2);
  color: var(--violet);
  border: 1px solid var(--violet);
}

.role-badge.user {
  background: rgba(154, 163, 178, 0.2);
  color: var(--muted);
  border: 1px solid var(--muted);
}

.action-btns {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.action-btn.edit {
  background: rgba(139, 92, 246, 0.2);
  color: var(--violet);
  border: 1px solid var(--violet);
}

.action-btn.edit:hover {
  background: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.action-btn.delete {
  background: rgba(236, 66, 66, 0.2);
  color: #ec4242;
  border: 1px solid #ec4242;
}

.action-btn.delete:hover {
  background: rgba(236, 66, 66, 0.3);
  box-shadow: 0 0 15px rgba(236, 66, 66, 0.4);
}

.action-btn.promote {
  background: rgba(236, 156, 66, 0.2);
  color: var(--copper);
  border: 1px solid var(--copper);
}

.action-btn.promote:hover {
  background: rgba(236, 156, 66, 0.3);
  box-shadow: 0 0 15px rgba(236, 156, 66, 0.4);
}

/* Status Indicator */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.active {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-indicator.inactive {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.status-indicator.maintenance {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(16, 19, 24, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 40px var(--glow-violet);
}

.modal-content h3 {
  color: var(--copper);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.tab {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.tab.active {
  color: var(--copper);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper);
  box-shadow: 0 0 10px var(--glow-orange);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Status Message */
.status {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .grid,
  .features,
  .tiers {
    grid-template-columns: 1fr;
  }
  
  .admin-table {
    font-size: 0.85rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 12px;
  }
}

/* ========================================
   ADMIN CONSOLE STYLES
   ======================================== */

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead {
  background: rgba(236, 156, 66, 0.1);
  border-bottom: 2px solid var(--border);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--copper);
  white-space: nowrap;
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
  background: rgba(236, 156, 66, 0.05);
}

.admin-table td {
  padding: 12px 16px;
  color: var(--text);
}

/* Action Buttons */
.action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.action-btn.edit {
  background: rgba(139, 92, 246, 0.2);
  color: var(--violet);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.action-btn.edit:hover {
  background: rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.action-btn.delete {
  background: rgba(244, 67, 54, 0.2);
  color: var(--danger);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.action-btn.delete:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-1px);
}

.action-btn.promote {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.action-btn.promote:hover {
  background: rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-indicator.active,
.status-indicator.operational {
  background: var(--success);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.status-indicator.inactive,
.status-indicator.offline {
  background: var(--muted);
}

.status-indicator.maintenance {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

/* Role Badges */
.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.globalAdmin {
  background: rgba(236, 156, 66, 0.2);
  color: var(--copper);
  border: 1px solid rgba(236, 156, 66, 0.4);
}

.role-badge.localAdmin {
  background: rgba(139, 92, 246, 0.2);
  color: var(--violet);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.role-badge.tech {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.role-badge.user {
  background: rgba(154, 163, 178, 0.2);
  color: var(--muted);
  border: 1px solid rgba(154, 163, 178, 0.4);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}

.tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-bottom: -2px;
}

.tab:hover {
  color: var(--text);
  background: rgba(236, 156, 66, 0.05);
}

.tab.active {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  color: var(--copper);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(244, 67, 54, 0.2);
  color: var(--danger);
}

.modal-content form {
  padding: 24px;
}

/* Form Styles */
label {
  display: block;
  margin-bottom: 20px; /* Increased from 8px to 20px */
}

label span {
  display: block;
  margin-bottom: 8px; /* Increased from 6px to 8px */
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 14px; /* Increased from 12px to 14px */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 4px; /* Added margin */
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(236, 156, 66, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--copper), #d97c31);
  color: white;
  box-shadow: 0 4px 12px rgba(236, 156, 66, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 156, 66, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* Admin Section */
.admin-section {
  margin-bottom: 40px;
}

.admin-section h4 {
  color: var(--copper);
  margin-bottom: 16px;
  font-size: 1.3rem;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-table {
    font-size: 0.85rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 12px;
  }
  
  .action-btns {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
  }
  
  .tabs {
    gap: 4px;
  }
  
  .tab {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .modal-content {
    max-width: 95%;
  }
}

/* Logout Button Styling */
.logout-btn {
  margin-top: 8px;
}

/* Status Text Colors */
.status {
  font-size: 0.9rem;
  font-weight: 500;
}

