:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #9b59b6;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --sidebar-width: 260px;
    --header-height: 60px;
    --card-bg: white;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.87);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Layout Principal */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    position: fixed;
    height: 100%;
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--secondary-color);
}

.sidebar-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 0.7rem;
    padding: 0;
    border-left: 3px solid transparent;
    transition: all var(--transition-speed);
}

.sidebar-menu li:last-child {
    margin-bottom: 0;
}

.sidebar-menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
}

.sidebar-menu li.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--accent-color);
}

.sidebar-menu a {
    display: block;
    padding: 10px 20px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar-menu a:hover {
    transform: translateX(3px);
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--secondary-color);
}

/* Conteúdo Principal */
.content {
    flex: 1;
    padding: 20px;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed);
}

header {
    height: var(--header-height);
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

#sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    margin-right: 15px;
    display: none;
    transition: all 0.2s ease;
}

#sidebar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.content-body {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1rem;
    color: #444;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card p {
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-link {
    padding: 8px 15px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.card-link:hover {
    background-color: #8e44ad;
    text-decoration: none;
}

/* Elementos de Texto */
blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 20px 0;
    background-color: rgba(155, 89, 182, 0.1);
    font-style: italic;
}

blockquote footer {
    margin-top: 10px;
    text-align: right;
    font-style: normal;
    font-weight: bold;
}

.intro-text {
    margin-top: 30px;
    line-height: 1.8;
}

/* Estilos para Seções de Conteúdo */
.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.content-section h3 {
    margin-top: 1.8rem;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    color: #333;
}

.content-section h3 + p,
.content-section h3 + ul,
.content-section h3 + ol,
.content-section h3 + div {
    margin-left: 1rem;
}

.content-section p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* Estilos para Listas */
ul, ol {
    padding-left: 1.8rem;
    margin: 1rem 0;
}

ul li, ol li {
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

ul li:last-child, ol li:last-child {
    margin-bottom: 0;
}

ul ul, ol ol, ul ol, ol ul {
    margin: 0.7rem 0 0.7rem 1rem;
}

/* Estilos para elementos específicos */
.symbol {
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 2px 5px;
    border-radius: 4px;
    margin: 0 2px;
    display: inline-block;
    color: var(--accent-color);
}

strong {
    color: rgba(0, 0, 0, 0.9);
}

/* Estilos para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95em;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.synthesis-table th {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Estado da barra lateral quando fechada */
.sidebar-closed .sidebar {
    transform: translateX(-100%);
}

.sidebar-closed .content {
    margin-left: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .content {
        margin-left: 0;
        padding: 15px;
    }
    
    #sidebar-toggle {
        display: block;
    }
    
    .sidebar-visible {
        transform: translateX(0);
    }
    
    .content-with-sidebar {
        margin-left: 0;
    }
    
    .content-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
    }
    
    .content-section h3 + p,
    .content-section h3 + ul,
    .content-section h3 + ol,
    .content-section h3 + div {
        margin-left: 0.5rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .practical-use, .example-expression {
        padding: 0.8rem 1rem;
    }
    
    .sidebar-menu a {
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .content header h1 {
        font-size: 1.3rem;
        margin-left: 10px;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .content-section h3 {
        font-size: 1.1rem;
    }
}

/* Estilos específicos para a página de diagramas */
.diagram {
    margin: 30px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Estilos específicos para páginas de conteúdo */
.notes {
    background-color: rgba(155, 89, 182, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
}

/* Estilos para blocos de práticas */
.practical-use {
    background-color: rgba(129, 199, 132, 0.1);
    border-left: 4px solid rgba(129, 199, 132, 0.5);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.practical-use::before {
    content: "Prática";
    font-size: 0.8em;
    font-weight: bold;
    color: rgba(0, 100, 0, 0.7);
    display: block;
    margin-bottom: 0.5rem;
}

/* Estilos para exemplos */
.example-expression {
    background-color: rgba(144, 202, 249, 0.1);
    border-left: 4px solid rgba(144, 202, 249, 0.5);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.example-expression::before {
    content: "Exemplo";
    font-size: 0.8em;
    font-weight: bold;
    color: rgba(0, 60, 120, 0.7);
    display: block;
    margin-bottom: 0.5rem;
}

/* Estilos para códigos e símbolos */
code {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.code-block {
    background-color: #2c3e50;
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    overflow-x: auto;
    line-height: 1.4;
}

pre {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    overflow-x: auto;
} 