/* Tutorial Page Enhancements */

/* Remove underlines from links */
a {
    text-decoration: none !important;
}

/* Enhanced highlight boxes - make them pop more */
.highlight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 6px solid #ff9800;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    position: relative;
}

.highlight-box::before {
    content: "⚠️";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #ff9800;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 8px rgba(255, 152, 0, 0.3);
}

.highlight-box strong {
    color: #cc6600;
    font-size: 1.1em;
}

.highlight-box p:first-of-type {
    margin-top: 10px;
}

/* Enhanced info boxes */
.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 6px solid #2196f3;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.1);
    position: relative;
}

.info-box::before {
    content: "📍";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #2196f3;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.info-box strong {
    color: #0d47a1;
}

/* Step headings */
h4.mt-4 {
    color: #1976d2;
    font-weight: 600;
    border-left: 4px solid #1976d2;
    padding-left: 15px;
    margin-top: 30px !important;
    margin-bottom: 15px;
}

/* Image styling - make them more presentable */
.chapter-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chapter-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Image containers */
.text-center.border,
.text-center.bg-light {
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Better list styling */
.chapter-content ul li,
.chapter-content ol li {
    padding: 5px 0;
    line-height: 1.8;
}

.chapter-content ul li strong,
.chapter-content ol li strong {
    color: #1976d2;
}

/* Code snippets */
code {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    color: #d32f2f;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Contact box enhancement */
.contact-box {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border: 3px solid #5e35b1;
    padding: 35px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(94, 53, 177, 0.15);
}

.contact-box h3 {
    color: #5e35b1;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Quick reference summary styling */
.chapter:last-child .highlight-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 6px solid #4caf50;
}

.chapter:last-child .highlight-box::before {
    content: "✓";
    background: #4caf50;
}

.chapter:last-child .highlight-box h4 {
    color: #2e7d32;
    border: none;
    padding-left: 0;
}

/* Breadcrumb enhancement */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
}

.breadcrumb-item a {
    color: #1976d2;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #666;
    font-weight: 600;
}

/* Chapter title enhancement */
.chapter-title {
    position: relative;
    padding-left: 20px;
}

.chapter-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .highlight-box,
    .info-box {
        padding: 20px 15px 15px 15px;
    }

    .highlight-box::before,
    .info-box::before {
        top: -10px;
        left: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    h4.mt-4 {
        font-size: 1.1rem;
    }

    .chapter-content img {
        margin: 15px 0;
    }
}

/* Table of contents style (if needed) */
.toc {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.toc h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.toc ul li:last-child {
    border-bottom: none;
}

.toc ul li a {
    color: #1976d2;
    font-weight: 500;
    transition: color 0.2s;
}

.toc ul li a:hover {
    color: #667eea;
}

/* Print-friendly adjustments */
@media print {
    .highlight-box,
    .info-box {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .chapter-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}