/* Main responsive styles */

/* Relative units for scalability */
body {
  font-size: 100%;
  margin: 0;
  padding: 0;
}

h1 { 
  font-size: 2.5em;
}

/* Left Sidebar Navigation Styles */
.sidebar-nav-container {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 250px;
  background: #222;
  z-index: 1000;
  box-shadow: 3px 0 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.sidebar-nav-container.collapsed {
  width: 60px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  height: 100%;
}

.sidebar-nav-logo {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav-logo img {
  max-width: 80%;
  transition: all 0.3s ease;
}

.sidebar-nav-container.collapsed .sidebar-nav-logo img {
  max-width: 100%;
}

.sidebar-nav a {
  color: #f2f2f2;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  margin: 0.2rem 0;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav a .nav-icon {
  margin-right: 15px;
  font-size: 1.2rem;
  min-width: 20px;
  text-align: center;
}

.sidebar-nav a .nav-text {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.sidebar-nav-container.collapsed .sidebar-nav a {
  padding: 0.8rem;
  justify-content: center;
}

.sidebar-nav-container.collapsed .sidebar-nav a .nav-text {
  opacity: 0;
  width: 0;
  margin: 0;
}

.sidebar-nav a:hover {
  color: #ff0033;
  background: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
  color: #ff0033;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid #ff0033;
}

.sidebar-toggle {
  position: absolute;
  top: 20px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: #ff0033;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.sidebar-toggle i {
  transition: transform 0.3s ease;
}

.sidebar-nav-container.collapsed .sidebar-toggle i {
  transform: rotate(180deg);
}

/* Main content adjustment */
.main-content {
  margin-left: 250px !important;
  transition: margin 0.3s ease !important;
  width: calc(100% - 250px) !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.main-content.expanded {
  margin-left: 60px !important;
  width: calc(100% - 60px) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sidebar-nav-container {
    width: 60px;
  }
  
  .sidebar-nav-container .sidebar-nav a {
    padding: 0.8rem;
    justify-content: center;
  }
  
  .sidebar-nav-container .sidebar-nav a .nav-text {
    opacity: 0;
    width: 0;
    margin: 0;
  }
  
  .main-content {
    margin-left: 60px !important;
    width: calc(100% - 60px) !important;
  }
  
  .sidebar-nav-container.expanded {
    width: 250px;
  }
  
  .sidebar-nav-container.expanded .sidebar-nav a {
    padding: 0.8rem 1.5rem;
    justify-content: flex-start;
  }
  
  .sidebar-nav-container.expanded .sidebar-nav a .nav-text {
    opacity: 1;
    width: auto;
    margin-left: 15px;
  }
  
  .main-content.collapsed {
    margin-left: 250px !important;
    width: calc(100% - 250px) !important;
  }
}

@media (max-width: 767px) {
  .sidebar-nav-container {
    transform: translateX(-100%);
    width: 250px;
  }
  
  .sidebar-nav-container.expanded {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    right: -45px;
    background: rgba(255, 0, 51, 0.8);
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  .sidebar-nav-container .sidebar-nav a .nav-text {
    opacity: 1;
    width: auto;
    margin-left: 15px;
  }
  
  .sidebar-nav-container .sidebar-nav a {
    padding: 0.8rem 1.5rem;
    justify-content: flex-start;
  }
  
  .container {
    padding: 10px;
  }
}

/* Mobile hamburger menu */
.mobile-nav-toggle {
  display: none !important;
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  z-index: 1002 !important;
  background: #ff0033 !important;
  color: white !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 5px !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

@media (max-width: 767px) {
  .mobile-nav-toggle {
    display: flex !important;
  }
  
  .sidebar-toggle {
    display: none !important;
  }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
} 