/* Custom styles for Hybrid Mobile Applications course */

/* Course-specific styling */
.course-info {
    background: var(--md-primary-fg-color--light);
    border-left: 4px solid var(--md-primary-fg-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

/* Week/date headers styling */
.md-nav__item .md-nav__link[title*="2025"] {
    font-weight: 600;
    color: var(--md-primary-fg-color);
    border-left: 3px solid var(--md-primary-fg-color);
    padding-left: 1rem;
}

/* Progress indicators */
.page-completed::before {
    content: "✅ ";
    margin-right: 0.5rem;
}

.page-in-progress::before {
    content: "🔄 ";
    margin-right: 0.5rem;
}

/* Code blocks with better mobile responsiveness */
.highlight pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Homework and assignment styling */
.homework-box {
    background: var(--md-code-bg-color);
    border: 2px solid var(--md-accent-fg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.homework-box .homework-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--md-accent-fg-color);
    margin-bottom: 0.5rem;
}

.deadline {
    background: #ff5722;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Technology badges */
.tech-badge {
    display: inline-block;
    background: var(--md-primary-fg-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 0.2rem;
    font-weight: 500;
}

.tech-badge.react { background: #61dafb; color: #000; }
.tech-badge.flutter { background: #02569B; }
.tech-badge.ionic { background: #3880ff; }
.tech-badge.cordova { background: #E8E8E8; color: #000; }

/* Mobile-friendly tables */
@media screen and (max-width: 768px) {
    .md-typeset table:not([class]) {
        font-size: 0.8rem;
    }

    .md-typeset table:not([class]) th,
    .md-typeset table:not([class]) td {
        padding: 0.5rem 0.3rem;
    }
}

/* Learning objectives styling */
.learning-objectives {
    background: linear-gradient(135deg, var(--md-primary-fg-color--light), var(--md-accent-fg-color--transparent));
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.learning-objectives h3 {
    margin-top: 0;
    color: var(--md-primary-fg-color);
}

/* Project showcase cards */
.project-card {
    border: 1px solid var(--md-default-fg-color--lighter);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Navigation improvements */
.md-nav__item--nested > .md-nav__link {
    font-weight: 600;
}

/* Custom scrollbar for code blocks */
.highlight::-webkit-scrollbar {
    height: 8px;
}

.highlight::-webkit-scrollbar-track {
    background: var(--md-code-bg-color);
}

.highlight::-webkit-scrollbar-thumb {
    background: var(--md-default-fg-color--lighter);
    border-radius: 4px;
}

.highlight::-webkit-scrollbar-thumb:hover {
    background: var(--md-default-fg-color--light);
}

/* Course schedule table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.schedule-table th {
    background: var(--md-primary-fg-color--light);
    font-weight: 600;
}

.schedule-table tr:hover {
    background: var(--md-default-bg-color--light);
}

/* Print styles */
@media print {
    .md-header,
    .md-tabs,
    .md-footer,
    .md-nav {
        display: none !important;
    }

    .md-main__inner {
        margin: 0 !important;
    }

    .md-content {
        max-width: none !important;
    }
}