/* Main Styles for Learning Platform */

/* General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #333;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 25px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    border: none;
}

.btn-outline-primary {
    border: 2px solid #4361ee;
    color: #4361ee;
}

.btn-outline-primary:hover {
    background-color: #4361ee;
    color: white;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    height: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

/* Tables */
.table {
    background-color: white;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #6c757d;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
    background: white;
    min-height: calc(100vh - 76px);
    box-shadow: 2px 0 15px rgba(0,0,0,0.05);
    padding: 20px 0;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
}

/* Journey Cards */
.journey-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.journey-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Module Items */
.module-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #4361ee;
    transition: all 0.3s ease;
}

.module-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.module-item.completed {
    border-left-color: #4cc9f0;
    background-color: #f0f9ff;
}

/* Content Viewer */
.content-viewer {
    min-height: 400px;
}

.video-player-container {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.document-viewer {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
    }
    
    .card-body {
        padding: 15px;
    }
}