/* LMS Portal Custom Stylesheet */

/* Root & Palette Variables */
:root {
    --lms-primary: #06A3DA;
    --lms-secondary: #343a40;
    --lms-success: #198754;
    --lms-warning: #ffc107;
    --lms-info: #0dcaf0;
    --lms-light-bg: #f8f9fa;
    --lms-sidebar-bg: #ffffff;
    --lms-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --lms-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --lms-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Sidebar Layout */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    border-radius: 12px;
    background-color: var(--lms-sidebar-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--lms-card-shadow);
    padding: 20px;
}

.sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}
.sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-sticky::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.module-nav-link {
    display: block;
    padding: 12px 15px;
    color: #495057;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    margin-bottom: 5px;
    transition: var(--lms-transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.module-nav-link:hover {
    color: var(--lms-primary);
    background-color: rgba(6, 163, 218, 0.05);
    border-left-color: rgba(6, 163, 218, 0.5);
    padding-left: 18px;
}

.module-nav-link.active {
    color: #ffffff;
    background-color: var(--lms-primary);
    border-left-color: #037ba5;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(6, 163, 218, 0.3);
}

.curriculum-section {
    scroll-margin-top: 110px;
}

/* Premium LMS Module Cards */
.module-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--lms-card-shadow);
    background: #ffffff;
    transition: var(--lms-transition);
    margin-bottom: 40px;
    border-top: 4px solid var(--lms-primary);
}

.module-card:hover {
    box-shadow: var(--lms-hover-shadow);
}

/* Tabs Design */
.lms-tabs .nav-link {
    border: none;
    color: #495057;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: var(--lms-transition);
    background: #f1f3f5;
}

.lms-tabs .nav-link:hover {
    background: #e9ecef;
    color: var(--lms-primary);
}

.lms-tabs .nav-link.active {
    background: var(--lms-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(6, 163, 218, 0.2);
}

/* Custom Alert Boxes (Tips, Notes, Warnings) */
.lms-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid transparent;
}

.lms-tip-block {
    background-color: rgba(25, 135, 84, 0.08);
    border-left-color: var(--lms-success);
    color: #155724;
}

.lms-note-block {
    background-color: rgba(13, 202, 240, 0.08);
    border-left-color: var(--lms-info);
    color: #0c5460;
}

.lms-warning-block {
    background-color: rgba(255, 193, 7, 0.08);
    border-left-color: var(--lms-warning);
    color: #856404;
}

/* Simulated Code Editor Window */
.lms-code-editor {
    background-color: #1e1e1e;
    border-radius: 8px;
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.lms-code-editor-header {
    background-color: #2d2d2d;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3c3c3c;
    font-size: 0.8rem;
}

.lms-code-editor-buttons span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.lms-code-editor-buttons .red { background-color: #ff5f56; }
.lms-code-editor-buttons .yellow { background-color: #ffbd2e; }
.lms-code-editor-buttons .green { background-color: #27c93f; }

.lms-code-content {
    padding: 15px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Simulated Command Terminal */
.lms-terminal {
    background-color: #0c0c0c;
    border-radius: 8px;
    color: #00ff00;
    font-family: 'Consolas', monospace;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.lms-terminal-header {
    background-color: #202020;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #ffffff;
    border-bottom: 1px solid #333;
}

.lms-terminal-body {
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Assessment Boxes */
.lms-assessment-box {
    background-color: #fcfcfc;
    border: 1px dashed #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.lms-question-item {
    padding-bottom: 15px;
    border-bottom: 1px dotted #e9ecef;
    margin-bottom: 15px;
}

.lms-question-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Badge/Metric Styling */
.badge-time {
    background-color: rgba(6, 163, 218, 0.1);
    color: var(--lms-primary);
    font-weight: 600;
}

.badge-lab {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--lms-success);
    font-weight: 600;
}

/* Career section styling */
.lms-career-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f6 100%);
    border-left: 5px solid #6f42c1;
    border-radius: 12px;
    padding: 25px;
}

.lms-career-role {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 15px;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

/* Hero banners for Course portal details */
.lms-hero-banner {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url('img/carousel-1.jpg') center center no-repeat;
    background-size: cover;
}
