﻿:root {
  --primary: #2193b0;
  --secondary: #6dd5ed;
  --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  color: #fff;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Dynamic background shapes */
.app-background {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-gradient);
}
.app-background::before, .app-background::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 15s infinite alternate;
}
.app-background::before {
  top: -10%; left: -10%; width: 50%; height: 50%;
  background: rgba(33, 147, 176, 0.2);
}
.app-background::after {
  bottom: -10%; right: -10%; width: 60%; height: 60%;
  background: rgba(109, 213, 237, 0.15);
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Glassmorphism Containers */
.glass-nav {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Form Controls */
.form-control, .form-select {
  background: rgba(255, 255, 255, 0.05) !important; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-control::placeholder, .form-select::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 400 !important;
}
.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 10px rgba(255,255,255,0.05) !important;
  color: #ffffff !important;
}

/* Buttons */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
  filter: brightness(1.05);
}
.btn:active {
  transform: scale(0.96) translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #2193b0, #6dd5ed);
  border: none;
  border-radius: 12px;
  font-weight: 600;
}
.btn-primary:hover {
  box-shadow: 0 5px 20px rgba(33, 147, 176, 0.5) !important;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(90deg, #2193b0, #6dd5ed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* UI/UX Tweak Additions */
.exercise-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.exercise-glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.exercise-glass-card:active {
  transform: scale(0.98);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 5px 5px rgba(0,0,0,0.2);
  transition: all 0.1s ease;
}

.animated-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.animated-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
}

.gamification-alert {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  backdrop-filter: blur(8px);
  color: #ffc107;
  border-radius: 12px;
}

/* ------------------------------------- */
/* SIDEBAR DASHBOARD LAYOUT STYLES       */
/* ------------------------------------- */
#app-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#sidebar-wrapper {
  min-width: 260px;
  max-width: 260px;
  height: 100vh;
  background: rgba(10, 22, 28, 0.75);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1040;
  display: flex;
  flex-direction: column;
}

#sidebar-wrapper.collapsed {
  min-width: 80px;
  max-width: 80px;
}
#sidebar-wrapper.collapsed .sidebar-brand span,
#sidebar-wrapper.collapsed .sidebar-menus span,
#sidebar-wrapper.collapsed .sidebar-menus h6,
#sidebar-wrapper.collapsed .sidebar-footer span {
  display: none !important;
}
#sidebar-wrapper.collapsed .sidebar-link {
  justify-content: center;
  padding: 12px 0;
  margin: 5px 10px;
}
#sidebar-wrapper.collapsed .sidebar-link i {
  margin-right: 0;
  font-size: 1.4rem;
}

.sidebar-brand img {
  transition: all 0.4s ease;
}
#sidebar-wrapper.collapsed .sidebar-brand img {
  width: 35px !important;
  height: 35px !important;
  margin-right: 0 !important;
}

/* Hide scrollbars for the menu area */
.sidebar-menus {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.sidebar-menus::-webkit-scrollbar {
  display: none;
}

#page-content-wrapper {
  flex-grow: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-link {
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 18px;
  border-radius: 14px;
  margin: 4px 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.sidebar-link i {
  font-size: 1.15rem;
  margin-right: 14px;
  transition: 0.3s;
  font-weight: lighter;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff;
}
.sidebar-link:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1) !important;
  transition: all 0.1s ease;
}
.sidebar-link.active i {
  filter: drop-shadow(0 0 5px currentColor);
}

#sidebarToggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1050;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  width: 40px; height: 40px;
  display: flex; justify-content: center; align-items: center;
  transition: all 0.3s;
  border-radius: 12px;
}
#sidebarToggle:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

/* Mobile Sidebar Responsiveness */
@media (max-width: 991.98px) {
  #sidebarToggle {
    position: fixed;
    top: 15px;
    right: 15px; /* On mobile we put menu toggle top right */
    left: auto;
    border-radius: 50%;
  }
  #sidebar-wrapper {
    position: fixed;
    left: -260px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }
  #sidebar-wrapper.toggled {
    left: 0;
  }
  #sidebar-wrapper.collapsed {
    min-width: 260px;
    max-width: 260px;
  }
  #sidebar-wrapper.collapsed .nav-text,
  #sidebar-wrapper.collapsed h6 {
    display: inline !important;
  }
  #sidebar-wrapper.collapsed .sidebar-link {
    justify-content: flex-start;
    padding: 10px 18px;
  }
  #sidebar-wrapper.collapsed .sidebar-link i {
    margin-right: 14px;
  }
  #page-content-wrapper {
    min-width: 100vw;
  }
}

