:root {
      --bg1: #ecd3d5;
      --bg2: #f7e8e9;
      --bg3: #fff8f8
}
body{
     margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
     min-height:100vh;

     background: linear-gradient(120deg, var(--bg3), var(--bg3));
/*
     background: linear-gradient(120deg, var(--bg1), var(--bg2));
*/
     display:flex; align-items: center; justify-content: center;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  width: 600px;
}
/* Estilos específicos para a página inicial */
.page-index .page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 20px;
}

.welcome-container {
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
    margin-top: 120px;
    box-shadow: 0px 0px 9px 9px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 30px;
    background: #fff;
}

.welcome-image {
    width: 350px;
    height: auto;
    margin-bottom: 2rem;
}

.welcome-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
   margin-top: 2rem;
 /* gap: 20px;*/
  /*margin-top: 30px;*/
}

.welcome-button {
  display: inline-flex;
  align-items: center;
  padding: 15px 25px;
  background-color: #8c2f39;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-button:hover {
  background-color: #540b0e;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.welcome-button i {
  margin-right: 10px;
  font-size: 1.2em;
}

.logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .welcome-buttons {
    flex-direction: column;
    width: 100%;
  }

  .welcome-button {
    width: 100%;
    justify-content: center;
  }

  .welcome-content {
    padding: 20px;
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* Sidebar Vertical */
.sidebar {
    width: 80px;
    background: linear-gradient(180deg, #540b0e, #8c2f39);
    min-height: 100vh;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width 0.3s ease;
}

.sidebar:hover {
    width: 220px;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.logo-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.system-name {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar:hover .system-name {
    opacity: 1;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-right: 3px solid white;
}

.nav-icon {
    font-size: 1.3rem;
    min-width: 40px;
    text-align: center;
}

.nav-text {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar:hover .nav-text {
    opacity: 1;
}

.user-section {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    text-align: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    margin: 0 auto 0.5rem;
    font-size: 1.1rem;
}

.user-name {
    color: white;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar:hover .user-name {
    opacity: 1;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    width: 100%;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    margin-left: 80px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.sidebar:hover ~ .main-content {
    margin-left: 220px;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .main-content {
        margin-left: 60px;
    }

    .sidebar:hover {
        width: 60px;
    }

    .sidebar:hover .system-name,
    .sidebar:hover .nav-text,
    .sidebar:hover .user-name {
        opacity: 0;
    }
}
.logo-container {
display: flex;
align-items: center;
gap: 12px;
}

.logo-container img {
width: 60px;
height: 50px;
}
.user-info-clickable {
    text-align: center;
    margin-bottom: 1rem;
}

.user-avatar-tooltip {
    text-decoration: none;
    display: inline-block;
}

.user-avatar-tooltip:hover .user-avatar {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin: 0 auto 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

