﻿/* Estilos específicos para el módulo de Conceptos Intermedios en Java */

/* Estilos base del artículo */
.tutorial-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #9b59b6;
    position: relative;
}

.article-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #9b59b6, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.module-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #9b59b6, #3498db);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 12px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-number {
    font-size: 1.8rem;
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    opacity: 0.95;
}

.module-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #ecf0f1;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #9b59b6;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, #9b59b615, #3498db15);
    border-color: #9b59b6;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(155, 89, 182, 0.2);
}

.nav-link.next:hover {
    transform: translateX(5px) translateY(-3px);
}

.nav-link.prev:hover {
    transform: translateX(-5px) translateY(-3px);
}

/* Contenido principal */
.content-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #ecf0f1;
}

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

.content-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #9b59b6, #3498db) 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-section h2 i {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9b59b6, #3498db);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3);
}

/* Introducción */
.conceptos-introduction {
    background: linear-gradient(135deg, #9b59b615, #3498db15);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid #9b59b6;
}

.conceptos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.concepto-item {
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    border-top: 4px solid;
}

.concepto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.concepto-item.packages {
    border-color: #9b59b6;
}

.concepto-item.exceptions {
    border-color: #e74c3c;
}

.concepto-item.collections {
    border-color: #3498db;
}

.concepto-item.enums {
    border-color: #f39c12;
}

.concepto-item.wrappers {
    border-color: #2ecc71;
}

.concepto-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.concepto-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.concepto-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Paquetes Explorer */
.packages-explorer {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #9b59b6;
    margin-top: 2rem;
}

.explorer-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.explorer-tabs {
    display: flex;
    gap: 0.5rem;
}

.explorer-tab {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explorer-tab.active {
    color: #9b59b6;
}

.package-structure {
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    min-height: 400px;
}

.package-tree {
    border-radius: 8px;
    padding: 1.5rem;
    overflow-y: auto;
    border: 1px solid #ecf0f1;
}

.tree-node {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tree-node.folder::before {
    content: '📁';
    position: absolute;
    left: 0;
}

.tree-node.file::before {
    content: '📄';
    position: absolute;
    left: 0;
}

.tree-node.active {
    color: #9b59b6;
    font-weight: bold;
}

.package-details {
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #ecf0f1;
}

.detail-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.detail-content .keyword {
    color: #569cd6;
}

.detail-content .comment {
    color: #6a9955;
}

.detail-content .string {
    color: #ce9178;
}

.detail-content .annotation {
    color: #cc99ff;
}

/* Exception Simulator */
.exception-simulator {
    background: linear-gradient(135deg, #e74c3c15, #c0392b15);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #e74c3c;
}

.exception-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.flow-step {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    border-left: 4px solid;
}

.flow-step.try {
    border-color: #3498db;
}

.flow-step.catch {
    border-color: #e74c3c;
}

.flow-step.finally {
    border-color: #f39c12;
}

.step-label {
    position: absolute;
    top: -10px;
    left: 10px;
    padding: 0 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.exception-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.exception-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exception-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.exception-btn.error {
    background: #e74c3c;
}

.exception-btn.success {
    background: #2ecc71;
}

.exception-btn.warning {
    background: #f39c12;
}

.exception-output {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 100px;
}

/* Collections Explorer */
.collections-explorer {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
    border: 2px solid #3498db;
}

.collection-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.collection-type {
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid;
}

.collection-type.list {
    border-color: #3498db;
}

.collection-type.set {
    border-color: #2ecc71;
}

.collection-type.map {
    border-color: #f39c12;
}

.collection-visualizer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.collection-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 6px;
    min-height: 80px;
    border: 2px dashed #bdc3c7;
}

.collection-item {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.collection-item.key {
    background: #2ecc71;
}

.collection-item.value {
    background: #f39c12;
}

.collection-item.pair {
    display: flex;
    align-items: center;
    background: #9b59b6;
}

.collection-item.pair .key {
    background: #8e44ad;
    border-radius: 4px 0 0 4px;
}

.collection-item.pair .value {
    background: #9b59b6;
    border-radius: 0 4px 4px 0;
}

.collection-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.collection-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.collection-btn:hover {
    background: #2980b9;
}

/* Enum Simulator */
.enum-simulator {
    background: linear-gradient(135deg, #f39c1215, #d6891015);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #f39c12;
}

.enum-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.enum-example {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.enum-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.enum-option {
    padding: 0.5rem 1rem;
    border: 2px solid #f39c12;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enum-option:hover {
    background: #f39c12;
    color: white;
}

.enum-option.selected {
    background: #f39c12;
    color: white;
    font-weight: bold;
}

.enum-info {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Wrapper Classes */
.wrapper-explorer {
    background: linear-gradient(135deg, #2ecc7115, #27ae6015);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #2ecc71;
}

.wrapper-table {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wrapper-table th {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 1rem;
    text-align: left;
}

.wrapper-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.wrapper-table tr:nth-child(even) {
}

.wrapper-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.wrapper-conversion {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.conversion-input {
    padding: 0.75rem;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    margin: 1rem 0;
    text-align: center;
}

.conversion-result {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
}

/* Memory Game */
.memory-game {
    background: linear-gradient(135deg, #9b59b615, #3498db15);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #9b59b6;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.game-card {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.game-card.flipped {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.game-card .front {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.game-card .back {
    display: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.game-card.flipped .front {
    display: none;
}

.game-card.flipped .back {
    display: block;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

.score-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.score-display span {
    color: #2ecc71;
}

/* Exercises Section */
.exercises-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.exercise-tabs {
    display: flex;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    overflow-x: auto;
}

.exercise-tab {
    flex: 1;
    min-width: 150px;
    padding: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.exercise-tab.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #3498db;
    font-weight: bold;
}

.exercise-content {
    padding: 0;
}

.exercise-panel {
    display: none;
    padding: 2.5rem;
}

.exercise-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.exercise-instructions {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.exercise-editor {
    background: #1e1e1e;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.exercise-code {
    width: 100%;
    min-height: 300px;
    background: none;
    border: none;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    padding: 1.5rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.editor-toolbar {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tool-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-btn.run {
    background: #27ae60;
}

.tool-btn.solution {
    background: #f39c12;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.exercise-output {
    background: #2c3e50;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 150px;
    margin-top: 1.5rem;
    overflow-y: auto;
}

/* Challenge Section */
.challenge-container {
    background: linear-gradient(135deg, #e74c3c15, #c0392b15);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #e74c3c;
}

.challenge-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #e74c3c;
    color: white;
}

.progress-step.completed {
    background: #2ecc71;
    color: white;
}

.challenge-question {
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.challenge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.challenge-option {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.challenge-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.challenge-option.selected {
    border-color: #3498db;
    background: #3498db10;
}

.challenge-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.challenge-btn {
    padding: 0.75rem 2rem;
    border: 2px solid #e74c3c;
    background: #e74c3c;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.challenge-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.challenge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.challenge-btn:disabled:hover {
    background: #e74c3c;
    transform: none;
}

.challenge-results {
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: none;
}

/* Summary Section */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.summary-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 5px solid;
}

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

.summary-card.key-concepts {
    border-color: #9b59b6;
}

.summary-card.best-practices {
    border-color: #2ecc71;
}

.summary-card.common-errors {
    border-color: #e74c3c;
}

.summary-card h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.summary-card li {
    margin-bottom: 0.75rem;
    color: #666;
    line-height: 1.5;
    position: relative;
}

.summary-card li::before {
    content: '•';
    color: #9b59b6;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Cheat Sheet */
.cheat-sheet {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.cheat-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cheat-section {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.cheat-section h5 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.cheat-section pre {
    margin: 0;
    font-size: 0.9rem;
    color: #ecf0f1;
}

.cheat-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cheat-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cheat-btn:hover {
    color: #f39c12;
    transform: translateY(-2px);
}

/* Final Test */
.final-test {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
    border: 2px solid #9b59b6;
}

.test-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.test-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 10px;
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6, #3498db);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.test-question {
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.test-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.test-option {
    padding: 1rem;
    border-radius: 6px;
    border: 2px solid #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.test-option.selected {
    border-color: #3498db;
    background: #3498db10;
}

.test-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.test-btn {
    padding: 0.75rem 2rem;
    border: 2px solid #9b59b6;
    background: #9b59b6;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.test-btn:hover {
    background: #8e44ad;
    transform: translateY(-2px);
}

.test-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.test-btn:disabled:hover {
    background: #9b59b6;
    transform: none;
}

.test-results {
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: none;
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight Effect */
.highlight {
    background: linear-gradient(120deg, #a1c4fd10, #c2e9fb10);
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

/* Code Block Styling */
.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.code-block:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    background: #2980b9;
}

/* Tooltip Styling */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #3498db;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Badge Styling */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0 0.25rem;
}

.badge.package {
    background: #9b59b6;
    color: white;
}

.badge.exception {
    background: #e74c3c;
    color: white;
}

.badge.collection {
    background: #3498db;
    color: white;
}

.badge.enum {
    background: #f39c12;
    color: white;
}

.badge.wrapper {
    background: #2ecc71;
    color: white;
}

/* Terminal Window */
.terminal-window {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-content {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 100px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem;
    text-align: left;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.comparison-table tr:nth-child(even) {
}

.comparison-yes {
    color: #2ecc71;
    font-weight: bold;
}

.comparison-no {
    color: #e74c3c;
    font-weight: bold;
}

/* Interactive Diagram */
.interactive-diagram {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.diagram-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

.diagram-element {
    position: absolute;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.diagram-element:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.diagram-connection {
    position: absolute;
    background: #3498db;
    border-radius: 2px;
}

.diagram-info {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}