/* Font imports */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&display=swap");

/* Font settings */
body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.card-header {
  font-family: "Inter", sans-serif;
}

.table th {
  font-family: "Inter", sans-serif;
}

/* Global Styles for Mikhmon PPPoE */
.highcharts-container.dark-chart {
  background-color: transparent;
}
.highcharts-background {
  fill: transparent;
  border: none;
}
.highcharts-plot-background {
  fill: transparent;
}
.bg-blue {
  background-color: #3498db;
}

/* Enhanced Box Styling */
.card1 {
  background: #1bc0a4;
  background: -webkit-linear-gradient(0deg, #1bc0a4 0%, #5ef6dc 100%);
  background: linear-gradient(0deg, #1bc0a4 0%, #5ef6dc 100%);
}
.card2 {
  background: #51a9e3;
  background: -webkit-linear-gradient(0deg, #51a9e3 0%, #4adcef 100%);
  background: linear-gradient(0deg, #51a9e3 0%, #4adcef 100%);
  display: grid;
  /* justify-content: center; */
  align-items: center;
  /* gap: 2px; */
}
.card2 .ppp-link {
  background: rgba(32, 168, 216, 0.25);
  border-radius: 5px;
  padding: 6px 4px;
}
.card3 {
  background: #e6a62c;
  background: -webkit-linear-gradient(0deg, #e6a62c 0%, #e0d81b 100%);
  background: linear-gradient(0deg, #e6a62c 0%, #e0d81b 100%);
}
.card4 {
  background: #eb4d4b;
  background: -webkit-linear-gradient(0deg, #eb4d4b 0%, #ff7673 100%);
  background: linear-gradient(0deg, #eb4d4b 0%, #ff7673 100%);
}
.box {
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 10px;
}

.box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #20a8d8;
  transition: all 0.5s ease;
  transform: translateX(-50%);
}

.box:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.box:hover::after {
  width: 90%;
}
/* Placeholder styling */
input[placeholder] {
  /* color: #f010bf; */
  opacity: 0.7;
}

textarea::placeholder {
  color: #a0aec0;
  opacity: 0.7;
}

select::placeholder {
  color: #a0aec0;
  opacity: 0.7;
}

/* Improved form elements */
input,
select,
textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #20a8d8;
  box-shadow: 0 0 0 0.2rem rgba(32, 168, 216, 0.25);
}

/* Button enhancements */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Table improvements */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
}

/* Enhanced Card Styling */
.card {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 10px 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
}

.card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  /* transform: translateY(-3px); */
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #20a8d8, #4dbd74);
  transition: height 0.5s ease;
}

.card:hover::after {
  height: 100%;
}

.card-header {
  padding: 12px 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* background-color: rgba(0, 0, 0, 0.02); */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 15px;
}

.card-footer {
  padding: 10px 15px;
  border-top: 1px solid rgba(240, 0, 0, 0.05);
  /* background-color: rgba(0, 0, 0, 0.02); */
  display: flex;
  justify-content: flex-end;
}

/* Card variations */
.card-primary::after {
  background: linear-gradient(to bottom, #20a8d8, #63c2de);
}

.card-success::after {
  background: linear-gradient(to bottom, #4dbd74, #20c997);
}

.card-warning::after {
  background: linear-gradient(to bottom, #ffc107, #f8cb00);
}

.card-danger::after {
  background: linear-gradient(to bottom, #f86c6b, #e83e8c);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .box {
    margin: 3px;
    padding: 8px;
  }

  .box-group-icon {
    font-size: 30px;
  }

  .card {
    margin: 5px 2px;
  }

  .card-header {
    padding: 8px 12px;
  }

  .card-body {
    padding: 10px;
  }
}

/* =========================================================
   Dashboard UI & UX Enhancements
   ========================================================= */
.dash-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 4px 12px 4px;
}

.dash-sys-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dash-info-card {
  background-color: var(--primary-color, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.dash-info-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-info-head-text {
  min-width: 0;
  flex: 1;
}

.dash-icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.dash-pill-blue {
  background: rgba(32, 168, 216, 0.16);
  color: #20a8d8;
}

.dash-pill-teal {
  background: rgba(20, 184, 166, 0.16);
  color: #14b8a6;
}

.dash-pill-success {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.dash-pill-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.dash-pill-danger {
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e;
}

.dash-eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.68;
  font-weight: 600;
}

.dash-info-primary {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(128, 128, 128, 0.16);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-chip-success {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.dash-chip-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.dash-chip-danger {
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e;
}

.dash-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.18);
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s ease;
}

.dash-fill-success {
  background: linear-gradient(90deg, #059669, #34d399);
}

.dash-fill-warning {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.dash-fill-danger {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.dash-spec-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid rgba(128, 128, 128, 0.14);
  padding-top: 8px;
}

.dash-spec-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: none;
  padding-top: 0;
}

.dash-spec-chip {
  background: rgba(128, 128, 128, 0.08);
  border-radius: 8px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dash-spec-chip .dash-spec-value {
  text-align: left;
}

.dash-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-spec-label {
  opacity: 0.7;
  font-size: 11.5px;
  white-space: nowrap;
}

.dash-spec-value {
  font-weight: 600;
  font-size: 12.5px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

.dash-main-col,
.dash-side-col,
.dash-logs-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.dash-card {
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(128, 128, 128, 0.18) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dash-card::after {
  display: none !important;
}

.dash-card-header {
  padding: 11px 16px !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-card-header h3 {
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dash-header-link {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.dash-header-link:hover {
  opacity: 1;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card-body {
  padding: 14px 16px !important;
  margin-bottom: 0 !important;
}

.dash-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dash-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #ffffff !important;
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dash-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  filter: brightness(1.04);
}

.dash-tile-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.dash-tile-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.dash-tile-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.dash-tile-rose {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
}

.dash-tile-sky {
  background: linear-gradient(135deg, #0369a1 0%, #06b6d4 100%);
}

.dash-tile-teal {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.dash-tile-indigo {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.dash-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-tile-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.dash-tile-arrow {
  font-size: 12px;
  opacity: 0.72;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dash-tile:hover .dash-tile-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.dash-tile-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.dash-tile-unit {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  margin-left: 2px;
}

.dash-tile-cta {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.dash-tile-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.94;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-tile-split {
  cursor: default;
}

.dash-tile-split:hover {
  transform: none;
  filter: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dash-tile-split-title {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.96;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-split-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-split-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dash-split-pill:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(2px);
}

.dash-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}

.dash-dot-online {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.85);
}

.dash-dot-offline {
  background: #fca5a5;
}

/* Traffic Toggle & Empty State */
#trafficToggle.traffic-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(128, 128, 128, 0.38);
  background: rgba(128, 128, 128, 0.18);
  color: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.traffic-toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(156, 163, 175, 0.85);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.traffic-toggle-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

#trafficToggle.traffic-toggle.on {
  background: #059669;
  border-color: #10b981;
  color: #ffffff;
}

#trafficToggle.traffic-toggle.on .traffic-toggle-dot {
  background: #86efac;
  box-shadow: 0 0 6px #86efac;
}

#trafficToggle.traffic-toggle.on .traffic-toggle-knob {
  transform: translateX(2px);
  background: #ffffff;
}

.dash-traffic-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.05);
}

.dash-traffic-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(32, 168, 216, 0.14);
  color: #20a8d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.dash-traffic-empty-title {
  font-size: 14px;
  font-weight: 700;
}

.dash-traffic-empty-sub {
  font-size: 12px;
  opacity: 0.72;
  margin-top: 3px;
}

.dash-traffic-start-btn {
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #20a8d8;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.dash-traffic-start-btn:hover {
  background: #1b94c0;
  transform: translateY(-1px);
}

/* Income Card */
.dash-income-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dash-income-stat {
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}

.dash-income-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.dash-income-label {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.72;
}

.dash-vcr-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(32, 168, 216, 0.16);
  color: #20a8d8;
  white-space: nowrap;
}

.dash-income-amount {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Log Tables */
.dash-log-scroll {
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.16);
}

.dash-log-table {
  margin: 0;
  font-size: 12px;
}

.dash-log-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--primary-color, #f5f6f7);
  border-top: none !important;
  border-bottom: 1px solid rgba(128, 128, 128, 0.22) !important;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 7px 8px !important;
}

.dash-log-table tbody td {
  padding: 7px 8px !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(128, 128, 128, 0.12) !important;
  vertical-align: middle;
}

.dash-log-table tbody tr:last-child td {
  border-bottom: none !important;
}

.dash-log-time {
  white-space: nowrap;
}

.dash-time-date {
  display: block;
  font-size: 10.5px;
  opacity: 0.65;
}

.dash-time-clock {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dash-user-name {
  display: block;
  font-weight: 600;
  word-break: break-word;
}

.dash-user-ip {
  display: block;
  font-size: 10.5px;
  opacity: 0.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dash-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.dash-badge-success {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.dash-badge-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
}

.dash-badge-danger {
  background: rgba(244, 63, 94, 0.16);
  color: #f43f5e;
}

.dash-badge-neutral {
  background: rgba(128, 128, 128, 0.16);
  color: inherit;
}

.dash-loading-inline,
.dash-loading-cell,
.dash-empty-cell {
  padding: 16px 8px !important;
  opacity: 0.75;
  font-size: 12.5px;
}

@media (max-width: 1140px) {
  .dash-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .dash-sys-grid {
    grid-template-columns: 1fr;
  }
  .dash-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .dash-tile-grid,
  .dash-income-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Top Navbar UI & UX Enhancements
   ========================================================= */
.navbar.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 0 0;
  height: 50px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 50px;
  flex-shrink: 0;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.top-brand:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.top-nav-toggle {
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 8px;
  color: #f2f2f2;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.top-page-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  min-width: 0;
  overflow: hidden;
}

.top-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82) !important;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.top-nav-item i {
  font-size: 12px;
  opacity: 0.88;
}

.top-nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
}

.top-nav-item.is-active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.top-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f2f2f2;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.top-control-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 6px 0 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f2f2;
}

.top-control-pill i {
  font-size: 12px;
  opacity: 0.85;
}

.top-select.ses {
  float: none;
  margin: 0 !important;
  padding: 0 4px 0 2px !important;
  height: 26px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  max-width: 120px;
}

.top-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f2f2 !important;
  font-size: 13px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.top-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.top-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(244, 63, 94, 0.42);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.top-logout-btn:hover {
  background: rgba(244, 63, 94, 0.42);
  border-color: rgba(244, 63, 94, 0.7);
}

@media (max-width: 1360px) {
  .top-nav-item span {
    display: none;
  }
  .top-nav-item {
    padding: 6px 8px;
  }
}

@media (max-width: 980px) {
  .top-nav-links {
    display: none;
  }
}

@media (max-width: 750px) {
  .navbar.top-navbar {
    padding: 0 8px;
  }
  .top-select.ses {
    max-width: 92px;
  }
}

@media (max-width: 520px) {
  .top-logout-btn span,
  .top-timer-pill {
    display: none !important;
  }
}
