/* Additional Styles CSS - Supplementary styling for course components */

/* Course navigation enhancements */
.course-nav {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.course-nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s ease;
    margin: 0 5px;
}

.course-nav a:hover {
    background: rgba(52, 152, 219, 0.3);
}

.course-nav a.active {
    background: #3498db;
    color: white;
}

/* Learning objectives styling */
.learning-objective {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
}

.learning-objective h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.learning-objective ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* Code example styling */
.code-example {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #34495e;
    position: relative;
    overflow-x: auto;
}

.code-example::before {
    content: "Code Example";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Security warning boxes */
.security-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    position: relative;
}

.security-warning::before {
    content: "⚠️ Security Warning";
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.security-critical {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.security-critical::before {
    content: "🚨 Critical Security Alert";
}

/* Best practices boxes */
.best-practice {
    background: #d1ecf1;
    border: 2px solid #17a2b8;
    color: #0c5460;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.best-practice::before {
    content: "💡 Best Practice";
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

/* Technical specifications */
.tech-spec {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 15px 0;
}

.tech-spec-header {
    background: #e9ecef;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    color: #495057;
}

.tech-spec-body {
    padding: 15px;
}

.tech-spec table {
    width: 100%;
    border-collapse: collapse;
}

.tech-spec th,
.tech-spec td {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}

.tech-spec th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Reference links */
.reference-link {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    margin: 2px;
    transition: background 0.3s ease;
}

.reference-link:hover {
    background: #3498db;
    color: white;
}

/* Progress indicators */
.course-progress {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.progress-indicator {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.progress-text {
    flex: 1;
    margin-right: 15px;
    font-weight: bold;
    color: #495057;
}

.progress-meter {
    width: 200px;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ced4da;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.5s ease;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .course-nav {
        padding: 10px;
    }

    .course-nav a {
        display: block;
        margin: 5px 0;
    }

    .progress-indicator {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-meter {
        width: 100%;
        margin-top: 10px;
    }

    .code-example {
        padding: 15px;
        font-size: 14px;
    }
}