/* Netri LMS - Ultra Minimal Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* ========================================
       NETRI LMS - ULTRA MINIMAL PALETTE
       Philosophy: Clean, functional, distraction-free
    ======================================== */

    /* Primary - Pure Neutral */
    --primary: #171717;
    --primary-hover: #0a0a0a;
    --primary-light: #404040;

    /* Backgrounds - Clean whites/grays */
    --bg-body: #fafafa;
    --bg-card: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e5e5e5;
    --bg-dark: #171717;

    /* Text - High contrast */
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    --text-inverse: #fafafa;

    /* Borders - Subtle */
    --border: #e5e5e5;
    --border-hover: #d4d4d4;
    --border-focus: #a3a3a3;

    /* Status Colors - Minimal, muted */
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --warning: #ca8a04;
    --warning-bg: #fefce8;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --info: #525252;
    --info-bg: #f5f5f5;

    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 8px 16px -4px rgb(0 0 0 / 0.08);

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-normal: 180ms ease;
    --transition-slow: 250ms ease;

    /* Border Radius - Clean */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ========================================
   BASE STYLES
======================================== */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================================
   SIDEBAR NAVIGATION - NETRI STYLE
======================================== */
.netri-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.netri-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.netri-logo svg {
    width: 32px;
    height: 32px;
}

.netri-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.netri-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    position: relative;
}

.netri-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.netri-nav-link:hover i {
    transform: translateX(2px);
}

.netri-nav-link.active {
    background: var(--bg-secondary);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.netri-nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 15px;
    transition: transform var(--transition-fast);
}

/* ========================================
   CARDS - NETRI STYLE
======================================== */
.netri-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.netri-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.netri-card-hover:hover {
    transform: translateY(-2px);
}

/* Stat Cards */
.netri-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
}

.netri-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.netri-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.netri-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.netri-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Course/Session Cards */
.netri-course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.netri-course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.netri-course-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.netri-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.netri-course-card:hover .netri-course-thumbnail img {
    transform: scale(1.03);
}

.netri-course-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.netri-course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.netri-course-content {
    padding: 1.25rem;
}

.netri-course-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.netri-course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ========================================
   BUTTONS - NETRI STYLE
======================================== */
.netri-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.netri-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(30 41 59 / 0.15);
}

.netri-btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
}

.netri-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.netri-btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.netri-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.netri-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.netri-btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.netri-btn-success {
    background: var(--success);
    color: white;
}

.netri-btn-success:hover {
    background: #16a34a;
}

.netri-btn-full {
    width: 100%;
}

/* ========================================
   PROGRESS BAR - NETRI STYLE
======================================== */
.netri-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.netri-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ========================================
   HERO SECTION - NETRI STYLE
======================================== */
.netri-hero {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.netri-hero-welcome {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.netri-hero-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.netri-hero-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.netri-hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.netri-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.netri-hero-stat i {
    color: var(--text-muted);
}

/* ========================================
   VIDEO PLAYER - NETRI STYLE
======================================== */
.netri-video-container {
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
}

.netri-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1.5rem 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 20;
}

.netri-video-container:hover .netri-video-controls,
.netri-video-controls.show {
    opacity: 1;
}

.netri-video-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
}

.netri-video-progress-fill {
    height: 100%;
    background: var(--text-inverse);
    border-radius: var(--radius-full);
    transition: width 0.1s;
}

.netri-video-progress-watched {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    top: 0;
    left: 0;
}

.netri-video-btn {
    background: transparent;
    border: none;
    color: var(--text-inverse);
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
    opacity: 0.9;
}

.netri-video-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ========================================
   PDF PANEL - NETRI STYLE
======================================== */
.netri-pdf-panel {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.netri-pdf-header {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.netri-pdf-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.netri-pdf-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.netri-pdf-nav button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.netri-pdf-nav button:hover {
    background: var(--bg-tertiary);
}

.netri-pdf-container {
    flex: 1;
    overflow: auto;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   SPLIT VIEW LAYOUT - NETRI STYLE
======================================== */
.netri-split-view {
    display: grid;
    grid-template-columns: 60% 40%;
    height: 100vh;
    gap: 0;
}

@media (max-width: 1024px) {
    .netri-split-view {
        grid-template-columns: 1fr;
        grid-template-rows: 50% 50%;
    }
}

/* ========================================
   BADGES - NETRI STYLE
======================================== */
.netri-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.netri-badge-success {
    background: var(--success-bg);
    color: #166534;
}

.netri-badge-warning {
    background: var(--warning-bg);
    color: #92400e;
}

.netri-badge-error {
    background: var(--error-bg);
    color: #991b1b;
}

.netri-badge-info {
    background: var(--info-bg);
    color: #1e40af;
}

.netri-badge-neutral {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* ========================================
   TABLES - NETRI STYLE
======================================== */
.netri-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.netri-table thead {
    background: var(--bg-secondary);
}

.netri-table th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.netri-table td {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.netri-table tbody tr {
    transition: background var(--transition-fast);
}

.netri-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* ========================================
   TABS - NETRI STYLE
======================================== */
.netri-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.netri-tab {
    padding: 0.875rem 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.netri-tab:hover {
    color: var(--text-primary);
}

.netri-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ========================================
   FORMS - NETRI STYLE
======================================== */
.netri-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--bg-card);
    color: var(--text-primary);
}

.netri-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(30 41 59 / 0.1);
}

.netri-input::placeholder {
    color: var(--text-muted);
}

.netri-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.netri-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--bg-card);
    color: var(--text-primary);
    resize: vertical;
    min-height: 100px;
}

.netri-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(30 41 59 / 0.1);
}

/* ========================================
   MODALS - NETRI STYLE
======================================== */
.netri-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.netri-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 28rem;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow-lg);
}

.netri-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.netri-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.netri-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.netri-modal-close:hover {
    color: var(--text-primary);
}

/* ========================================
   ANIMATIONS - NETRI STYLE
======================================== */
@keyframes netri-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes netri-slide-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.netri-fade-in {
    animation: netri-fade-in 0.3s ease-out;
}

.netri-slide-in {
    animation: netri-slide-in 0.25s ease-out;
}

/* ========================================
   SCROLLBAR - NETRI STYLE
======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   UTILITIES
======================================== */
.netri-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.netri-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.netri-section-title i {
    color: var(--text-muted);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}