/* Estilos centralizados para todas as aulas BEP */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #4B8BBE 0%, #85929d 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.header p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

/* Navigation */
.nav {
    background: #2D3748;
    padding: 15px 0;
    text-align: center;
}

.nav button {
    background: transparent;
    color: white;
    border: 2px solid #4A5568;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav button:hover {
    background: #4B8BBE;
    border-color: #4B8BBE;
    transform: translateY(-2px);
}

.nav button.active {
    background: #4B8BBE;
    border-color: #4B8BBE;
}

/* Content */
.content {
    padding: 40px;
}

.slide {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide h2 {
    color: #1A365D;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #4299E1;
    padding-bottom: 10px;
}

.slide h3 {
    color: #2D3748;
    font-size: 1.5rem;
    margin: 20px 0 15px 0;
}

.slide h4 {
    color: #4A5568;
    font-size: 1.2rem;
    margin: 15px 0 10px 0;
}

/* Code blocks */
.code-block {
    background: #1A202C;
    color: #E2E8F0;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.2;
    overflow-x: auto;
    border-left: 4px solid #4B8BBE;
    tab-size: 4;
    -moz-tab-size: 4;
    -o-tab-size: 4;
}

.code-line {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: block;
}

.code-inline {
    background: #EDF2F7;
    color: #2D3748;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Lists */
.slide ul, .slide ol {
    margin: 15px 0;
    padding-left: 30px;
}

.slide li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Tables */
.slide table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slide th {
    background: #4B8BBE;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.slide td {
    padding: 12px 15px;
    border-bottom: 1px solid #E2E8F0;
}

.slide tr:hover {
    background: #F7FAFC;
}

/* Highlight boxes */
.highlight {
    background: linear-gradient(135deg, #E6FFFA 0%, #B2F5EA 100%);
    border: 2px solid #38B2AC;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.highlight h4 {
    color: #234E52;
    margin-top: 0;
}

.warning {
    background: linear-gradient(135deg, #FEF5E7 0%, #FED7AA 100%);
    border: 2px solid #ED8936;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning h4 {
    color: #C05621;
    margin-top: 0;
}

.info {
    background: linear-gradient(135deg, #EBF8FF 0%, #BEE3F8 100%);
    border: 2px solid #3182CE;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info h4 {
    color: #2C5282;
    margin-top: 0;
}

/* Examples */
.example {
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.example h5 {
    color: #2D3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Comparison tables */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-item {
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.comparison-item h4 {
    color: #2D3748;
    margin-bottom: 15px;
}

.comparison-item.tupla {
    border-color: #38B2AC;
}

.comparison-item.lista {
    border-color: #4299E1;
}

.comparison-item.dicionario {
    border-color: #9F7AEA;
}

/* Footer */
.footer {
    background: #1A365D;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Tamanho e centralização da imagem de rodapé (igual ao índice geral) */
.footer img {
    display: block;
    margin: 12px auto 0 auto;
    width: 80%;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .content {
        padding: 20px;
    }
    
    .slide h2 {
        font-size: 1.5rem;
    }
    
    .nav button {
        padding: 8px 15px;
        margin: 2px;
        font-size: 12px;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .code-block {
        font-size: 12px;
        padding: 15px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .nav {
        display: none;
    }
    
    .slide {
        display: block !important;
        page-break-after: always;
    }
    
    .slide:last-child {
        page-break-after: avoid;
    }
}

/* Animation for slide transitions */
.slide-transition {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F1F1;
}

::-webkit-scrollbar-thumb {
    background: #4B8BBE;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3182CE;
}

