/* Naive Bayes Tutorial Specific Styles */

/* Base container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

/* Typography */
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    color: #34495e;
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin: 30px 0 20px 0;
    font-size: 1.8em;
}

h3 {
    color: #2980b9;
    margin: 25px 0 15px 0;
    font-size: 1.4em;
}

h4 {
    color: #8e44ad;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
}

/* Formula styling */
.formula {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #3498db;
    border-left: 5px solid #2980b9;
    padding: 15px 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Example boxes */
.example-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #28a745;
    border-left: 5px solid #20c997;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.3s ease;
}

/* Step numbers */
.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.9em;
}

/* Highlight text */
.highlight {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #2d3436;
}

/* Code blocks */
.code-block {
    background: #2d3748;
    color: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.code-block .keyword {
    color: #63b3ed;
    font-weight: bold;
}

.code-block .string {
    color: #68d391;
}

.code-block .number {
    color: #f6ad55;
}

.code-block .comment {
    color: #a0aec0;
    font-style: italic;
}

/* Interactive demo */
.interactive-demo {
    background: linear-gradient(135deg, #e8f4fd 0%, #bee3f8 100%);
    border: 2px solid #3182ce;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.interactive-demo h3 {
    color: #2c5282;
    margin-top: 0;
    text-align: center;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3182ce;
}

.feature-card h3,
.feature-card h4 {
    margin-top: 0;
    color: #2d3748;
}

/* Form elements */
select, input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
    transition: border-color 0.3s ease;
}

select:focus, input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 15px auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6b46c1 100%);
}

/* Prediction result */
.prediction-result {
    background: white;
    border: 2px solid #48bb78;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-out;
}

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

/* Chart containers */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.chart-container canvas {
    max-width: 100%;
    height: 400px !important;
}

/* Advantages and disadvantages */
.advantages, .disadvantages {
    margin: 25px 0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.advantages {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.disadvantages {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
}

.advantages h3 {
    color: #155724;
    margin-top: 0;
}

.disadvantages h3 {
    color: #721c24;
    margin-top: 0;
}

.advantages ul, .disadvantages ul {
    margin: 15px 0;
    padding-left: 25px;
}

.advantages li, .disadvantages li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Back link */
.back-link {
    display: inline-block;
    color: #3182ce;
    text-decoration: none;
    font-weight: bold;
    margin-top: 40px;
    padding: 10px 20px;
    border: 2px solid #3182ce;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #3182ce;
    color: white;
    transform: translateX(-5px);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container canvas {
        height: 300px !important;
    }
    
    table {
        font-size: 0.9em;
    }
    
    .code-block {
        font-size: 0.8em;
        padding: 15px;
    }
    
    .interactive-demo {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .formula {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-container canvas {
        height: 250px !important;
    }
    
    button {
        width: 100%;
        margin: 10px 0;
    }
}