/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container principal - MODIFICADO */
.container {
    display: flex;
    flex-direction: column; /* Mudado para coluna */
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles - MODIFICADO */
.header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* Garantir largura total */
    grid-column: 1 / -1; /* Se estiver usando grid */
}

/* Conteúdo principal - MODIFICADO */
.content-wrapper {
    display: flex;
    width: 100%;
    gap: 30px;
}

/* Main Content */
.main-content {
    flex: 1;
}


/* Sidebar */
.sidebar {
    width: 280px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
}

.lab-badge h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.lab-badge h2 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
}

.lab-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.lab-links a {
    color: white;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lab-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


.section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4a6491;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title i {
    color: #4a6491;
}

.section-content {
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content a {
    color: #4a6491;
    text-decoration: none;
    font-weight: 500;
}

.section-content a:hover {
    text-decoration: underline;
}

/* Usage Steps */
.usage-step {
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 3px solid #e0e0e0;
}

.usage-step h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.usage-step ul {
    padding-left: 20px;
    margin-top: 10px;
}

.usage-step li {
    margin-bottom: 8px;
}

/* Output Items */
.output-item {
    margin-bottom: 30px;
}

.output-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Image Placeholder */
.image-placeholder {
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    color: #777;
    cursor: pointer;
    transition: all 0.3s;
}

.image-placeholder:hover {
    background-color: #eef5ff;
    border-color: #4a6491;
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #aaa;
}

/* Color Scheme */
.color-scheme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.color-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-box {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-right: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.color-info {
    display: flex;
    flex-direction: column;
}

.amino-acid {
    font-weight: 600;
    margin-bottom: 5px;
}

.color-code {
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
}

/* Performance Table */
.performance-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.performance-table th {
    background-color: #4a6491;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.performance-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.performance-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.performance-table tr:hover {
    background-color: #f0f5ff;
}

.table-footer-note {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 15px;
    background-color: #f5f5f5;
}

/* Contact Info */
.contact-info {
    background-color: #f0f5ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.contact-email:hover {
    background-color: #3a5471;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 30px;
}

.sidebar-header {
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-nav a:hover {
    background-color: #f0f5ff;
    color: #4a6491;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    color: #777;
}

.version {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #aaa;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4a6491;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #3a5471;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .main-content {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px;
    }
    
    .lab-badge h1 {
        font-size: 1.5rem;
    }
    
    .lab-badge h2 {
        font-size: 1.1rem;
    }
    
    .lab-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .section {
        padding: 20px;
    }
    
    .color-scheme-grid {
        grid-template-columns: 1fr;
    }
}

/* Imagens */
/* Tamanho médio */
.image-medium {
    max-width: 800px;
    max-height: 500px;
}

/* Tamanho grande */
.image-large {
    max-width: 1000px;
    max-height: 700px;
}

/* Tamanho pequeno */
.image-small {
    max-width: 400px;
    max-height: 300px;
}