:root {
    --bg: #0e0f12;
    --panel: #16181d;
    --muted: #9aa0aa;
    --text: #e8eaee;
    --accent: #5ec2f1;
    --accent-2: #7ee787;
    --danger: #ff6b6b;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    background: radial-gradient(1200px 600px at 10% -10%, #12141a 0%, var(--bg) 60%);
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    font-family: "Golos Text", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  }
  
  .app-header, .app-footer {
    display:flex; align-items:center; justify-content:space-between;
    padding: 14px 20px; background: rgba(22,24,29,.8); backdrop-filter: blur(8px);
    position: sticky; top:0; z-index: 10; border-bottom: 1px solid #22252d;
  }
  .app-footer { position: static; margin-top: 30px; border-top: 1px solid #22252d; border-bottom: 0; }
  
  .brand { display:flex; align-items:center; gap:10px; font-weight: 600; letter-spacing:.2px; }
  .logo { width: 150px; }
  .logo-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 18px rgba(94,194,241,.5); }
  
  .container { max-width: 1200px; margin: 24px auto; padding: 0 16px; display: grid; gap: 18px; }
  
  .card {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border: 1px solid #23262f; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
    animation: fadeIn .5s ease both;
  }
  .card-header { display:flex; align-items:center; justify-content:space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #23262f; }
  .card-header h3 { margin: 0; font-weight: 600; }
  .card-header .row { display:flex; align-items:center; gap:10px; flex-wrap: wrap; }
  .card-body { padding: 14px 16px; }
  
  .row label { color: var(--muted); font-size: 14px; display:flex; flex-direction:column; gap:6px; }
  input[type="date"], input[type="text"], input[type="password"], input[type="number"] {
    background:#101218; color:var(--text); border:1px solid #2a2f3a; border-radius:12px; padding:10px 12px; outline:none;
    transition: border-color .2s ease, transform .15s ease;  margin: 5px;
  }
  input:focus { border-color: var(--accent); transform: translateY(-1px); }
  
  .btn {
    background: linear-gradient(135deg, #2a6cff, #24a3ff);
    border: none; color:#fff; padding:10px 14px; border-radius:12px; cursor:pointer; font-weight:600;
    transition: transform .1s ease, filter .2s ease, opacity .2s ease;
  }
  .btn:hover { filter: brightness(1.05); }
  .btn:active { transform: translateY(1px); }
  .btn.subtle {
    background:#1c2029; color: var(--text); border:1px solid #2a2f3a;
  }
  .btn.primary { background: linear-gradient(135deg, #3fb950, #2ea043);  margin: 5px;}
  
  /* .username { padding:6px 10px; background:#1c2029; border:1px solid #2a2f3a; border-radius:999px; } */
  .username { padding:6px 10px; color: #656565; font-size: 80%; font-style: italic;}
  .hidden { display: none !important; }
  
  .modal {
    position: fixed; inset:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    opacity:0; pointer-events:none; transition: opacity .2s ease;
    z-index: 9999;
  }
  .modal.open { opacity:1; pointer-events: all; }
  .modal-card {
    width: 360px; background: var(--panel); border: 1px solid #2a2f3a; border-radius: 16px; padding: 18px;
    transform: translateY(10px); animation: slideUp .25s ease forwards;
    text-align:center;
  }
  .modal-card h2 { margin-top:0; }
  .w-100 { width: 100%; }
  .error { color: var(--danger); margin-top: 8px; min-height: 20px; }
  
  .dataTable { color: var(--text); }
  .dataTables_wrapper .dataTables_filter input { background: #101218; color: var(--text); }
  table.dataTable thead th { border-bottom: 1px solid #2a2f3a; }
  table.dataTable tbody tr { transition: background .2s ease; }
  table.dataTable tbody tr:hover { background: rgba(255,255,255,.03); }
  
  .metar-box {
    background: #0d0f14; border:1px solid #23262f; border-radius: 12px; padding: 12px; min-height: 64px;
  }

  .audio-sections {
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin-top: 20px;
  max-width: 700px;
  margin-left: 10%;
  margin-right: 10%;
}

.audio-block {
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.audio-block h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}



.sound-btn {
  width: 250px;
  height: 150px;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  margin: 5px;
  backdrop-filter: blur(8px);
}

.ground {
  background: linear-gradient(120deg, rgb(250, 167, 43), rgba(251, 92, 18, 0.65));
  color: black;
}

.inflight {
  background: linear-gradient(120deg, rgb(23, 162, 128), rgba(23, 162, 128, 0.65));
  color: black;
}

.descent {
  background: linear-gradient(120deg, rgb(84, 175, 255), rgba(84, 175, 255, 0.65)); 
  color: black;
}

.sound-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.sound-btn:active {
  transform: scale(0.95);
}


/* 1. Полупрозрачная стеклянная кнопка */
.btn-glass {
  background: rgba(255, 140, 0, 0.2);
  border: 1px solid rgba(255, 140, 0, 0.5);
  border-radius: 12px;
  color: #ffae2b;
  width: 225px;
  height: 125px;
  font-family: "Golos Text", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 140, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
  transform: scale(1.05);
}

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