/* PathCraft LMS Student Cockpit Styles */

.pc-lms-student-cockpit {
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cockpit-section {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cockpit-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

/* Progress Section */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.last-activity {
    font-size: 0.9em;
    color: #7f8c8d;
}

.progress-bar-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9em;
    color: #34495e;
    text-align: center;
}

.continue-btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.continue-btn:hover {
    background: #229954;
}

/* Adaptive Recommendations */
.recommendation-placeholder {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
}

.recommendations-list {
    display: grid;
    gap: 15px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    background: #f8f9fa;
}

.recommendation-item.practice {
    border-left: 4px solid #f39c12;
}

.recommendation-item.review {
    border-left: 4px solid #e74c3c;
}

.recommendation-item.advance {
    border-left: 4px solid #27ae60;
}

.rec-icon {
    font-size: 1.5em;
    margin-right: 15px;
    flex-shrink: 0;
}

.rec-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.rec-content p {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

.rec-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.rec-link:hover {
    text-decoration: underline;
}

/* Course Roadmap */
.roadmap-container {
    max-height: 400px;
    overflow-y: auto;
}

.roadmap-module {
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.module-header {
    background: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ecf0f1;
}

.module-header:hover {
    background: #ecf0f1;
}

.module-header h4 {
    margin: 0;
    font-size: 1em;
}

.expand-icon {
    transition: transform 0.2s;
}

.roadmap-module.expanded .expand-icon {
    transform: rotate(180deg);
}

.module-items {
    display: none;
}

.roadmap-module.expanded .module-items {
    display: block;
}

.roadmap-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
}

.roadmap-item:last-child {
    border-bottom: none;
}

.roadmap-item:hover {
    background: #f8f9fa;
}

.roadmap-item.completed {
    background: #d4edda;
}

.roadmap-item.current {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
}

.roadmap-item.locked {
    opacity: 0.6;
}

.item-icon {
    margin-right: 12px;
    font-size: 1.2em;
}

.item-content {
    flex: 1;
}

.item-content a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.item-content a:hover {
    color: #3498db;
}

.item-duration {
    display: block;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 2px;
}

.item-status {
    margin-left: 10px;
}

.status-icon {
    font-size: 1.2em;
}

.status-icon.current {
    color: #f39c12;
}

.status-icon.locked {
    color: #95a5a6;
}

/* Student Tools */
.tools-tabs {
    display: flex;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 20px;
}

.tool-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tool-tab.active {
    border-bottom-color: #3498db;
    color: #3498db;
    font-weight: 500;
}

.tool-tab:hover {
    background: #f8f9fa;
}

.tool-content {
    min-height: 200px;
}

.tool-pane {
    display: none;
}

.tool-pane.active {
    display: block;
}

.course-notes {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.save-notes-btn {
    margin-top: 10px;
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.save-notes-btn:hover {
    background: #2980b9;
}

.bookmarks-list {
    list-style: none;
    padding: 0;
}

.bookmarks-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.bookmarks-list li:last-child {
    border-bottom: none;
}

.bookmarks-list a {
    color: #2c3e50;
    text-decoration: none;
}

.bookmarks-list a:hover {
    color: #3498db;
}

/* Requirements Checklist */
.requirements-list {
    display: grid;
    gap: 10px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    background: white;
}

.requirement-item.completed {
    background: #d4edda;
    border-color: #c3e6cb;
}

.req-status {
    margin-right: 12px;
    margin-top: 2px;
}

.status-icon.pending {
    color: #95a5a6;
}

.req-content strong {
    display: block;
    color: #2c3e50;
}

.req-content p {
    margin: 5px 0 0 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Achievement Center */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    background: white;
}

.achievement-icon {
    font-size: 2em;
    margin-right: 15px;
}

.achievement-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.achievement-content p {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

.generate-cert-btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.generate-cert-btn:hover {
    background: #229954;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pc-lms-student-cockpit {
        padding: 15px;
    }

    .cockpit-section {
        padding: 15px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tools-tabs {
        flex-wrap: wrap;
    }

    .tool-tab {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .recommendation-item {
        flex-direction: column;
        text-align: center;
    }

    .rec-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .roadmap-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .item-status {
        margin-left: 0;
    }

    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.cockpit-section.loading {
    position: relative;
}

.cockpit-section.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cockpit-section.loading::before {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    color: #7f8c8d;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}