:root {
    --ic-brand-primary: #002d34;
    /* Darkest teal for Global Nav */
    --ic-brand-secondary: #008987;
    /* Teal for Links/Buttons */
    --ic-brand-font-color-dark: #002d34;
    --ic-link-color: #008987;
    --ic-global-nav-bg: #002d34;
    --ic-global-nav-icon-color: #FFFFFF;
    --ic-dashboard-card-bg: #FFFFFF;
    --ic-bg-light-neutral: #F5F5F5;
    --ic-border-light: #C7CDD1;
    /* New color palette */
    --color-darkest: #002d34;
    --color-dark: #004147;
    --color-medium: #006063;
    --color-light: #008987;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--ic-bg-light-neutral);
    color: var(--ic-brand-font-color-dark);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Global Navigation (Leftmost) */
#global-nav {
    width: 84px;
    background-color: var(--ic-global-nav-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    flex-shrink: 0;
    z-index: 100;
}

.global-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    color: var(--ic-global-nav-icon-color);
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.global-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.global-nav-item.active {
    background-color: #FFFFFF;
    color: var(--ic-brand-primary);
    border-left: 4px solid var(--ic-brand-secondary);
}

.global-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.global-nav-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Main Layout Wrapper */
#main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Course Navigation (Secondary Sidebar) */
#course-nav {
    width: 240px;
    background-color: #FFFFFF;
    border-right: 1px solid var(--ic-border-light);
    display: none;
    /* Hidden by default, shown in course context */
    flex-direction: column;
    padding: 24px 0;
    overflow-y: auto;
}

#course-nav.active {
    display: flex;
}

.course-nav-header {
    padding: 0 24px 16px 24px;
    border-bottom: 1px solid var(--ic-border-light);
    margin-bottom: 16px;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ic-brand-font-color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.course-nav-link {
    display: block;
    padding: 8px 24px;
    color: var(--ic-brand-font-color-dark);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.course-nav-link:hover {
    background-color: #F5F5F5;
    color: var(--ic-brand-font-color-dark);
    text-decoration: none;
}

.course-nav-link.active {
    font-weight: 600;
    border-left-color: var(--ic-brand-font-color-dark);
    color: var(--ic-brand-font-color-dark);
}

/* Content Area */
#content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

#main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ic-border-light);
}

.dashboard-title {
    font-size: 24px;
    font-weight: 300;
    color: var(--ic-brand-font-color-dark);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ic-DashboardCard {
    background: var(--ic-dashboard-card-bg);
    border: 1px solid var(--ic-border-light);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 240px;
}

.ic-DashboardCard:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ic-DashboardCard__header {
    height: 140px;
    background-color: var(--ic-brand-secondary);
    /* Default color, can be overridden */
    position: relative;
}

.ic-DashboardCard__header_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.ic-DashboardCard__header_content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.ic-DashboardCard__header-title {
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ic-DashboardCard__header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-top: 4px;
}

.ic-DashboardCard__action-container {
    padding: 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex: 1;
}

.ic-DashboardCard__action {
    color: #666;
    font-size: 18px;
    transition: color 0.2s;
}

.ic-DashboardCard__action:hover {
    color: var(--ic-brand-secondary);
}

/* Right Sidebar (To-Do) */
#right-sidebar {
    width: 280px;
    background-color: #F5F5F5;
    padding: 24px;
    border-left: 1px solid var(--ic-border-light);
    overflow-y: auto;
}

.todo-list-header {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E1E1E1;
}

.todo-icon {
    margin-right: 8px;
    color: #666;
}

.todo-details {
    flex: 1;
}

.todo-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ic-brand-font-color-dark);
    margin-bottom: 2px;
}

.todo-meta {
    font-size: 11px;
    color: #666;
}

/* Utility Classes */
.btn-primary {
    background-color: var(--ic-brand-secondary);
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #059669;
}

/* Tooltip Styling */
#active-tooltip {
    max-width: 320px;
    overflow-wrap: break-word;
    z-index: 2000 !important;
}