/* Academy Specific Styles - Inherits from custom.css but overrides for LMS */

:root {
    --academy-bg: #050a18;
    --academy-card-bg: #0f1629;
    --academy-accent: #00a2ff;
    /* Corporate Blue instead of Purple to match Main Site */
    --academy-text: #e0e0e0;
    --academy-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--academy-bg);
    color: var(--academy-text);
    font-family: 'Inter', sans-serif;
}

/* Remove Particles */
#particles-js {
    display: none !important;
}

/* --- Bootstrap Overrides for Dark Theme --- */
.bg-dark {
    background-color: var(--academy-card-bg) !important;
}

.bg-darker {
    background-color: #02050c !important;
    /* Darker than body */
}

.text-muted {
    color: #a0a0a0 !important;
}

.border-secondary {
    border-color: var(--academy-border) !important;
}

.card {
    background-color: var(--academy-card-bg);
    border: 1px solid var(--academy-border);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #00a2ff 0%, #0060ff 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 96, 255, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 96, 255, 0.6);
    background: linear-gradient(135deg, #20b0ff 0%, #2080ff 100%);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* --- Navigation --- */
.academy-navbar {
    background: rgba(5, 10, 24, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--academy-border);
}

/* --- Hero Section --- */
.academy-hero {
    padding: 80px 0;
    background: radial-gradient(circle at top right, rgba(0, 162, 255, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 96, 255, 0.1), transparent 40%);
    position: relative;
    overflow: hidden;
}

.academy-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a0d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Course Cards --- */
.course-card {
    background: var(--academy-card-bg);
    border: 1px solid var(--academy-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--academy-accent);
}

.course-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-category-badge {
    font-size: 0.8rem;
    color: var(--academy-accent);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
    line-height: 1.4;
}

.course-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--academy-border);
    padding-top: 15px;
}

.course-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.course-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* --- Category Grid --- */
.category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--academy-border);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: rgba(0, 162, 255, 0.1);
    border-color: var(--academy-accent);
}

.category-icon {
    font-size: 2rem;
    color: var(--academy-accent);
    margin-bottom: 15px;
}

/* --- Student Dashboard --- */
.dashboard-layout {
    display: flex;
    min-height: 80vh;
}

/* Fix for Sidebar */
.dashboard-sidebar {
    width: 250px;
    background: #0b1120;
    border-right: 1px solid var(--academy-border);
    padding: 20px 0;
    flex-shrink: 0;
}

.dashboard-menu a {
    display: block;
    padding: 12px 20px;
    color: #a0a0a0;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
    background: rgba(0, 162, 255, 0.08);
    color: white;
    border-left: 3px solid var(--academy-accent);
}

.dashboard-content {
    flex-grow: 1;
    padding: 30px;
    overflow-x: hidden;
}

/* --- Video Player (LMS) --- */
.lms-container {
    display: flex;
    height: calc(100vh - 80px);
    /* Height minus new sticky header */
}

.lms-video-area {
    flex-grow: 1;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.lms-sidebar {
    width: 350px;
    background: #111;
    border-left: 1px solid #333;
    overflow-y: auto;
    flex-shrink: 0;
}

.module-header {
    background: #1a1a1a;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    font-weight: 600;
}

.topic-item {
    padding: 12px 15px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.topic-item:hover,
.topic-item.active {
    background: #2a2a2a;
}

.topic-item i {
    margin-right: 10px;
    font-size: 0.9rem;
}

.checkbox-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 10px;
}

.topic-item.completed .checkbox-circle {
    background: var(--academy-accent);
    border-color: var(--academy-accent);
}
/* --- Navbar Visibility Fixes --- */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}
.navbar-nav .nav-link:hover {
    color: #fff !important;
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.1) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* --- Emergency UI Fixes (User Feedback) --- */

/* 1. Hero Spacing Fix */
.academy-hero {
    padding-top: 140px !important; /* Push content down below sticky header */
    padding-bottom: 80px;
}

/* 2. Logo Alignment */
.navbar-brand {
    display: flex;
    align-items: center;
}
.navbar-brand span {
    font-size: 1.1rem;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 2px;
}

/* 3. Chatbot (A.R.I.A) Styling Fixes */
#aria-container {
    background: #0f1629 !important; /* Dark Academy Theme */
    border: 1px solid rgba(0, 162, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
#aria-header {
    background: linear-gradient(135deg, #00a2ff 0%, #0060ff 100%);
    color: white;
}
.aria-message.bot {
    background: #1a233a !important;
    color: #e0e0e0 !important;
    border-left: 3px solid #00a2ff;
}
.aria-message.user {
    background: rgba(0, 162, 255, 0.15) !important;
    color: #fff !important;
}
#aria-input {
    background: #050a18 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
#aria-lead-form input {
    background: #050a18;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}
/* Hide generic/broken footer elements if requested, or we will edit footer_academy.html directly */
