/*
:root {
    --main-background: #2b2b2b;
    --card-background: #3b3b3b;
    --text-color: #ffffff;
    --link-hover-color: #ffffff;
	--neon-orange: #FF5F1F;
	--neon-orange-lighter: #ff7a3a;
}
*/

/* General Page Styling */
.coder-course-page {
    background-color: var(--main-background);
    color: var(--text-color);
    padding: 20px;
    display: flex;
    justify-content: center;
	height: 100vh;
    overflow: hidden;
}

.course-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Left Column: Course Details */
.course-details {
    width: 50%;
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
	overflow-y: auto; 
    max-height: 100%;
}

/* Title Section */
.course-title {
    color: var(--text-color)!important;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Description Section */
.course-description {
    color: var(--text-color)!important;
    font-size: 1rem;
}

.course-details h1, h2, h3, h4, h5, h6 {
	color: var(--text-color)!important;
}

.course-tests h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.test-cases {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.test-cases li {
    margin-bottom: 8px;
    color: var(--text-color)!important;
    font-size: 0.9rem;
}

/* Right Column: IDE Container */

.codeContainer {
	display: flex;
	margin-bottom: 15px;
}

.CodeMirror {
	width: 50%;
	height: 200px;
	margin-bottom:5px;
	margin-top: 5px;
	border-radius: 5px;
	resize: vertical;
}

.ide-container {
    width: 50%;
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.ide-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
	overflow-y: auto;
    max-height: 100%;
	padding: 10px;
}

/* IDE Styling */
.pythonIDE p {
    font-size: 1rem;
    color: #FFC107;
    margin-bottom: 10px;
}

.pythonCode {
    width: 100%;
    height: 200px;
    background-color: #2b2b2b;
    color: #ddd;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
}

.pythonOutput {
    width: 50%;
    height: 200px;
    background-color: #1a1a1a;
    color: #dddddd;
    padding: 10px;
    border-radius: 5px;
    overflow-y: auto;
    border: 1px solid #444;
	margin-top:5px;
	margin-bottom:5px;
	resize: vertical;
}

.runPythonButton, .runTestsButton {
    background-color: var(--neon-orange);
    color: var(--text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	margin-top:5px;
	margin-bottom:5px;
}

.runPythonButton:hover, .runTestsButton:hover, .runPythonButton:active, .runTestsButton:active, .runPythonButton:focus, .runTestsButton:focus {
    background-color: var(--neon-orange-lighter);
}

.comparisonsMessage {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Webkit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
    border: 3px solid #333;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-orange-lighter) #2b2b2b;
}


/* Responsive Adjustments */
@media (max-width: 900px) {
    .course-container {
        flex-direction: column;
    }

    .course-details, .ide-container {
        width: 100%;
        margin-bottom: 20px;
    }
}


.tab-bar {
    display: flex;
    border-bottom: 1px solid #444; /* Darker border to match Dracula theme */
    margin-bottom: 1px;
    background-color: var(--card-background); /* Dark background for the tab bar */
}

.tab-course {
    padding: 5px 10px;
	padding-top: 0px;
    padding-bottom: 0px;
    cursor: pointer;
    border: 1px solid #444; /* Dark border */
    border-bottom: none;
    background-color: #44475a; /* Non-active tabs have a dark background */
    color: #f8f8f2; /* Text color matching Dracula theme */
    margin-right: 5px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover and active states */
    border-radius: 5px 5px 0 0; /* Rounded corners for the top */
}

.tab-course.active {
    background-color: #6272a4;  /* Active tab color matching the Dracula theme accents */
    border-bottom: 1px solid #282a36;  /* Seamlessly connect the active tab to the editor */
    color: var(--card-background); /* Keep the text white for active tab */
}

.tab-course:hover {
    background-color: #6272a4; /* Hover effect for inactive tabs */
    color: #f8f8f2; /* Text color on hover */
}

.close {
    margin-left: 10px;
    cursor: pointer;
    color: #ff5555; /* Close button color matching Dracula theme */
}

.close:hover {
    color: #ff79c6; /* Hover effect for the close button */
}

.tab-bar button#addFileButton {
    padding: 8px 15px;
    border: none;
    background-color: var(--neon-orange); /* Bright green matching Dracula theme for the + button */
    color: var(--text-color); /* Dark text color */
    cursor: pointer;
    margin-left: 5px;
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.tab-bar button#addFileButton:hover {
    background-color: var(--neon-orange-lighter); /* Hover color for the + button */
}


/* Styling for the dark-themed offscreen canvas */
.course-canvas.dark-theme {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background-color: var(--main-background); /* Dark background */
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 9999;
}

.course-canvas.dark-theme.active {
    right: 0; /* Show the canvas */
	overflow-y: auto; /* Ensure the canvas is scrollable */
}

.canvas-title {
    color: var(--text-color);
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
}

.canvas-course-list-wrapper {
    padding: 0 15px;
}

/* Styling for topic cards */
.topic-card {
    background-color: var(--card-background); /* Charcoal card */
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.topic-title {
    color: var(--text-color);
    font-size: 1.0em;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Course list inside topic cards */
.topic-course-list {
    list-style: none;
    padding: 0;
}

.course-item {
    margin-bottom: 8px;
}

.course-link {
    color: var(--text-color); /* Light text for links */
    text-decoration: none;
    font-size: 0.8em;
}

.course-link:hover {
    color: var(--text-color);
}

/* Toggle button */
.toggle-canvas-btn {
    position: fixed;
    top: 50px;
    right: 20px;
    background-color: var(--neon-orange);
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.toggle-canvas-btn:hover, .toggle-canvas-btn:active, .toggle-canvas-btn:focus {
    background-color: var(--neon-orange-lighter);
}

/* Add smooth scroll inside the canvas */
.course-canvas.dark-theme {
    scrollbar-color: #888 var(--neon-orange); /* Custom scrollbar color */
    scrollbar-width: thin;
}

.course-canvas.dark-theme ::-webkit-scrollbar {
    width: 8px;
}

.course-canvas.dark-theme ::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 5px;
}



/* Show the canvas when it's open */
.course-canvas.open {
	right: 0;
}


/* Course Listing Page*/

/* Base styling for the course list in dark mode */
.course-list-wrapper {
    padding: 20px;
    background-color: var(--main-background); /* Dark background */
    color: var(--text-color); /* White text */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Subtle shadow */
}

.course-list-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color); /* White text for title */
    text-align: center; /* Center the course title */
}

.topic-section {
    margin-bottom: 30px;
    text-align: center;
}

.topic-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--neon-orange); /* Neon orange for topic title */
    margin-bottom: 20px;
}

/* Course Card Container for aligning cards horizontally */
.course-card-container {
    display: flex;
    justify-content: center; /* Center the course cards */
    gap: 20px;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

/* Course Card Styling */
/* Remove underline from the link and make it block level */
.course-card-link {
    text-decoration: none;
    display: block; /* Make the entire card clickable */
    color: inherit; /* Inherit the text color */
}

/* Ensure the entire card behaves like a link */
/* Course card default styles */
.course-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    background-color: var(--card-background); /* Default background for card */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 3px solid transparent; /* To highlight status borders */
	width: 300px;
}

/* Progress colors */
.course-card.completed {
    /*background-color: #28a745; /* Green background for completed */
    border-color: #218838; /* Darker green border for completed */
}

.course-card.in-progress {
    /*background-color: #fd7e14; /* Orange background for in-progress */
    border-color: #e66100; /* Darker orange border for in-progress */
}

.course-card.not-started {
    /*background-color: #ffffff; /* White background for not started */
    border-color: #ddd; /* Light grey border for not started */
}

/* Hover effects for the progress states */
.course-card.completed:hover {
    transform: translateY(-10px);
    /*background-color: #218838; /* Darker green on hover */
}

.course-card.in-progress:hover {
    transform: translateY(-10px);
    /*background-color: #e66100; /* Darker orange on hover */
}

.course-card.not-started:hover {
    transform: translateY(-10px);
    /*background-color: #f8f9fa; /* Slightly greyish-white on hover */
}

.course-card:hover {
    transform: translateY(-10px); /* Lift effect on hover */
    background-color: var(--neon-orange-lighter); /* Lighten the background on hover */
}

.course-title {
    font-size: 18px;
    margin: 10px 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.course-image {
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    height: 150px; /* Set a fixed height for the image container */
}

.course-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto; /* Maintain the aspect ratio of the image */
}

/* Course content area */
.course-content {
    padding: 15px;
    text-align: center;
}


/* Course Link Styling */
.course-link {
    text-decoration: none;
    color: var(--text-color); /* Use your dark-theme text color */
    font-size: 16px; /* Adjust as needed */
    display: flex;
    align-items: center; /* Ensure text aligns with the circle */
}



.course-link:hover {
    color: var(--neon-orange-lighter); /* Lighter neon on hover */
}


/* Progress Circle Styles */
/* Course List Item Styling */
.course-item {
    display: flex;
    align-items: center; /* Vertically align the circle and text */
}

/* Progress Circle Styling */
.progress-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px; /* Space between the circle and the course link */
    background-color: #ffffff; /* Default white background (not-started) */
    border: 1px solid #ddd; /* Light grey border for default */
}

.progress-circle.completed {
    background-color: #28a745; /* Green for completed */
    border-color: #218838; /* Darker green border */
}

.progress-circle.in-progress {
    background-color: #fd7e14; /* Orange for in-progress */
    border-color: #e66100; /* Darker orange border */
}

.progress-circle.not-started {
    background-color: #ffffff; /* White for not started */
    border-color: #ddd; /* Light grey border */
}



.vertical-resize-bar {
    width: 5px;
    background: #ccc;
    cursor: ew-resize;
}

