/* SECGOIANA SIDEBAR MENU */
.secgoiana-menu-card {
  width: 280px;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  border-radius: 0 15px 15px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  transform: translateX(0);
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 3px solid #ffd700;
  margin: 0;
}

.menu-header {
  padding: 20px;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0 15px 0 0;
  text-align: center;
  background: #fafafa;
}

.menu-header a {
  display: block;
  text-decoration: none;
}

.menu-logo {
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.menu-header a:hover .menu-logo {
  transform: scale(1.05);
}

.menu-links {
  list-style: none;
  padding: 15px 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.menu-links li {
  margin: 5px 10px;
}

.menu-links li a {
  display: block;
  padding: 12px 20px;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 6px;
}

.menu-links li a:hover {
  background: #f0f0f0;
  color: #c41e3a;
  transform: translateX(8px);
  box-shadow: inset 2px 0 0 #c41e3a;
}

.menu-links li a.active {
  background: #f5f5f5;
  color: #c41e3a;
  border-left: 4px solid #c41e3a;
  padding-left: 16px;
}

.menu-links li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: #c41e3a;
  border-radius: 0 4px 4px 0;
  transition: all 0.3s ease;
}

.menu-links li a:hover::before {
  height: 60%;
}

.menu-links li a.active::before {
  height: 100%;
}

/* Scrollbar styling */
.menu-links::-webkit-scrollbar {
  width: 6px;
}

.menu-links::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.menu-links::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.menu-links::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

.menu-toggle {
  position: absolute;
  right: -35px;
  top: 15px;
  background: #ffffff;
  border: 3px solid #ffd700;
  width: 35px;
  height: 35px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  transition: all 0.3s;
  margin: 0;
  padding: 0;
}

.menu-toggle:hover {
  background: #f5f5f5;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s;
  fill: #ffd700;
  stroke: #ffd700;
}

.menu-toggle:hover svg {
  fill: #ffd700;
  stroke: #ffd700;
}

.secgoiana-menu-card.collapsed {
  transform: translateX(-100%);
}

.secgoiana-menu-card.collapsed .menu-toggle {
  right: -35px;
}

.secgoiana-menu-card.collapsed .menu-toggle svg {
  transform: rotate(180deg);
}

/* Adjust content for sidebar */
body {
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
  .secgoiana-menu-card {
    width: 220px;
    border-radius: 0 12px 12px 0;
  }

  .menu-header {
    padding: 15px;
    border-radius: 0 12px 0 0;
  }

  .menu-logo {
    max-width: 90%;
  }

  .menu-links {
    padding: 12px 0;
  }

  .menu-links li {
    margin: 3px 8px;
  }

  .menu-links li a {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 5px;
  }

  .menu-links li a:hover {
    transform: translateX(6px);
  }

  .menu-toggle {
    right: -28px;
    width: 28px;
    height: 28px;
    border-radius: 0 6px 6px 0;
  }

  .menu-toggle svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .secgoiana-menu-card {
    width: 180px;
    border-radius: 0 10px 10px 0;
  }

  .menu-header {
    padding: 12px;
  }

  .menu-links li a {
    padding: 8px 12px;
    font-size: 12px;
  }

  .menu-toggle {
    right: -24px;
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  .menu-toggle svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================ */
/* HEADER INTRO STYLES (usado em todas as páginas) */
/* ============================================ */

.header-intro {
    text-align: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #eeeeee 100%);
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.15),
        0 20px 50px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 0 20px rgba(196,30,58,0.1);
    border-bottom: 3px solid #c41e3a;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(196,30,58,0.05) 50%, transparent 70%);
    pointer-events: none;
}

.header-intro h1 {
    font-size: 2rem;
    color: #c41e3a;
    margin: 0;
    font-weight: bold;
    position: relative;
    z-index: 2;
    text-shadow: 
        3px 3px 0px rgba(0,0,0,0.1),
        6px 6px 12px rgba(0,0,0,0.15),
        0 0 20px rgba(196,30,58,0.2);
    letter-spacing: 0.5px;
}

.header-logo {
    width: 90px;
    height: 90px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)) drop-shadow(0 8px 16px rgba(196,30,58,0.1));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.header-logo:hover {
    transform: scale(1.08);
}

.navbar-brand-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Media Queries para Header */
@media (max-width: 768px) {
    .header-intro {
        padding: 1rem 1.5rem;
    }

    .header-content {
        gap: 1rem;
    }

    .header-intro h1 {
        font-size: 1.5rem;
    }

    .header-logo {
        width: 70px;
        height: 70px;
    }
}
