/*
 * AmComm Global Stylesheet
 * Clean, deduplicated, and mobile‑optimized
 */

/* ===========================
   GLOBAL BODY
   =========================== */
.amcomm-body {
  background: #000;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* ===========================
   HEADER + TOP NAV
   =========================== */
.amcomm-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0f1117;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  border-bottom: 1px solid #f5c54233;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.amcomm-logo { height: 40px; }

.amcomm-title {
  color: #f5c542;
  font-size: 1.4rem;
  font-weight: bold;
}

.header-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  color: #f5c542;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-bottom: 4px;
}

.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #f5c542;
  box-shadow: 0 0 6px #f5c542;
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

/* ===========================
   RIGHT-SIDE NAVIGATION (DESKTOP)
   =========================== */
.right-nav {
  position: fixed;
  top: 90px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 180px;
  z-index: 9999;
}

.right-nav button {
  background: #0f1117;
  color: #f5c542;
  border: 1px solid #f5c54255;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.right-nav button:hover {
  background: #1a1d26;
  border-color: #f5c542;
  box-shadow: 0 0 8px rgba(245,197,66,0.5);
}

.right-nav button.active {
  background: #1a1d26;
  border-color: #f5c542;
  box-shadow: 0 0 12px rgba(245,197,66,0.7);
  color: #fff;
}

/* ===========================
   MOBILE MENU TOGGLE
   =========================== */
.mobile-menu-toggle {
  display: none;
}

/* ===========================
   MOBILE RESPONSIVE NAV (SLIDE-IN)
   =========================== */
@media (max-width: 768px) {

  /* Hide desktop nav + prepare slide-in */
  .right-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: -220px; /* start off-screen */
    width: 200px;
    background: #111;
    padding: 15px;
    border-left: 2px solid #f5c542;
    transition: right 0.25s ease-out; /* slide motion */
  }

  /* Slide into view */
  .right-nav.open {
    display: block;
    right: 0;
  }

  /* Show toggle button */
  .mobile-menu-toggle {
    display: block;
    cursor: pointer;
    padding: 10px;
    font-size: 1.2rem;
    color: #f5c542;
  }
}

/* ===========================
   AUTH BUTTONS
   =========================== */
.auth-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  color: white;
}

.auth-btn.login { background: #1e88e5; }
.auth-btn.signup { background: #43a047; }
.auth-btn.logout { background: #e53935; }

.auth-btn:hover { opacity: 0.85; }

/* ===========================
   NET SCHEDULE CARDS
   =========================== */
.net-card {
  width: 89%;
  background: #1a1a1a;
  border: 1px solid gold;
  border-radius: 10px;
  padding: 15px;
  margin-left: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.net-card-header {
  font-size: 1.3rem;
  font-weight: bold;
  color: gold;
  margin-bottom: 10px;
}

.net-card-body p {
  margin: 4px 0;
  color: #ddd;
}

.net-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.btn-edit {
  background: #1e88e5;
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
}

.btn-delete {
  background: #e53935;
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
}

.btn-edit:hover,
.btn-delete:hover {
  opacity: 0.85;
}

/* ===========================
   STATUS BOX
   =========================== */
.status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1d25;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid #f5c54255;
  margin-right: 50px;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #00ff00;
  border-radius: 50%;
  animation: status-blink 1.2s ease-in-out infinite;
}

@keyframes status-blink {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

.status-text {
  color: #f5c542;
  font-weight: bold;
}

/* ===========================
   DASHBOARD TILES
   =========================== */
.dashboard-grid h1 {
  color: #d4af37;
  font-weight: 300;
  margin-bottom: 2rem;
}

.dash-tile {
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(212,175,55,0.45);
}

.dash-thumb {
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #222;
}

.dash-tile .card-title {
  color: #eee;
  font-weight: 400;
}

.btn-amcomm {
  background-color: #d4af37;
  border-color: #d4af37;
  color: #000;
  font-weight: 600;
  border-radius: 6px;
}

.btn-amcomm:hover {
  background-color: #e0c15a;
  border-color: #e0c15a;
  color: #000;
}

/* ===========================
   TALKGROUP TABLE
   =========================== */
.tg-table {
  width: 80%;
  border-collapse: collapse;
  margin-left: 30px;
  margin-top: 20px;
  background: #1a1a1a;
  border: 4px solid gold;
  border-radius: 6px;
  overflow: hidden;
}

.tg-table th {
  background: #222;
  color: gold;
  padding: 10px;
  text-align: left;
  font-size: 1.1rem;
  border-bottom: 2px solid gold;
}

.tg-table td {
  padding: 10px;
  color: #fff;
  border-bottom: 1px solid gold;
}

.tg-table tr:hover { background: #2a2a2a; }

.tgid-col { width: 120px; font-weight: bold; }
.name-col { width: auto; }
.actions-col { width: 160px; text-align: left; }

.tg-search { margin-bottom: 15px; }

.tg-search-box {
  padding: 8px;
  width: 260px;
  border: 1px solid gold;
  background: #111;
  color: #fff;
  border-radius: 4px;
}

.tg-search-btn {
  padding: 8px 14px;
  margin-left: 8px;
  background: gold;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tg-add-link { margin: 10px 0; }
.tg-add-btn { color: gold; font-weight: bold; }

.tg-action-link { color: gold; }
.tg-action-link.delete { color: #ff6666; }

/* ===========================
   HOMEPAGE HERO + TILES
   =========================== */
.hero-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-image {
  width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.tile-card {
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 2px solid gold;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.tile-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(245,197,66,0.5);
}

.tile-img {
  width: 100%;
  height: auto;
  display: block;
}

.tile-label {
  text-align: center;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background: #f5c542;
  color: #000;
  border-top: 2px solid #000;
  box-shadow: 0 0 10px rgba(245,197,66,0.6);
}

.tile-link { text-decoration: none; }
.amcomm-button {
  background: #f5c542;
  color: #000;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #000;
  box-shadow: 0 0 6px rgba(245,197,66,0.5);
  transition: 0.2s ease;
}

.amcomm-button:hover {
  background: #ffdb5c;
  box-shadow: 0 0 10px rgba(245,197,66,0.7);
}