/* ============================================
   ANIMATED SIDEBAR - VANIPRO STYLE
   ============================================ */

/* Asegurar que el sidebar esté sobre todo */
.sliding-sidebar,
.sliding-panel-icon,
.sidebar-overlay {
  z-index: 10050 !important;
}

/* Botón flotante del sidebar - Cuadrado con bordes redondeados y gradiente naranja */
.sliding-panel-icon {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #FF6600 0%, #DB3700 100%);
  color: white;
  border: none;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  z-index: 10050 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -3px 3px 20px rgba(219, 55, 0, 0.5);
}

.sliding-panel-icon:hover {
  width: 65px;
  padding-right: 12px;
  background: linear-gradient(135deg, #DB3700 0%, #FF6600 100%);
  box-shadow: -5px 5px 25px rgba(219, 55, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
}

/* Sidebar Container */
.sliding-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: -450px !important;
  width: 420px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  background: #ffffff !important;
  box-shadow: -10px 0 50px rgba(0,0,0,0.3) !important;
  z-index: 10050 !important;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.sliding-sidebar.animated-panel-is-visible {
  right: 0 !important;
}

/* Sidebar Content */
.sliding-sidebar-content {
  padding: 30px;
  position: relative;
}

/* Close Button */
.close-animated-sidebar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-animated-sidebar:hover {
  background: #FF6600;
  border-color: #FF6600;
  color: white;
  transform: rotate(90deg);
}

/* Sidebar Header */
.sidebar-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.sidebar-header h3 {
  font-size: 1.8rem;
  color: #1e2127;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header h3 i {
  color: #FF6600;
}

.sidebar-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 5px 0 0 0;
}

/* Microsoft 365 Resources Section */
.sidebar-microsoft {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-microsoft h4 {
  font-size: 1.1rem;
  color: #232733;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-microsoft h4 i {
  color: #00A4EF;
  font-size: 1.3rem;
}

.microsoft-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.microsoft-menu li {
  margin-bottom: 12px;
}

.microsoft-menu li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #2a2a2a;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.microsoft-menu li a:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #00A4EF;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(0, 164, 239, 0.2);
}

.ms-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.ms-teams {
  background: linear-gradient(135deg, #6264A7 0%, #464775 100%);
}

.ms-office {
  background: linear-gradient(135deg, #D83B01 0%, #B52E00 100%);
}

.ms-onedrive {
  background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
}

.ms-outlook {
  background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
}

.ms-learn {
  background: linear-gradient(135deg, #00A4EF 0%, #0078D4 100%);
}

.ms-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ms-info span {
  font-weight: 600;
  font-size: 1rem;
  color: #232733;
}

.ms-info small {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}

/* Sidebar Announcements Section */
.sidebar-announcements {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-announcements h4 {
  font-size: 1.1rem;
  color: #232733;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-announcements h4 i {
  color: #FF6600;
}

.announcement-item {
  padding: 15px;
  background: #f2f4ff;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 3px solid #DB3700;
}

.announcement-date {
  display: block;
  font-size: 0.85rem;
  color: #DB3700;
  font-weight: 600;
  margin-bottom: 5px;
}

.announcement-text {
  margin: 0;
  font-size: 0.95rem;
  color: #2a2a2a;
  line-height: 1.5;
}

/* Sidebar Student Links Section */
.sidebar-student-links {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-student-links h4 {
  font-size: 1.1rem;
  color: #232733;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-student-links h4 i {
  color: #DB3700;
}

.student-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.student-menu li {
  margin-bottom: 10px;
}

.student-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #f2f4ff;
  border-radius: 8px;
  color: #2a2a2a;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.student-menu li a:hover {
  background: linear-gradient(135deg, rgba(219, 55, 0, 0.1) 0%, rgba(114, 0, 38, 0.1) 100%);
  border-color: #DB3700;
  transform: translateX(5px);
}

.student-menu li a i {
  font-size: 1.2rem;
  color: #DB3700;
  width: 24px;
}

.student-menu li a span {
  font-weight: 500;
}

/* Social Icons Section */
.sidebar-social {
  margin-bottom: 20px;
}

.sidebar-social h4 {
  font-size: 1.1rem;
  color: #232733;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-social h4 i {
  color: #DB3700;
}

.social-description {
  font-size: 0.9rem;
  color: #666;
  margin: 5px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e0e0e0;
}

.sidebar-social ul.icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sidebar-social ul.icons li {
  display: inline-block;
}

.sidebar-social ul.icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  color: #333;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-decoration: none;
}

.sidebar-social ul.icons li a:hover {
  border-color: #FF6600;
  border-radius: 10px;
  color: #fff !important;
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

/* Overlay */
.sidebar-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.7) !important;
  z-index: 10040 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Responsive */
@media (max-width: 768px) {
  .sliding-sidebar {
    width: 90% !important;
    right: -90% !important;
  }
  
  .sliding-sidebar.animated-panel-is-visible {
    right: 0 !important;
  }
  
  .sliding-panel-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }
  
  .sliding-panel-icon:hover {
    width: 60px !important;
  }
  
  .microsoft-menu li a {
    padding: 12px;
  }
  
  .ms-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
