/* SB AQUA CARE Demo Web Page Custom Styles */

:root {
  --primary-blue: #026aa7;
  --primary-blue-dark: #014c78;
  --primary-blue-container: #d2e4ff;
  --secondary-teal: #006877;
  --secondary-teal-container: #a5eeff;
  --surface-light: #ffffff;
  --background-light: #f4f6f9;
  --text-primary: #191c1e;
  --text-secondary: #43474e;
  --border-color: #e2e8f0;
  --success-green: #1b873f;
  --warning-orange: #e65100;
  --danger-red: #ba1a1a;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #0f172a;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Desktop Phone Mockup Frame */
@media (min-width: 900px) {
  .phone-frame-container {
    width: 412px;
    height: 860px;
    background: #000000;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .notch-camera {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 20px;
    background-color: #000000;
    border-radius: 12px;
    z-index: 50;
    pointer-events: none;
  }
}

/* Mobile full-screen behavior */
@media (max-width: 899px) {
  .desktop-portfolio-sidebar {
    display: none !important;
  }

  .phone-frame-container {
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--background-light) !important;
  }

  .phone-screen {
    border-radius: 0 !important;
    height: 100dvh !important;
  }

  .notch-camera {
    display: none !important;
  }
}

/* Status Bar */
.phone-status-bar {
  height: 38px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  z-index: 40;
  user-select: none;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Material App Bar */
.app-top-bar {
  background-color: #026aa7;
  color: #ffffff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  z-index: 30;
}

/* Bottom Navigation Bar */
.app-bottom-nav {
  height: 62px;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  z-index: 30;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
}

.nav-tab.active {
  color: #026aa7;
  font-weight: 700;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  transition: transform 0.2s;
}

.nav-tab.active svg {
  transform: translateY(-1px);
}

/* Drawer Backdrop & Sheet */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-sheet {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 285px;
  background: #ffffff;
  z-index: 61;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.drawer-backdrop.open .drawer-sheet {
  transform: translateX(0);
}

/* FAB */
.app-fab {
  position: absolute;
  bottom: 74px;
  right: 18px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #026aa7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 106, 167, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 25;
  border: none;
}

.app-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(2, 106, 167, 0.5);
}

.app-fab:active {
  transform: scale(0.95);
}

/* Modals & Dialogs */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-height: 88%;
  border-radius: 24px 24px 0 0;
  padding: 20px 18px 24px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-animate {
  animation: fadeIn 0.2s ease-out;
}

/* Pill home indicator */
.home-indicator {
  width: 110px;
  height: 4px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  margin: 6px auto 4px;
}
