/* Enterprise Sidebar Styling for Speedicalc */

/* Sidebar Container */
.enterprise-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #000033 0%, #001144 100%);
  color: white;
  padding: 0;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Collapsed State */
.enterprise-sidebar.collapsed {
  width: 70px;
  overflow: hidden;
}

.enterprise-sidebar.collapsed .menu-label,
.enterprise-sidebar.collapsed .sidebar-brand,
.enterprise-sidebar.collapsed .section-title,
.enterprise-sidebar.collapsed .subsection-title,
.enterprise-sidebar.collapsed .collapse-arrow,
.enterprise-sidebar.collapsed .menu-badge {
  display: none;
}

.enterprise-sidebar.collapsed .submenu {
  display: none;
}

/* Header Section */
.sidebar-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

/* Menu Toggle Button */
.menu-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  padding: 12px;
  margin: 15px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: calc(100% - 30px);
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Section Headers */
.section-header {
  padding: 15px 20px 8px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.section-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collapse-arrow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
}

.section-header.collapsed .collapse-arrow {
  transform: rotate(-90deg);
}

/* Menu Sections */
.menu-section {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

/* Menu Items */
.sidebar-item {
  list-style: none;
  margin: 0;
  position: relative;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-left-color: #00cfff;
  transform: translateX(2px);
}

.sidebar-link.active {
  background: rgba(0, 207, 255, 0.15);
  color: #00cfff;
  border-left-color: #00cfff;
  font-weight: 500;
}

/* Menu Icons */
.menu-icon {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.sidebar-link:hover .menu-icon {
  opacity: 1;
}

/* Menu Labels */
.menu-label {
  font-size: 14px;
  font-weight: 400;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Menu Badges */
.menu-badge {
  background: #ff4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  margin-left: auto;
  animation: pulse 2s infinite;
}

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

/* Subsections */
.subsection {
  list-style: none;
  margin: 8px 0;
}

.subsection-title {
  display: block;
  padding: 8px 20px 4px 40px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 20px;
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.1);
}

.submenu .sidebar-link {
  padding-left: 50px;
  font-size: 13px;
  border-left-width: 2px;
}

.submenu .menu-icon {
  width: 14px;
  height: 14px;
  margin-right: 10px;
}

/* Scrollbar Styling */
.enterprise-sidebar::-webkit-scrollbar {
  width: 6px;
}

.enterprise-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.enterprise-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.enterprise-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main Content Adjustments */
#main-content {
  transition: margin-left 0.3s ease;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0018ff 0%, #181e57 100%);
}

#main-content.expanded {
  margin-left: 280px;
}

#main-content.collapsed-right {
  margin-left: 70px;
}

/* Content Area Styling */
.content-area {
  padding: 30px;
  color: white;
}

.page-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.page-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 5px 0 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .enterprise-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    box-shadow: none;
  }
  
  .enterprise-sidebar.collapsed {
    width: 100%;
    height: 60px;
  }
  
  #main-content.expanded,
  #main-content.collapsed-right {
    margin-left: 0;
  }
}

/* Status Indicators */
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.status-green { background: #28a745; }
.status-yellow { background: #ffc107; }
.status-red { background: #dc3545; }
.status-blue { background: #007bff; }