/*
  ========================================
  RESET BÁSICO
  ========================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/*
  ========================================
  SIDEBAR E LAYOUT PRINCIPAL
  ========================================
*/
.sidebar {
    width: 280px;
    height: 100vh;
    background-color: #1C1C1C;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease, transform 0.3s ease;
}

.content {
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/*
  ========================================
  ESTILOS DO CABEÇALHO E LOGO
  ========================================
*/
.logo {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/*
  ========================================
  ESTILOS DO MENU E ITENS
  ========================================
*/
.menu {
    padding: 20px 0;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.menu-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.menu-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-right: 4px solid #fff;
}

.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    fill: currentColor;
    color: white;
}

.menu-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.menu-link.has-submenu .arrow.rotated {
    transform: rotate(180deg);
}

/*
  ========================================
  ESTILOS DOS SUBMENUS
  ========================================
*/
.submenu {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(0,0,0,0.1);
    transition: max-height 0.3s ease;
}

.submenu.active {
    max-height: 200px;
}

.submenu-item {
    padding: 12px 20px 12px 55px;
    color: white;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu-item:hover {
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-left-color: rgba(255,255,255,0.5);
}

.submenu-item.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left-color: white;
}

/*
  ========================================
  CONTEÚDO PRINCIPAL
  ========================================
*/
.content h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.content p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/*
  ========================================
  MEDIA QUERIES - RESPONSIVIDADE
  ========================================
*/
/* Tablets (Telas de até 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    .content {
        margin-left: 220px;
    }
    .logo h2 {
        font-size: 20px;
    }
    .menu-text {
        font-size: 15px;
    }
}

/* Celulares (Telas de até 768px) */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
        position: fixed;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .content {
        margin-left: 0;
    }
}

/* Celulares Pequenos (Telas de até 480px) */
@media (max-width: 480px) {
    .sidebar {
        width: 200px;
    }
    .menu-link {
        padding: 12px 15px;
    }
    .menu-text {
        font-size: 14px;
    }
    .content {
        padding: 20px;
    }
}