/* === ESTILOS GERAIS === */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: white; /* Cor do texto padrão para o site (fora da caixa de conteúdo) */
    background-image: linear-gradient(to right, #0000CD, #FF1493);
    background-attachment: fixed;
    overflow-x: hidden; /* Rede de segurança para evitar rolagem horizontal */
}

/* === ESTILOS DA PÁGINA INICIAL === */
.home-page .content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Ocupa a altura total da tela */
    margin-left: 250px;
    padding: 0 30px;
}

.home-page .welcome-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.3;
    animation: glow-in 1.5s ease-in-out forwards;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, /* Brilho forte no topo */ rgba(255, 255, 255, 0.6) 50%, /* Meio-tom */ rgba(255, 255, 255, 0.4) 100% /* Menos brilho na base */);
    -webkit-background-clip: text;
    background-clip: text;
    color: #fff;
    text-shadow: -1px 1px 0px #fff;
}

@keyframes glow-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === BARRA LATERAL (SIDEBAR) === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    transition: left 0.3s, background-color 0.3s;
    z-index: 1000; /* Garante que a sidebar fique acima do conteúdo */
}

.sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.1em;
    color: white;
    display: block;
    transition: all 0.3s;
    border-left: 6px solid transparent;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left: 6px solid #FF1493;
}

/* === CONTEÚDO PRINCIPAL (PARA PÁGINAS QUE NÃO SÃO A HOME) === */
.content {
    margin-left: 250px;
    padding: 30px;
    transition: margin-left 0.3s;
}

.content h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* === CAIXA DE CONTEÚDO ESPECÍFICA (AGORA COM FUNDO BRANCO) === */
.use-case-content, .class-diagram-content, .requirements-content, .teen-content {
    background: #ffffff;
    color: #000000;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Estilos para os diagramas SVG */
.use-case-content svg, .class-diagram-content svg, .requirements-content svg, .teen-content svg {
    width: 100%;
    height: auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

/* Títulos DENTRO da caixa branca */
.use-case-content h3, .class-diagram-content h3, .requirements-content h3, .teen-content h3 {
    font-weight: 500;
    font-size: 1.75rem;
    color: #1976d2;
    text-shadow: none;
}

.use-case-content h4, .use-case-content h5, .class-diagram-content h4, .class-diagram-content h5, .requirements-content h4, .requirements-content h5, .teen-content h4, .teen-content h5 {
    font-weight: 500;
    font-size: 1.125rem;
    color: #1976d2;
    text-shadow: none;
}

/* === ESTILO PARA TEXTO EM NEGRITO (STRONG/B) === */
.use-case-content strong, .use-case-content b, .class-diagram-content strong, .class-diagram-content b, .requirements-content strong, .requirements-content b, .teen-content strong, .teen-content b {
    font-weight: 500;
    color: #1976d2;
}

/* === BLOCO DE CÓDIGO === */
.code-block-container {
    background-color: #2d2d2d;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.code-block-header {
    background-color: #212121;
    padding: 8px 15px;
    font-family: 'Courier New', Courier, monospace;
    color: #00e676;
    font-weight: bold;
}

.code-block-container pre {
    margin: 0;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

.code-block-container code .comment {
    color: #757575;
}

.code-block-container code .keyword {
    color: #fc74fd;
}

.code-block-container code .string {
    color: #a5d6a7;
}

.code-block-container code .function {
    color: #82aaff;
}

/* === LINHA HORIZONTAL (HR) === */
hr {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 30px 0;
}

/* === MENU RESPONSIVO === */
.menu-icon {
    display: none;
    position: fixed;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
    color: white;
}

/* === ESTILO PARA ESTEREÓTIPOS (PARA FUNDO CLARO) === */
.stereotype {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #d21919;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    font-weight: bold;
    -webkit-text-stroke: 0.4px #d21919;
    text-shadow: 0px 0px 1px transparent;
}

/* === BLOCO DE DICA/INFORMAÇÃO === */
.info-block {
    background-color: #e3f2fd;
    border-left: 5px solid #1976d2;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
}

.info-block .material-icons {
    color: #1976d2;
    margin-right: 15px;
    font-size: 28px;
}

.info-block p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* === CLASSES DE UTILIDADE === */
.diagram-container {
    text-align: center;
    margin: 20px 0;
}

.color-green {
    color: #27ae60;
}

.color-red {
    color: #e74c3c;
}

/* Estilos para as notas específicas */
.note-tip {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    margin: 16px 0;
    padding: 14px;
    border-radius: 0 4px 4px 0;
}

.note-warning {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    margin: 16px 0;
    padding: 14px;
    border-radius: 0 4px 4px 0;
}

.note-info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
    margin: 16px 0;
    padding: 14px;
    border-radius: 0 4px 4px 0;
}

.note-error {
    background-color: #ffcdd2;
    border-left: 4px solid #f44336;
    margin: 16px 0;
    padding: 14px;
    border-radius: 0 4px 4px 0;
}

.detail-text {
    margin-top: 0;
    color: #616161;
}

/* === REGRAS DE RESPONSIVidade PARA SMARTPHONES === */
@media (max-width: 768px) {
    .sidebar {
        left: -250px;
    }
    
    .sidebar.active {
        left: 0;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .sidebar.active a {
        color: #1976d2;
        font-weight: 500;
    }

    .content,
    .home-page .content {
        margin-left: 0;
        padding: 20px;
    }
    .content h1 {
        font-size: 1.6rem;
    }
    .home-page .welcome-title {
        font-size: 2.8rem;
    }

    .use-case-content, .class-diagram-content, .requirements-content, .teen-content {
        width: auto;
        margin-left: 0;
        margin-right: 0;
        padding: 15px;
    }
    .use-case-content h3, .class-diagram-content h3, .requirements-content h3, .teen-content h3 {
        font-size: 1.4rem;
    }
    .use-case-content h4, .class-diagram-content h4, .requirements-content h4, .teen-content h4 {
        font-size: 1.1rem;
    }

    .use-case-content ol,
    .use-case-content ul, .class-diagram-content ol, .class-diagram-content ul, .requirements-content ol, .class-diagram-content ul, .teen-content ol, .teen-content ul {
        padding-inline-start: 25px;
    }

    .menu-icon {
        display: block;
    }

}


/* === ESTILOS DO PORTAL LÚDICO === */
.portal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    overflow: hidden;
}

.portal-content {
    text-align: center;
    padding-top: 50px;
}

.portal-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.portal-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #6c5ce7;
    border-radius: 15px;
    width: 220px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4);
    background-color: #fff;
}

.portal-card h3 {
    font-family: 'Press Start 2P', cursive;
    color: #6c5ce7;
    font-size: 16px;
    margin-top: 0;
}

.portal-card p {
    font-size: 14px;
}

h1.portal-title {
    font-family: 'Press Start 2P', cursive;
    color: #d63031;
    font-size: 28px;
}

/* === ESTILOS PARA O DIAGRAMA DE CLASSES (TEEN) === */
.class-rect { 
    fill: #fff; 
    stroke: #666; 
    stroke-width: 1.5; 
}
.class-name { 
    font-weight: bold; 
    text-anchor: middle; 
}
.stereotype { 
    font-size: 12px; 
    fill: #666; 
    text-anchor: middle; 
}
.line { 
    stroke: #666; 
    stroke-width: 1.5; 
}
.arrow-head { 
    fill: #666; 
}
.hollow-arrow-head { 
    fill: #fff; 
    stroke: #666; 
    stroke-width: 1.5; 
}
.diamond { 
    fill: #666; 
}
.hollow-diamond { 
    fill: #fff; 
    stroke: #666; 
    stroke-width: 1.5; 
}
.multiplicity { 
    font-size: 12px; 
    fill: #333; 
}