                                                                                                                                                                /* Reset and Base Styles */
:root {
    --primary-color: #6879e3;
    --primary-dark: #0056b3;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --text-primary: #333;
    --text-secondary: #6c757d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
}

/* Font Awesome Fallback Styles */
.fas, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure icons are visible */
.fas::before,
.fa::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.page.page-id-167 .elementor.elementor-24.elementor-location-footer,
.page.page-id-167 .elementor.elementor-12.elementor-location-header,
.page.page-id-167 .page-header {
    display: none;
}

/* Override theme max-width for karma calendar pages */
body:not([class*=elementor-page-]) .site-main {
    max-width: 100% !important;
}

/* Additional specificity for karma calendar dashboard pages */
.karma-calendar-dashboard ~ .site-main,
.karma-calendar-dashboard .site-main,
body .karma-calendar-dashboard .site-main {
    max-width: 100% !important;
}

/* Dashboard Container */
.karma-calendar-dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background-color: #f8f9fa;
}

/* Sidebar - 20% width */
.dashboard-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e9ecef;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    transition: all 0.3s ease;
    padding-top: 20px;
}


/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 30px;
    right: -12px;
    z-index: 1000;
}

.toggle-btn {
    width: 12px;
    height: 45px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn:focus {
    background: none;
}

.toggle-btn img {
    width: 16px;
    height: 16px;
}

.toggle-btn {
    transition: transform 0.3s ease;
}

.toggle-btn:hover .toggle-icon {
    filter: brightness(0.3);
}

/* Collapsed Sidebar Styles */
.dashboard-sidebar.collapsed {
    width: 72px;
}

.dashboard-sidebar.collapsed .sidebar-toggle .toggle-btn {
    transform: rotate(180deg);
}

.dashboard-sidebar.collapsed .nav-heading,
.dashboard-sidebar.collapsed .nav-link span,
.dashboard-sidebar.collapsed .search-container,
.dashboard-sidebar.collapsed .sidebar-ad,
.dashboard-sidebar.collapsed .sidebar-banner,
.dashboard-sidebar.collapsed .sidebar-banner-image,
.dashboard-sidebar.collapsed .sidebar-footer {
    display: none !important;
}

.dashboard-sidebar.collapsed .nav-link {
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    width: 100%;
    display: flex;
}

.dashboard-sidebar.collapsed .nav-link svg {
    margin: 0;
    flex-shrink: 0;
}

.dashboard-sidebar.collapsed .sidebar-navigation {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-sidebar.collapsed .nav-section {
    margin-bottom: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-sidebar.collapsed .nav-item {
    margin-bottom: 2px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.dashboard-sidebar.collapsed .nav-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-sidebar.mobile-hidden {
    transform: translateX(-100%);
}

.sidebar-navigation {
    padding: 24px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav-section {
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.nav-heading {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.nav-list {
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-sidebar.collapsed .nav-list {
    padding-left: 0px;
    margin-top: 20px;
}

/* Empty state items should not be interactive */
.education-item-empty,
.resource-item-empty {
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
}

.education-item-empty:hover,
.resource-item-empty:hover {
    background-color: transparent !important;
    transform: none !important;
}

.nav-item {
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a.nav-link {
    text-decoration: none;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.nav-item.active .nav-link {
    background-color: #f0f2ff;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Search Container */
.search-container {
    padding: 0 24px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #666;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 36px 10px 50px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Sidebar Ad */
.sidebar-ad {
    padding: 0 24px;
    margin-bottom: 24px;
}

.ad-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ad-banner:hover {
    transform: translateY(-2px);
}

.ad-banner img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ad-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ad-cta {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.ad-cta:hover {
    opacity: 0.8;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 24px;
    border-top: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.logout-link:hover {
    color: #dc3545;
}

/* Main Content Area - 80% width */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    transition: margin-left 0.3s ease;
    overflow-x: hidden;
}

.dashboard-main.sidebar-collapsed {
    margin-left: 72px;
}

/* Header - Fixed at top of main content */
.dashboard-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    /* max-width: 91%; */
}

.dashboard-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-left .logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.header-right .user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.user-profile:hover {
    background-color: #f8f9fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.user-email {
    font-size: 12px;
    color: #666;
}

.user-dropdown {
    color: #666;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.user-dropdown.active {
    transform: rotate(180deg);
}

/* Main Content Sections - Stacked vertically */
.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
    overflow-x: hidden;
    max-width: 100%;       /* Constrain within parent layout */
    box-sizing: border-box; /* Include padding in width calc */
}


/* First Row - Introduction Section */
.welcome-section {
    margin-bottom: 32px;
}

.welcome-greeting {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.welcome-subtext {
    font-size: 16px;
    color: #666;
}

/* Second Row - Three Cards Layout */
.top-widgets {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 32px;
}

/* When quote widget is hidden, adjust layout */
.top-widgets.quote-widget-hidden {
    gap: 48px;
}

.quote-widget.hidden {
    display: none !important;
}

.quote-widget {
    display: flex;
    min-height: 100%;
    padding: 24px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 12px;
    background: radial-gradient(155.91% 170.77% at 116.88% 0%, #0D72AF 2.54%, #202E68 100%);
    color: white;
    transition: transform 0.2s ease;
    position: relative;
    max-width: 300px;
}

.quote-widget:hover {
    transform: translateY(-2px);
}

.quote-widget::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    width: 42px;
    height: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42' fill='none'%3E%3Cpath d='M28 35H35C36.8565 35 38.637 34.2625 39.9497 32.9497C41.2625 31.637 42 29.8565 42 28V21C42 20.0717 41.6313 19.1815 40.9749 18.5251C40.3185 17.8687 39.4283 17.5 38.5 17.5H28.1575C28.5727 15.0561 29.8384 12.8375 31.7309 11.2364C33.6235 9.63527 36.021 8.7546 38.5 8.75C38.9641 8.75 39.4092 8.56562 39.7374 8.23744C40.0656 7.90925 40.25 7.46413 40.25 7C40.25 6.53587 40.0656 6.09075 39.7374 5.76256C39.4092 5.43437 38.9641 5.25 38.5 5.25C34.7882 5.25417 31.2297 6.7305 28.6051 9.35511C25.9805 11.9797 24.5042 15.5382 24.5 19.25V31.5C24.5 32.4283 24.8687 33.3185 25.5251 33.9749C26.1815 34.6313 27.0717 35 28 35Z' fill='white'/%3E%3Cpath d='M3.5 35H10.5C12.3565 35 14.137 34.2625 15.4497 32.9497C16.7625 31.637 17.5 29.8565 17.5 28V21C17.5 20.0717 17.1313 19.1815 16.4749 18.5251C15.8185 17.8687 14.9283 17.5 14 17.5H3.6575C4.07272 15.0561 5.33841 12.8375 7.23095 11.2364C9.12348 9.63527 11.521 8.7546 14 8.75C14.4641 8.75 14.9092 8.56562 15.2374 8.23744C15.5656 7.90925 15.75 7.46413 15.75 7C15.75 6.53587 15.5656 6.09075 15.2374 5.76256C14.9092 5.43437 14.4641 5.25 14 5.25C10.2882 5.25417 6.72972 6.7305 4.10511 9.35511C1.4805 11.9797 0.00416946 15.5382 0 19.25V31.5C0 32.4283 0.36875 33.3185 1.02513 33.9749C1.6815 34.6313 2.57174 35 3.5 35Z' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1/1;
}

.quote-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    width: 100%;
    flex: 1;
}

.quote-content blockquote {
    margin: 0;
    font-style: normal;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    flex: 1;
}

.quote-content blockquote p {
    color: #FFF;
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 28.8px */
    margin: 0;
    text-align: left;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.quote-content blockquote footer {
    color: #FFF;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    margin: 0;
    align-self: flex-start;
    margin-top: auto;
}

.calendar-widget-container {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.calendar-widget {
    flex: 1;
    background: white;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Collapsed sidebar layout adjustments */
.dashboard-main.sidebar-collapsed .calendar-widget-container {
    flex: 1;
}

.dashboard-main.sidebar-collapsed .calendar-widget {
    flex: 0.6;
}

.dashboard-main.sidebar-collapsed .checklist-widget {
    flex: 0.4;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-nav {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.calendar-nav.clicked {
    transform: scale(0.95);
}

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 14px;
}

.calendar-date {
    padding: 8px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-date:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.calendar-date.today {
    background-color: #667eea;
    color: white;
    font-weight: 600;
}

.calendar-date.selected {
    background-color: #4CAF50;
    color: white;
    font-weight: 600;
}

.calendar-date.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-date.other-month:hover {
    background-color: transparent;
    transform: none;
}

.calendar-date.has-events::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin: 2px auto 0;
}

.checklist-widget {
    flex: 1;
    background: white;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.checklist-item:hover {
    background-color: #f8f9fa;
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-item.completed .task-text {
    text-decoration: line-through;
}

.task-checkbox {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
    cursor: pointer;
    display: none;
}

.task-label {
    display: flex;
    flex-direction: row;
    align-items: top;
    gap: 4px;
    cursor: pointer;
    flex: 1;
    justify-content: space-between;
}

.task-text {
    max-width: 60%;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    transition: text-decoration 0.2s ease;
    display: flex;
    flex-direction: column;
}

.task-text .task-title{
    font-weight: 600;
}

.task-due {
    font-size: 12px;
    font-weight: 500;
}

.task-due.due-today {
    color: #dc3545;
    border: 1px #dc3545 solid;
    height: fit-content;
    padding: 5px;
    border-radius: 5px;
    background-color: #FEF3F2;
}

.task-due.due-tomorrow {
    color: #175CD3;
    border: 1px #175CD3 solid;
    height: fit-content;
    padding: 5px;
    border-radius: 5px;
    background-color: #EFF8FF;
}

.task-due.due-later {
    color: #067647;
    border: 1px #067647 solid;
    height: fit-content;
    padding: 5px;
    border-radius: 5px;
    background-color: #ECFDF3;
}

/* Third Row - Education Hub and Resources Library */
.dashboard-middle {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 32px;
}

.education-hub-section {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding-top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #323E49;
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 27px;
    min-width: max-content;
    padding-bottom: 16px;
}

.education-hub-section .section-title {
    padding-left: 16px;
}

.education-items {
    display: flex;
    flex-direction: column;
}

.education-item {
    display: flex;  
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-top: 1px solid #E9EAEB;
    /* border-bottom: 1px solid #E9EAEB; */
}

.education-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.education-icon {
    width: 40px;
    height: 40px;
    background: #0094C4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.education-content {
    flex: 1;
    padding: 0;
}

.education-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    margin-top: 0;
    margin-bottom: 0;
}

.education-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
}

.resources-section {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding-top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resources-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* margin-bottom: 20px; */
    padding-left: 16px;
    padding-right: 16px;
}

.resources-actions {
    display: flex;
    gap: 8px;
    display: none;
}

.search-btn, .menu-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-btn:hover, .menu-btn:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.resources-items {
    display: flex;
    flex-direction: column;
}

.resource-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-top: 1px solid #E9EAEB;
}

.resource-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.resource-icon {
    width: 40px;
    height: 40px;
    background: #0F005B;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.resource-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

/* Fourth Row - Sponsors */
.sponsors-section {
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex; /* Keep items in a row */
    justify-content: flex-start; /* Title on left, marquee takes the rest */
    align-items: center;
    gap: 12px;
    max-width: 100%; /* Do not exceed parent width */
    overflow: hidden; /* Ensure no horizontal overflow */
}

.section-title {
    flex-shrink: 0; /* Keep title from shrinking */
    margin: 0;
    padding: 0;
}

.sponsor-marquee-container {
    overflow: hidden;
    position: relative;
    flex: 1; /* Take up remaining space next to the title */
    margin: 0;
    padding: 0;
}

.sponsor-marquee {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(24px, 4vw, 48px);
    animation: sponsor-marquee 30s linear infinite;
    will-change: transform; /* Smooth animation */
}

.sponsor-marquee.no-scroll {
    animation: none;
    justify-content: flex-start;
}

.sponsor-marquee:hover {
    animation-play-state: paused;
}

.sponsor-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    min-width: 120px;
    max-width: 200px;
    height: auto;
    aspect-ratio: 7.6 / 1;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}



.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-logo .sponsor-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

/* Responsive adjustments for sponsor logos */
@media (max-width: 768px) {
    .sponsor-logo {
        min-width: 100px;
        max-width: 150px;
    }
    
    .sponsor-marquee {
        gap: clamp(16px, 3vw, 32px);
    }
    
    .sponsors-section {
        padding: 16px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .sponsor-logo {
        min-width: 80px;
        max-width: 120px;
    }
    
    .sponsor-marquee {
        gap: clamp(12px, 2vw, 24px);
    }
}

@keyframes sponsor-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsor-marquee-container::before,
.sponsor-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.sponsor-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.sponsor-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* Fifth Row - Leaderboard Ad Space */
.banner-section {
    /* background: white; */
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    margin-bottom: 32px;
}

.main-banner {
    display: block;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

.main-banner:hover {
    transform: translateY(-2px);
}

.banner-full-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Sixth Row - Footer */
.dashboard-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 24px;
    text-align: center;
    margin-top: auto;
}

.copyright {
    font-size: 14px;
    color: #666;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 24px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-info {
    border-left: 4px solid #2196F3;
}

.notification-warning {
    border-left: 4px solid #ff9800;
}

.notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: #f8f9fa;
}

/* Interactive States */
.nav-link.hover,
.education-item.hover,
.resource-item.hover,
.calendar-date.hover {
    transform: translateY(-1px);
}

/* Form Elements */
input.error,
textarea.error,
select.error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

/* Dark Theme Support */
body.dark-theme {
    background-color: #1a1a1a;
    color: #fff;
}

body.dark-theme .dashboard-sidebar,
body.dark-theme .dashboard-header,
body.dark-theme .calendar-widget,
body.dark-theme .checklist-widget,
body.dark-theme .education-hub-section,
body.dark-theme .resources-section,
body.dark-theme .sponsors-section,
body.dark-theme .banner-section,
body.dark-theme .dashboard-footer {
    background: #2d2d2d;
    color: #fff;
}

body.dark-theme .welcome-greeting,
body.dark-theme .section-title,
body.dark-theme .calendar-title,
body.dark-theme .checklist-title,
body.dark-theme .banner-title {
    color: #fff;
}

body.dark-theme .welcome-subtext,
body.dark-theme .education-description,
body.dark-theme .copyright {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top-widgets {
        flex-direction: column;
    }
    
    .dashboard-middle {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .dashboard-sidebar.collapsed {
        width: 72px;
    }
    
    .dashboard-main {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }
    
    .dashboard-main.sidebar-collapsed {
        margin-left: 0;
    }
    
    .dashboard-content {
        padding: 16px;
    }
    
    .sponsor-marquee-container {
        overflow: hidden;
    }
    
    .sponsor-marquee {
        animation-duration: 20s;
        gap: 16px;
    }
    
    .sponsor-logo {
        width: 100px;
        height: 50px;
    }
    
    .sponsor-logo .sponsor-name {
        font-size: 12px;
        padding: 6px 8px;
        min-height: 32px;
    }
    
    .main-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .banner-image {
        width: 100%;
        max-width: 300px;
    }
    
    .notification {
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    .dashboard-sidebar,
    .dashboard-header,
    .notification {
        display: none !important;
    }
    
    .dashboard-main {
        margin-left: 0 !important;
    }
    
    .dashboard-main.sidebar-collapsed {
        margin-left: 0 !important;
    }
    
    .dashboard-content {
        padding: 0 !important;
    }
    
    .top-widgets {
        flex-direction: column !important;
    }
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css'); 

/* Full Calendar View Styles */
.dashboard-view {
    display: none;
}

.dashboard-view.active {
    display: block;
}

#full-calendar-view {
    min-height: 500px;
    background: #f8f9fa;
}

.calendar-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.calendar-view-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.calendar-nav-btn i {
    font-size: 14px;
    line-height: 1;
}

.calendar-view-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.calendar-view-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.add-task-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-task-btn:hover {
    background: #0056b3;
}

.full-calendar-container {
    display: flex;
    gap: 24px;
}

.calendar-grid {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.weekday {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 120px;
    padding: 8px;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.today {
    background: #e3f2fd;
}

.calendar-day.selected {
    background: #007bff;
    color: white;
}

.day-number {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.day-tasks {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-indicator {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.task-indicator.completed {
    background: #28a745;
    color: white;
}

.task-indicator.pinned {
    background: #ffc107;
    color: #212529;
}

.task-indicator.annual-priority {
    background: #FF0000;
    color: white;
}

.task-indicator.quarterly-priority {
    background: #008000;
    color: white;
}

.task-indicator.monthly-priority {
    background: #800080;
    color: white;
}

.task-indicator.hygiene_duties-priority {
    background: #008080;
    color: white;
}

.task-indicator.more-tasks {
    background: #e9ecef;
    color: #6c757d;
    font-size: 10px;
    text-align: center;
}

.task-details {
    margin-bottom: 20px;
}

.task-details h4 {
    margin-bottom: 12px;
    color: #333;
    font-size: 18px;
}

.task-description {
    margin-bottom: 16px;
    color: #6c757d;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.task-meta span {
    background: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
}

.calendar-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.calendar-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    flex: 1;
}

.calendar-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.calendar-stats h3,
.upcoming-tasks h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.calendar-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.calendar-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    margin: 0 -24px;
    padding: 16px 24px;
    border-radius: 8px;
}

.calendar-stats .stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-tasks {
    margin-top: 32px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.upcoming-tasks h3 {
    color: #333;
    margin-bottom: 20px;
}

.upcoming-task-item {
    padding: 16px;
    border: 2px solid #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.upcoming-task-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.upcoming-task-item:hover {
    border-color: #667eea;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.upcoming-task-item.completed {
    opacity: 0.7;
    background: #e8f5e8;
    border-color: #28a745;
}

.upcoming-task-item.completed::before {
    background: #28a745;
}

.task-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    color: #333;
}

.task-date {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    /* background: white; */
    border-radius: 12px;
    width: 90%;
    /* max-width: 500px; */
    /* max-height: 90vh; */
    overflow-y: auto;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    z-index: 10001;
    position: relative;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.modal-close:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline {
    background: white;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
}

.task-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Extended Calendar View */
.calendar-extended-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    padding: 2rem;
}

.calendar-extended-view .calendar-sidebar {
    flex: 1;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: fit-content;
}

.calendar-extended-view .calendar-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 10px 5px;
}

.calendar-extended-view .calendar-view-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-extended-view .calendar-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-extended-view .calendar-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.calendar-extended-view .calendar-view-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.calendar-extended-view .full-calendar-container {
    flex: 1;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-bottom-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.calendar-bottom-container .calendar-sidebar {
    width: 300px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: fit-content;
    display: none;
}

.calendar-bottom-container .checklist-widget-extended {
    flex: 1;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-extended-view .calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 400px;
}

.calendar-extended-view .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-extended-view .weekday {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.calendar-extended-view .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    min-height: 300px;
    background: white;
}

.calendar-extended-view .calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--bg-primary);
}

.calendar-extended-view .calendar-day:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-extended-view .calendar-day.other-month {
    opacity: 0.3;
    background: var(--bg-secondary);
}

.calendar-extended-view .calendar-day.today {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-extended-view .day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.calendar-extended-view .day-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-extended-view .task-indicator {
    height: 6px;
    border-radius: 3px;
    background: var(--primary-color);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-extended-view .task-indicator:hover {
    transform: scaleY(1.5);
}

.calendar-extended-view .task-indicator.completed {
    background: var(--success-color);
}

.calendar-extended-view .task-indicator.pinned {
    background: var(--warning-color);
}

.calendar-extended-view .task-indicator.annual-priority {
    background: #FF0000;
}

.calendar-extended-view .task-indicator.quarterly-priority {
    background: #008000;
}

.calendar-extended-view .task-indicator.monthly-priority {
    background: #800080;
}

.calendar-extended-view .task-indicator.hygiene_duties-priority {
    background: #008080;
}

.calendar-extended-view .task-indicator.more-tasks {
    background: var(--text-secondary);
}

/* Checklist Widget Extended */
.checklist-widget-extended {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.checklist-widget-extended .checklist-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.checklist-widget-extended .checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-widget-extended .checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.checklist-widget-extended .checklist-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.checklist-widget-extended .task-checkbox {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checklist-widget-extended .task-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.checklist-widget-extended .task-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checklist-widget-extended .task-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.checklist-widget-extended .task-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.checklist-widget-extended .task-due {
    font-size: 0.85rem;
    font-weight: 500;
}

.checklist-widget-extended .task-due.due-today {
    color: var(--danger-color);
}

.checklist-widget-extended .task-due.due-tomorrow {
    color: var(--warning-color);
}

.checklist-widget-extended .task-due.due-later {
    color: var(--text-secondary);
}

.checklist-widget-extended .task-due.completed {
    color: var(--success-color);
    text-decoration: line-through;
}

/* Task Priority Indicators */
.checklist-widget-extended .task-priority {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.checklist-widget-extended .task-priority.annual {
    background: #FF0000;
    color: white;
}

.checklist-widget-extended .task-priority.quarterly {
    background: #008000;
    color: white;
}

.checklist-widget-extended .task-priority.monthly {
    background: #800080;
    color: white;
}

.checklist-widget-extended .task-priority.hygiene_duties {
    background: #008080;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calendar-extended-view {
        padding: 1rem;
    }
    
    .calendar-bottom-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-bottom-container .calendar-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .calendar-extended-view .calendar-view-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .calendar-extended-view .calendar-view-controls {
        justify-content: center;
    }
    
    .calendar-extended-view .calendar-weekdays {
        gap: 0.25rem;
    }
    
    .calendar-extended-view .weekday {
        font-size: 0.8rem;
        padding: 0.25rem;
    }
    
    .calendar-extended-view .calendar-days {
        gap: 0.25rem;
    }
    
    .calendar-extended-view .calendar-day {
        padding: 0.25rem;
    }
    
    .calendar-extended-view .day-number {
        font-size: 0.9rem;
    }
    
    .checklist-widget-extended {
        padding: 1rem;
    }
    
    .checklist-widget-extended .checklist-item {
        padding: 0.75rem;
    }
} 

/* Task Tooltip */
.task-tooltip {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 300px;
    font-size: 0.9rem;
    pointer-events: none;
}

.task-tooltip .tooltip-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.task-tooltip .tooltip-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.task-tooltip .tooltip-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.task-tooltip .tooltip-priority,
.task-tooltip .tooltip-status,
.task-tooltip .tooltip-pinned {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.task-tooltip .tooltip-priority {
    background: var(--primary-color);
    color: white;
}

.task-tooltip .tooltip-status {
    background: var(--success-color);
    color: white;
}

.task-tooltip .tooltip-pinned {
    background: var(--warning-color);
    color: white;
}

/* Checklist Day Header */
.checklist-day-header {
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.checklist-day-header h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.checklist-day-header:first-child {
    margin-top: 0;
}

/* No Tasks Message */
.no-tasks {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

/* Upcoming Task Item */
.upcoming-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    gap: 10px;
    align-items: end;
}

.upcoming-task-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.upcoming-task-item.completed {
    opacity: 0.6;
}

.upcoming-task-item .task-info {
    flex: 1;
}

.upcoming-task-item .task-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.upcoming-task-item .task-due {
    font-size: 0.85rem;
    color: var(--text-secondary);
} 

/* Export Functionality Styles */
.calendar-export-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-dropdown {
    position: relative;
    display: inline-block;
}

.export-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.export-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

.export-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.export-dropdown-content.show {
    display: block;
    animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.export-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.export-option:hover {
    background-color: var(--bg-secondary);
}

.export-option i {
    width: 16px;
    color: var(--primary-color);
}

.task-export-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Export Styles */
@media (max-width: 768px) {
    .calendar-export-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .export-dropdown {
        width: 100%;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
    }
    
    .export-dropdown-content {
        width: 100%;
        right: auto;
        left: 0;
    }
} 

/* Calendar Loading and Error States */
.calendar-day .loading,
.calendar-day .error {
    text-align: center;
    padding: 20px;
    color: #666;
}

.calendar-day .loading {
    color: #007cba;
}

.calendar-day .error {
    color: #d63638;
    background: #fef7f1;
    border: 1px solid #d63638;
    border-radius: 4px;
}

#extended-calendar-days .loading,
#extended-calendar-days .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
}

#extended-calendar-days .loading {
    color: #007cba;
}

#extended-calendar-days .error {
    color: #d63638;
    background: #fef7f1;
    border: 1px solid #d63638;
    border-radius: 4px;
} 

/* Dashboard Calendar Task Indicators */
.calendar-date.has-events {
    position: relative;
}

.task-indicators {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    justify-content: center;
}

.task-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #007cba;
    display: inline-block;
}

.task-indicator.completed {
    background-color: #28a745;
}

.task-indicator.annual-priority {
    background-color: #FF0000;
}

.task-indicator.quarterly-priority {
    background-color: #008000;
}

.task-indicator.monthly-priority {
    background-color: #800080;
}

.task-indicator.hygiene_duties-priority {
    background-color: #008080;
}

.task-indicator.more {
    background-color: #6c757d;
    font-size: 8px;
    line-height: 6px;
    text-align: center;
    color: white;
}

/* Dashboard Calendar Layout */
.calendar-widget .calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #e9ecef;
    cursor: pointer;
    position: relative;
    min-height: 40px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.calendar-date:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.calendar-date.today {
    background-color: #007cba;
    color: white;
    font-weight: bold;
}

.calendar-date.selected {
    background-color: #17a2b8;
    color: white;
    font-weight: bold;
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.3);
}

.calendar-date.other-month {
    color: #6c757d;
    background-color: #f8f9fa;
}

.calendar-date.has-events {
    font-weight: bold;
}

/* Dashboard Checklist Improvements */
.checklist-item {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    background-color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checklist-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 4px rgba(0, 123, 186, 0.1);
}

.checklist-item.completed {
    background-color: #f8fff9;
    border-color: #28a745;
}

.checklist-item.completed .task-title {
    text-decoration: line-through;
    color: #6c757d;
}

.task-status {
    flex-shrink: 0;
    margin-top: 2px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

.status-indicator.completed {
    background-color: #28a745;
    border-color: #28a745;
}

.status-indicator.pending {
    background-color: #ffc107;
    border-color: #ffc107;
}

.task-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    cursor: default;
}

.task-text {
    flex: 1;
}

.task-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    display: block;
}

.task-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.task-due {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.task-due.due-today {
    background-color: #dc3545;
    color: white;
}

.task-due.due-tomorrow {
    background-color: #fd7e14;
    color: white;
}

.task-due.due-later {
    background-color: #6c757d;
    color: white;
}

/* Priority indicators */
.checklist-item.priority-annual {
    border-left: 4px solid #FF0000;
}

.checklist-item.priority-quarterly {
    border-left: 4px solid #008000;
}

.checklist-item.priority-monthly {
    border-left: 4px solid #800080;
}

.checklist-item.priority-hygiene_duties {
    border-left: 4px solid #008080;
}

/* Loading and error states */
.loading, .error, .no-tasks {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.no-tasks {
    color: #6c757d;
    font-style: italic;
}

.more-tasks {
    text-align: center;
    padding: 8px;
    color: #007cba;
    font-weight: 500;
    cursor: pointer;
}

.more-tasks:hover {
    text-decoration: underline;
}

.show-all-tasks-btn {
    text-align: center;
    padding: 12px;
    margin-top: 16px;
    background-color: #007cba;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.show-all-tasks-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(104, 121, 227, 0.3);
}

.back-to-summary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    text-decoration: none;
}

.back-to-summary-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.checklist-widget-extended .task-export-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.checklist-widget-extended .export-btn.small {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.checklist-widget-extended .export-btn.small:hover {
    background-color: #005a8b;
}

.checklist-widget-extended .export-dropdown {
    position: relative;
    display: inline-block;
}

.checklist-widget-extended .export-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.checklist-widget-extended .export-dropdown-content.show {
    display: block;
}

.checklist-widget-extended .export-option {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.checklist-widget-extended .export-option:hover {
    background-color: #007cba;
    color: white;
}

/* Paywall Styling */
.karma-calendar-paywall {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.karma-calendar-paywall h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.karma-calendar-paywall .button {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.karma-calendar-paywall .button:hover {
    background: #005a8b;
    color: white;
    text-decoration: none;
}

.karma-calendar-paywall .button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.resource-item-content {
    flex: 1;
    min-width: 0;
}

.resource-item-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.resource-item-description {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.resource-education-hub {
    margin: 0 0 12px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007cba;
    font-size: 13px;
}

.education-hub-label {
    color: #666;
    font-weight: 500;
    margin-right: 6px;
}

.education-hub-title {
    color: #007cba;
    font-weight: 600;
}

.education-hub-category {
    color: #666;
    font-style: italic;
    margin-left: 4px;
}

/* Dashboard Modal Styles */
.dashboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.dashboard-modal.active {
    display: block;
}

.dashboard-modal.active .education-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-modal.active .resource-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-modal.active .resource-info .resource-title {
    margin-block-start: 0 !important;
    margin-bottom: 0 !important;
}

.dashboard-modal.active .task-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-modal.active .task-info .task-title {
    margin-block-start: 0 !important;
    margin-bottom: 0 !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #6879e3 0%, #5a6fd8 100%);
    color: white;
    width: 100%;
}

.modal-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

.modal-close {
    background: none !important;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    z-index: 10001;
    position: relative;
}

.modal-content {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

.education-detail-content,
.resource-detail-content,
.task-detail-content {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.education-header,
.resource-header,
.task-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.education-icon-large,
.resource-icon-large,
.task-icon-large {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.education-info,
.resource-info,
.task-info {
    flex: 1;
    min-width: 0;
}

.education-meta,
.resource-meta,
.task-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.education-category,
.education-status,
.resource-category,
.resource-type,
.task-priority,
.task-due-date {
    background: #6879e3;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-status {
    padding: 6px 12px;
}

.education-status {
    background: #28a745;
}

.task-priority.priority-high {
    background: #dc3545;
}

.task-priority.priority-medium {
    background: #ffc107;
    color: #333;
}

.task-priority.priority-low {
    background: #28a745;
}

.task-status.completed {
    background: #28a745;
    color: white;
}

.task-status.pending {
    background: #6c757d;
    color: white;
}

.task-due-date.due-today {
    background: #dc3545;
    color: white;
}

.task-due-date.due-tomorrow {
    background: #fd7e14;
    color: white;
}

.task-due-date.due-later {
    background: #17a2b8;
    color: white;
}

.resource-type {
    background: #17a2b8;
}

/* Task Actions */
.task-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.complete-btn,
.pin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.complete-btn {
    background: #28a745;
    color: white;
}

.complete-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.pin-btn {
    background: #6c757d;
    color: white;
}

.pin-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.complete-btn:disabled,
.pin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.education-description,
.resource-description,
.task-description {
    line-height: 1.6;
    color: #555;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 24px;
}

.associated-resources {
    margin-top: 24px;
}

.associated-resources h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #6879e3;
}

.resources-list {
    display: grid;
    gap: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.resource-item-modal {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.resource-item-modal:hover {
    background: white;
    border-color: #6879e3;
    box-shadow: 0 4px 12px rgba(104, 121, 227, 0.1);
}

.resource-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.resource-item-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.resource-item-category {
    background: #17a2b8;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.resource-item-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.resource-item-actions {
    display: flex;
    gap: 8px;
}

.resource-item-download {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.resource-item-download:hover {
    background: #218838;
}

.resource-item-download:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.resource-item-download:disabled:hover {
    background: #ccc;
}

.resource-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.detail-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.resource-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.download-btn {
    background: linear-gradient(135deg, rgb(104, 121, 227) 0%, rgb(90, 111, 216) 100%);
    color: white !important;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 121, 227, 0.4);
}

.download-btn i {
    margin-right: 8px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: none;
        max-height: 95vh;
        margin: 20px;
        top: 20px;
        left: 20px;
        transform: none;
        width: calc(100% - 40px);
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-content {
        padding: 20px;
        max-height: calc(95vh - 120px);
    }
    
    .education-header,
    .resource-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .education-icon-large,
    .resource-icon-large {
        align-self: center;
    }
    
    .education-title,
    .resource-title {
        font-size: 24px;
        text-align: center;
    }
    
    .education-meta,
    .resource-meta {
        justify-content: center;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: calc(100% - 20px);
        margin: 10px;
        top: 10px;
        left: 10px;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .education-title,
    .resource-title {
        font-size: 20px;
    }
}

/* Dark Theme Support */
body.dark-theme .modal-container {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-theme .modal-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-theme .education-title,
body.dark-theme .resource-title {
    color: #e2e8f0;
}

body.dark-theme .education-description,
body.dark-theme .resource-description {
    color: #cbd5e0;
}

body.dark-theme .resource-details {
    background: #4a5568;
}

body.dark-theme .detail-label {
    color: #cbd5e0;
}

body.dark-theme .detail-value {
    color: #e2e8f0;
}

body.dark-theme .resource-item-modal {
    background: #4a5568;
    border-color: #718096;
}

body.dark-theme .resource-item-modal:hover {
    background: #2d3748;
    border-color: #6879e3;
}

body.dark-theme .associated-resources h3 {
    color: #e2e8f0;
    border-bottom-color: #6879e3;
}

/* Search Results Modal Styles */
.search-results-content {
    max-width: 100%;
}

.search-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.search-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.search-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.search-query {
    font-size: 16px;
    color: #6879e3;
    font-weight: 500;
}

.results-count {
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 16px;
}

.search-results-list {
    display: grid;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: white;
    border-color: #6879e3;
    box-shadow: 0 4px 12px rgba(104, 121, 227, 0.1);
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin: 0;
}

.search-result-category {
    background: #17a2b8;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.search-result-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.search-result-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
}

.search-result-file-type,
.search-result-education-hub {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-result-file-type i,
.search-result-education-hub i {
    font-size: 14px;
}

.search-result-education-hub {
    color: #6879e3;
}

/* Search Input Styling */
.search-container {
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 50px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #6879e3;
    box-shadow: 0 0 0 3px rgba(104, 121, 227, 0.1);
}

.search-icon {
    position: absolute;
    left: 85%;
    color: #717680;
    pointer-events: none;
}

/* Dark Theme for Search Results */
body.dark-theme .search-header h3 {
    color: #e2e8f0;
}

body.dark-theme .search-header {
    border-bottom-color: #4a5568;
}

body.dark-theme .search-query {
    color: #6879e3;
}

body.dark-theme .results-count {
    background: #4a5568;
    color: #cbd5e0;
}

body.dark-theme .search-result-item {
    background: #4a5568;
    border-color: #718096;
}

body.dark-theme .search-result-item:hover {
    background: #2d3748;
    border-color: #6879e3;
}

body.dark-theme .search-result-title {
    color: #e2e8f0;
}

body.dark-theme .search-result-description {
    color: #cbd5e0;
}

body.dark-theme .search-result-meta {
    color: #a0aec0;
}

body.dark-theme .search-input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-theme .search-input:focus {
    border-color: #6879e3;
}

body.dark-theme .search-icon {
    color: #a0aec0;
}

/* Sidebar Banner Styles */
.sidebar-banner {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-banner:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sidebar-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sidebar-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Dark Theme Support for Sidebar Banner */
body.dark-theme .sidebar-banner {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .sidebar-banner:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Sidebar Banner */
@media (max-width: 768px) {
    .sidebar-banner {
        margin: 15px 0;
    }
    
    .sidebar-banner-image {
        border-radius: 6px;
    }
}

/* Remove old sidebar-ad styles */
.sidebar-ad {
    display: none;
}

/* Ensure banner is always visible with higher specificity */
.dashboard-sidebar .sidebar-navigation .sidebar-banner,
.sidebar-navigation .sidebar-banner,
.sidebar-banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: fit-content !important;
}

/* Ensure banner image displays fully */
.sidebar-banner .sidebar-banner-image,
.sidebar-banner img,
.sidebar-banner-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* Ensure banner link container is properly sized */
.sidebar-banner .sidebar-banner-link,
.sidebar-banner-link {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    text-decoration: none !important;
}

/* Calendar Access Notice */
.karma-calendar-access-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    margin: 40px auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.karma-calendar-access-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.karma-calendar-access-notice .notice-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    opacity: 0.9;
}

.karma-calendar-access-notice .notice-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.karma-calendar-access-notice .notice-message {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.5;
}

.karma-calendar-access-notice .notice-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.karma-calendar-access-notice .notice-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.karma-calendar-access-notice .notice-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.karma-calendar-access-notice .notice-button:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .karma-calendar-access-notice {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .karma-calendar-access-notice .notice-title {
        font-size: 24px;
    }
    
    .karma-calendar-access-notice .notice-message {
        font-size: 16px;
    }
    
    .karma-calendar-access-notice .notice-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}


