/* ═══════════════════════════════════════════════════════════
   WARDOFF WEB APP - UPDATED STYLES V2
   NEW TACTICAL COLOR PALETTE
   Green: #2cf568 | Red: #f5472c | Black: #212121 | White: #e6e6e6
   ═══════════════════════════════════════════════════════════ */

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

body {
  background: #000000;
  color: #e6e6e6;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Phone Frame Container - RESPONSIVE */
.phone-frame-wrapper {
  min-height: 100vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 430px; /* Mobile default */
  background: #000000;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Tablet: expand to 700px */
@media (min-width: 768px) {
  .phone-frame {
    max-width: 700px;
  }
}

/* Desktop: expand to 900px */
@media (min-width: 1024px) {
  .phone-frame {
    max-width: 900px;
  }
}

/* Large Desktop: expand to 1200px */
@media (min-width: 1440px) {
  .phone-frame {
    max-width: 1200px;
  }
}

/* SF Symbols Style Icons */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-xl {
  width: 48px;
  height: 48px;
}

/* SF Symbol SVG Icons */
.sf-icon {
  fill: currentColor;
  width: 100%;
  height: 100%;
}

/* Typography - More breathing room */
.logo-text {
  font-size: 2.5rem;
  font-weight: 100;
  letter-spacing: 0.4em;
  color: #e6e6e6;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 3rem;
  }
}

.subtitle-text {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #888888;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .subtitle-text {
    font-size: 0.75rem;
  }
}

/* Buttons - Responsive sizing */
.btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .btn {
    padding: 1.25rem;
    font-size: 1rem;
  }
}

.btn-primary {
  background: #2cf568;
  color: #000;
}

.btn-primary:hover {
  background: #24d95a;
}

.btn-secondary {
  background: #1a1a1a;
  color: #888888;
  border: 1px solid #2a2a2a;
}

.btn-secondary:hover {
  background: #2a2a2a;
}

.btn-danger {
  background: rgba(245, 71, 44, 0.2);
  color: #f5472c;
  border: 1px solid #f5472c;
}

.btn-success {
  background: rgba(44, 245, 104, 0.2);
  color: #2cf568;
  border: 1px solid #2cf568;
}

/* Cards - Better spacing */
.card {
  background: rgba(230, 230, 230, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .card {
    padding: 2rem;
    border-radius: 1.25rem;
  }
}

.card-border {
  border: 1px solid #2a2a2a;
}

/* Inputs - Responsive */
input, textarea {
  width: 100%;
  background: #000000;
  border: 1px solid #2a2a2a;
  color: #e6e6e6;
  padding: 1rem;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

@media (min-width: 768px) {
  input, textarea {
    padding: 1.25rem;
    font-size: 1rem;
  }
}

input:focus, textarea:focus {
  border-color: #2cf568;
}

input::placeholder, textarea::placeholder {
  color: #555555;
}

.input-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #888888;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .input-label {
    font-size: 0.75rem;
  }
}

/* Header - Responsive */
.header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(230, 230, 230, 0.1);
}

@media (min-width: 768px) {
  .header {
    padding: 2rem 2.5rem;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navigation - Responsive */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(230, 230, 230, 0.1);
  padding: 0.75rem;
  display: flex;
  justify-content: space-around;
  z-index: 100;
}

@media (min-width: 768px) {
  .nav-bottom {
    padding: 1rem;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #888888;
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
  .nav-item {
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
  }
}

.nav-item.active {
  color: #e6e6e6;
}

.nav-item:hover {
  color: #e6e6e6;
}

.nav-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav-icon {
    font-size: 1.5rem;
  }
}

/* Status Indicators */
.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  display: inline-block;
}

@media (min-width: 768px) {
  .status-dot {
    width: 1rem;
    height: 1rem;
  }
}

.status-armed {
  background: #2cf568;
  box-shadow: 0 0 10px rgba(44, 245, 104, 0.5);
}

.status-disarmed {
  background: #f5472c;
  box-shadow: 0 0 10px rgba(245, 71, 44, 0.5);
}

.status-online {
  background: #2cf568;
}

.status-offline {
  background: #f5472c;
}

/* Status Indicator Dots for Sensors */
.status-indicator {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  display: inline-block;
}

@media (min-width: 768px) {
  .status-indicator {
    width: 0.75rem;
    height: 0.75rem;
  }
}

/* Stats Grid - Responsive */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .stats-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: rgba(230, 230, 230, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .stat-card {
    padding: 2rem;
  }
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}

.stat-value {
  font-size: 2rem;
  font-weight: 100;
  color: #e6e6e6;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 2.5rem;
  }
}

.stat-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #888888;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .stat-label {
    font-size: 0.75rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.4s ease;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-2xs { font-size: 0.625rem; }

.text-gray { color: #888888; }
.text-green { color: #2cf568; }
.text-red { color: #f5472c; }
.text-blue { color: #e6e6e6; }

.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(230, 230, 230, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(230, 230, 230, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 230, 230, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 430px) {
  .phone-frame {
    max-width: 100%;
  }
  
  .nav-bottom {
    max-width: 100%;
  }
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(230, 230, 230, 0.3);
  border-top-color: #e6e6e6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.footer-text {
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: #555555;
  text-align: center;
  margin-top: 2rem;
}

/* Main content padding adjustment for nav */
main {
  padding-bottom: 90px !important;
}

@media (min-width: 768px) {
  main {
    padding-bottom: 100px !important;
  }
}

/* Dashboard Armed Card Glow - NEW TACTICAL GREEN */
#statusCard.armed {
    border-color: #2cf568 !important;
    box-shadow: 0 0 20px rgba(44, 245, 104, 0.4), inset 0 0 20px rgba(44, 245, 104, 0.1) !important;
    animation: dashboardBorderPulse 2s ease-in-out infinite;
}

@keyframes dashboardBorderPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(44, 245, 104, 0.4), inset 0 0 20px rgba(44, 245, 104, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(44, 245, 104, 0.6), inset 0 0 25px rgba(44, 245, 104, 0.15);
    }
}
