/* style-footer.css - Footer desktop, mobile, responsive */
/* Footer Responsive Styles */
.app-footer {
  width: 100%;
  background: #f8f9fa;
  color: #333;
  font-size: 0.98rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  margin-top: 32px;
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 12px;
}
.footer-mobile-list { display: block; }
.footer-mobile-card {
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  max-width: 900px;
}
.footer-right .hotspot-badge {
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.95rem;
}
.footer-right .status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  margin: 0 8px;
}
.footer-right .version {
  color: #888;
  font-size: 0.95rem;
}
.footer-row { margin: 6px 0; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.footer-row:last-child {
  border-bottom: none;
}
.footer-row.center {
  justify-content: center;
  color: #888;
  font-size: 0.95rem;
  padding-top: 8px;
}
.footer-row .label {
  color: #555;
  font-weight: 500;
}
.footer-row .value {
  color: #1976d2;
  font-weight: 600;
}
.footer-row .muted {
  color: #aaa;
}
/* Always use mobile-style footer across sizes (user requested same look) */

/* Footer (professional design) */
.app-footer {
  position: fixed;
  bottom: 0; 
  left: 0; 
  right: 0;
  background: #1a2530; /* Gunakan warna gelap yang sama */
  color: #ecf0f1;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4); /* Shadow untuk footer (arah atas) */
  font-size: 13px;
  min-height: 50px;
}

.footer-content {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  max-width: 100%;
  height: 100%;
}

/* Desktop Footer */
.footer-desktop {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #3498db;
}

.brand-text {
  font-size: 16px;
  font-weight: bold;
}

.version-text {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #bdc3c7;
}

.router-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.status-indicators {
  display: flex;
  gap: 20px;
  align-items: center;
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.indicator-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.indicator-label {
  font-size: 11px;
  font-weight: 500;
  color: #bdc3c7;
}

.indicator-value {
  font-weight: bold;
  color: #ecf0f1;
  min-width: 20px;
  text-align: center;
  background: rgba(0,0,0,0.2);
  padding: 1px 5px;
  border-radius: 8px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.connection-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  transition: all 0.3s ease;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
}

.status-dot[style*="background: #2ecc71"] {
  animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
}

.status-text {
  font-size: 10px;
  color: #bdc3c7;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #bdc3c7;
}

/* Mobile Footer */
.footer-mobile {
  display: none;
  flex-direction: column;
  padding: 6px 15px;
  width: 100%;
}

.footer-mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #3498db;
  font-size: 14px;
}

.mobile-connection {
  display: flex;
  align-items: center;
}

.footer-mobile-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 5px;
}

.mobile-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-stat:hover {
  background: rgba(255,255,255,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-desktop {
    display: none;
  }
  
  .footer-mobile {
    display: flex;
  }
  
  .app-footer {
    min-height: 45px;
  }
}

@media (max-width: 480px) {
  .footer-mobile-stats {
    gap: 2px;
  }
  
  .mobile-stat {
    font-size: 11px;
    padding: 2px 4px;
  }
  
  .app-footer {
    font-size: 12px;
    min-height: 42px;
  }
  
  .mobile-brand {
    font-size: 13px;
  }
}

/* Status Colors */
.text-success {
  color: #27ae60 !important;
}

.text-danger {
  color: #e74c3c !important;
}

.text-warning {
  color: #f39c12 !important;
}

/* Footer dynamic height adjustment handled by main-container */
body {
  margin: 0;
  padding: 0;
}

