/* ===== BRUNO RESTAURANT SIDEBAR NAVIGATION ===== */

/* Reset body padding since we're removing top navbar */
body {
  padding-top: 0 !important;
  padding-left: 80px; /* Space for sidebar */
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: padding-left 0.3s ease;
}

/* Sidebar Navigation */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 100vh;
  background: linear-gradient(180deg, #2c1810 0%, #3d2317 50%, #2c1810 100%);
  backdrop-filter: blur(20px);
  border-right: 2px solid rgba(169, 77, 77, 0.2);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.sidebar-nav:hover {
  width: 250px;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.25);
}

/* Sidebar Logo */
.sidebar-logo {
  width: 45px;
  height: 45px;
  margin-bottom: 30px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(169, 77, 77, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-nav:hover .sidebar-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 40px;
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(169, 77, 77, 0.4);
}

/* Navigation Links Container */
.sidebar-nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
  justify-content: center;
  width: 100%;
  padding: 0 10px;
}

/* Navigation Link Item */
.sidebar-nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
  border-radius: 15px;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  color: #d4b5a7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  overflow: hidden;
}

.sidebar-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(169, 77, 77, 0.2), transparent);
  transition: left 0.6s ease;
}

.sidebar-nav-item:hover::before {
  left: 100%;
}

.sidebar-nav-item:hover {
  background: rgba(169, 77, 77, 0.15);
  border-color: rgba(169, 77, 77, 0.3);
  transform: translateX(5px);
  color: #fff;
  text-decoration: none;
}

.sidebar-nav-item.active {
  background: linear-gradient(135deg, #a94d4d, #c96b6b);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(169, 77, 77, 0.4);
}

.sidebar-nav-item.active:hover {
  background: linear-gradient(135deg, #c96b6b, #a94d4d);
  transform: translateX(8px);
}

/* Icon Styling */
.sidebar-nav-icon {
  font-size: 1.4rem;
  min-width: 24px;
  text-align: center;
  transition: all 0.3s ease;
  margin-right: 15px;
}

.sidebar-nav-item:hover .sidebar-nav-icon {
  transform: scale(1.1);
  color: #fff;
}

.sidebar-nav-item.active .sidebar-nav-icon {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Text Label */
.sidebar-nav-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 10px;
}

.sidebar-nav:hover .sidebar-nav-text {
  opacity: 1;
  transform: translateX(0);
}

/* Cart Badge */
.sidebar-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fff;
  color: #a94d4d;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.sidebar-cart-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* Social Media Section */
.sidebar-social {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(169, 77, 77, 0.2);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sidebar-social-link {
  width: 40px;
  height: 40px;
  background: rgba(169, 77, 77, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4b5a7;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #a94d4d, #c96b6b);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50%;
}

.sidebar-social-link:hover::before {
  opacity: 1;
}

.sidebar-social-link:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(169, 77, 77, 0.4);
  text-decoration: none;
}

.sidebar-social-link i {
  position: relative;
  z-index: 2;
}

/* Logo Center Header */
.logo-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  padding: 40px 0;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(169, 77, 77, 0.1);
}

.logo-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,15 Q25,5 50,15 T100,15 L100,20 L0,20 Z" fill="%23a94d4d" fill-opacity="0.03"/></svg>') repeat-x bottom;
  background-size: 200px 20px;
  opacity: 0.6;
  pointer-events: none;
}

.main-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50%;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(169, 77, 77, 0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.main-logo:hover {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 12px 40px rgba(169, 77, 77, 0.3);
}

.main-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* WhatsApp Float Button - Repositioned */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1001;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.4s ease;
  animation: whatsappPulse 4s infinite;
}

.whatsapp-btn:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  text-decoration: none;
}

@keyframes whatsappPulse {
  0%, 100% { 
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7); 
  }
  50% { 
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 10px rgba(37, 211, 102, 0); 
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-left: 0;
  }
  
  .sidebar-nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar-nav.open {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #a94d4d, #c96b6b);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(169, 77, 77, 0.3);
    transition: all 0.3s ease;
  }
  
  .sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(169, 77, 77, 0.4);
  }
  
  .logo-header {
    padding: 30px 0;
  }
  
  .main-logo {
    width: 80px;
    height: 80px;
    padding: 15px;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .logo-header {
    padding: 25px 0;
  }
  
  .main-logo {
    width: 70px;
    height: 70px;
    padding: 12px;
  }
  
  .sidebar-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Smooth transitions for all elements */
* {
  transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f8f9fa, #e9ecef);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #a94d4d, #c96b6b);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #c96b6b, #a94d4d);
  box-shadow: 0 3px 8px rgba(169, 77, 77, 0.3);
} 