/* ==========================================================================
   CONSOLIDATED VIEWS CSS - NO DUPLICATES
   ========================================================================== */

/* ---------------------
    GENERAL/BODY
----------------------*/
body {
    /* background: linear-gradient(90deg, #FFE5C7 0%, #FCEFE9 50%, #F7F3FF 100%); */
    background: linear-gradient(90deg, #f1f5ff 0%, #f1f5ff 50%, #f1f5ff 100%);
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: #333;
}

/* ---------------------
    HEADER
----------------------*/
.header {
    /* background: #ffffff; */
    background: linear-gradient(90deg, #FFE5C7 0%, #FCEFE9 50%, #F7F3FF 100%);
    color: #333;
    padding: 5px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    justify-content: center;
}

.header img {
    height: 32px;
    margin-right: 10px;
}

.header h1 {
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 600;
    color: #2C2C2C;
}

/* ---------------------
    SPACER
----------------------*/
.spacer {
    height: 42px;
}

/* ---------------------
    WELCOME HEADER
----------------------*/
.welcome-header {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    color: rgb(22, 22, 22);
    padding: 0.35rem 3rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    margin-right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
    width: 100%;
}

.welcome-header-container {
    width: 100%;
    padding-right: 0;
}

.welcome-header-content {
    flex-grow: 1;
}

.welcome-header-content h1 {
    font-size: 1.4rem;
    margin: 0 0 0.15rem 0;
    line-height: 1.1;
    color: #252525;
}

.welcome-header-content p {
    font-size: 0.9rem;
    margin: 0 0 0.075rem 0;
    opacity: 0.9;
    color: #252525;
}

.welcome-header-date {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.125rem;
    color: #252525;
}

.welcome-header-icon {
    margin-left: 2rem;
    padding-right: 1.5rem;
}

.welcome-header-icon img {
    width: 100px;
    height: auto;
    display: block;
    border-radius: 25px;
}

/* ---------------------
    LOGIN CONTAINER
----------------------*/
#loginContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(51, 51, 51, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

#loginContainer img {
    display: block;
    margin: 0 auto 20px auto;
    width: 180px;
    height: 154px;
    max-width: 100%;
}

.g_id_signin {
    margin: 0 auto;
}

#appContent {
    display: none;
}

/* ---------------------
    USER PROFILE
----------------------*/
.user-profile {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

/* ---------------------
    LEFT NAVIGATION BAR
----------------------*/
.left-nav {
    position: fixed;
    left: 0;
    top: 42px;
    height: calc(100vh - 42px);
    background: #ffffff;
    border-right: 1px solid #e0e7ff;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(51, 51, 51, 0.1);
}

.left-nav.expanded {
    width: 250px;
}

.left-nav.collapsed {
    width: 60px;
}

.nav-toggle {
    position: relative;
    width: 32px;
    height: 24px;
    background: #252525;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: #404040;
    transform: scale(1.05);
}

.nav-toggle i {
    transition: transform 0.2s ease;
    transform: rotate(180deg); /* expanded indicator: ← */
}

/* When the nav is collapsed, show → (pointing to where it will expand) */
.nav-toggle.is-expanded i {
    transform: rotate(0deg);
}

.nav-header {
    padding: 40px 20px 20px 20px;
    border-bottom: 1px solid #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-header h3 {
    margin: 0;
    color: #252525;
    font-size: 1rem;
    font-weight: 600;
}

.left-nav.collapsed .nav-header h3 {
    display: none;
}

.left-nav.collapsed .nav-header {
    justify-content: center;
    padding: 40px 15px 20px 15px;
}

.nav-menu {
    padding: 20px 0;
    list-style: none;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: #f8f9ff;
    color: #252525;
    border-left-color: #252525;
}

.nav-link.active {
    background-color: #f0f0ff;
    color: #252525;
    border-left-color: #252525;
}

.nav-link i {
    font-size: 1.2rem;
    margin-right: 15px;
    min-width: 20px;
    text-align: center;
}

.nav-link span {
    font-weight: 500;
    white-space: nowrap;
}

.left-nav.collapsed .nav-link span {
    display: none;
}

.left-nav.collapsed .nav-link {
    padding: 15px;
    justify-content: center;
}

.left-nav.collapsed .nav-link i {
    margin-right: 0;
}

.nav-menu-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #e0e7ff;
    background: #fafbff;
    margin: 0;
}

.left-nav.collapsed .nav-menu-bottom {
    border-top: none;
}

.main-content-with-nav {
    margin-left: 250px;
    transition: margin-left 0.3s ease, padding-left 0.3s ease;
}

.main-content.collapsed {
    margin-left: 100px;
    padding-left: 0.5rem !important;
    padding-right: 3rem !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .left-nav {
        transform: translateX(-100%);
    }
    
    .left-nav.mobile-open {
        transform: translateX(0);
    }
    
    .main-content-with-nav {
        margin-left: 0;
    }
    
    .main-content-with-nav.collapsed {
        margin-left: 0;
    }
}

/* ---------------------
    LAYOUT
----------------------*/
.dashboard-layout {
    display: flex;
}

.main-content {
    flex-grow: 1;
}

.sidebar-right {
    width: 400px;
    flex-shrink: 0;
    border-radius: 12px;
    padding-right: 3rem;
}

/* ---------------------
    SIDEBAR
----------------------*/
.notebook-sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    color: #333;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.08);
}

.notebook-sidebar h4 {
    font-weight: bold;
    color: #333;
}

.notebook-item {
    cursor: pointer;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #F8F9FA;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e7ff;
}

.notebook-item span {
    flex: 1;
}

.notebook-item:hover {
    background-color: #E9F2FC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.1);
}

.notebook-item.active {
    background: linear-gradient(135deg, #cec8ff, #e7dbff);
    font-weight: bold;
    color: #333;
}

.notebook-item button {
    font-size: 12px;
    margin-left: 5px;
    color: #dc3545;
    background: none;
    border: none;
}

/* ---------------------
    CARD STYLING 
----------------------*/
.card {
    background: #ffffff !important;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e7ff;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(51, 51, 51, 0.12);
}

.card .card-body {
    position: relative;
    border-radius: 16px;
}

/* ---------------------
    BUTTONS
----------------------*/
.btn-primary {
    background-color: #4A90E2 !important;
    border-color: #4A90E2 !important;
    color: #ffffff !important;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #3A7BC8 !important;
    border-color: #3A7BC8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.3);
}

.btn-danger {
    background-color: #F2C7C7 !important;
    border-color: #F2C7C7 !important;
    color: #333 !important;
}

.btn-double {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.button-primary,
.button-primary:hover {
    background-color: #4A90E2;
    border-color: #4A90E2;
    color: white;
}

.button-secondary,
.button-secondary:hover {
    background: linear-gradient(135deg, #cec8ff, #e7dbff);
    color: #7A5CFF;
}

.button-secondary-outline {
    border-color: #cec8ff;
    color: #7A5CFF;
}

.button-secondary-outline:hover {
    border-color: #cec8ff;
    background-color: #cec8ff;
    color: #7A5CFF;
}

.button-secondary-two,
.button-secondary-two:hover {
    background-color: transparent;
    border-color: #cec8ff;
    color: #7A5CFF;
}

/* ---------------------
    FORM ELEMENTS
----------------------*/
.form-select {
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #333 !important;
    padding: 8px 12px !important;
    font-size: 1rem !important;
}

.form-select:focus {
    outline: none !important;
    box-shadow: 0 0 4px rgba(51, 51, 51, 0.5) !important;
    border-color: #D2BBFF !important;
}

.form-control:focus {
    border-color: #E0E0E5 !important;
    box-shadow: none !important;
}

/* ---------------------
    MODALS
----------------------*/
.modal-content {
    border-radius: 16px;
}

.modal-header,
.modal-footer {
    border: none;
}

/* ---------------------
    TABLES & PAGINATION
----------------------*/
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(51, 51, 51, 0.08);
}

.table thead {
    background: linear-gradient(90deg, #4A90E2, #3A7BC8);
    color: #ffffff;
}

.table thead th {
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 2px solid #3A7BC8;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
}

.table tbody tr:nth-child(even) {
    background-color: #f1f5fb;
}

.table tbody tr:hover {
    background-color: #e9f3ff;
    transform: scale(1.005);
    cursor: pointer;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #333;
}

.table tbody td:first-child {
    font-weight: 700;
    text-align: center;
    color: #7A5CFF;
}

.pagination {
    display: flex;
    list-style: none;
    padding-left: 0;
    border-radius: 0.25rem;
    gap: 0.25rem;
}

.page-item {
    display: inline;
}

.page-link {
    color: #6c757d;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    text-decoration: none;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.page-item.active .page-link {
    background-color: #7A5CFF;
    color: #fff;
    border-color: #7A5CFF;
}

.page-link:hover {
    background-color: #f1f1f1;
    color: #343a40;
}

/* ---------------------
    UPLOAD & FILE HANDLING
----------------------*/
.upload-zone {
    border: 2px dashed #4A90E2;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    background-color: #e9f2ff;
    border-color: #3A7BC8;
    cursor: pointer;
}

.upload-icon i {
    color: #4A90E2;
}

#selectedFile {
    font-size: 1rem;
}

/* ---------------------
    SLIDING TAB BAR
----------------------*/
.sliding-tab-container {
    width: 100%;
}

.sliding-tab-bar {
    position: relative;
    display: flex;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #e0e7ff;
    overflow: hidden;
}

.sliding-tab {
    position: relative;
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #666666;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.sliding-tab:hover {
    color: #7A5CFF;
}

.sliding-tab.active {
    color: #1e1e1e;
    font-weight: 600;
}

.sliding-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 8px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #cec8ff, #e7dbff);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.3);
}

.sliding-indicator[data-active="people"] {
    transform: translateX(100%);
    background: linear-gradient(135deg, #e7dbff, #cec8ff);
}

/* ---------------------
    ACCORDION & PLAYLIST
----------------------*/
.accordion-faq .accordion-button {
    background-color: white;
    color: black;
    font-weight: 500;
    box-shadow: none;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
}

.accordion-faq .accordion-button:not(.collapsed) {
    background-color: #E9F2FC;
    color: #2C3E50;
}

.accordion-faq .accordion-button::after {
    font-size: 1.25rem;
    color: #000;
    margin-left: auto;
    transition: transform 0.3s ease-in-out;
}

.accordion-faq .accordion-body {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: #444;
}

.accordion-faq .accordion-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 8px rgba(51, 51, 51, 0.1);
}

.toggle-btn {
    font-weight: bold;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 1;
    text-align: center;
}

/* ---------------------
    PROGRESS & SKELETON
----------------------*/
.progress-wrapper {
    display: flex;
    flex-direction: column;
}

.custom-progress {
    height: 20px;
    background-color: #7A5CFF;
    border-radius: 10px;
    overflow: hidden;
}

.custom-progress-bar {
    height: 100%;
    background-color: #28a745;
    transition: width 0.4s ease;
}

.skeleton-progress {
    height: 20px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { background-color: #e0e0e0; }
    50% { background-color: #d0d0d0; }
    100% { background-color: #e0e0e0; }
}

.progress-text {
    font-size: 12px;
    margin-top: 4px;
    color: #555;
}

/* ---------------------
    SEARCH FUNCTIONALITY
----------------------*/
.search-container {
    margin-bottom: 1rem;
}

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

.search-icon {
    position: absolute;
    left: 15px;
    color: #6c757d;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    padding-left: 45px;
    padding-right: 45px;
    border: 1px solid #dadada;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.05);
}

.search-input:focus {
    border-color: #7A5CFF;
    box-shadow: 0 4px 16px rgba(51, 51, 51, 0.15);
    outline: none;
}

.search-input::placeholder {
    color: #9aa0a6;
    font-style: italic;
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
}

.search-clear-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.search-clear-btn:focus {
    box-shadow: none;
    outline: none;
}

.search-highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(51, 51, 51, 0.1);
}

.search-results-info {
    background: #f8f9fa;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #6c757d;
}

.search-results-info .search-term {
    font-weight: 600;
    color: #7A5CFF;
}

/* Search result styling */
.notebook-item.search-result {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    border-left: 4px solid #7A5CFF;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.notebook-item.search-result:hover {
    background: linear-gradient(135deg, #f0f4ff, #e8f0ff);
    transform: translateX(4px);
}

.notebook-item.top-result {
    background: linear-gradient(135deg, #fff8f0, #fff4e8);
    border-left: 4px solid #ff9500;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.2);
}

.notebook-item.top-result:hover {
    background: linear-gradient(135deg, #fff4e8, #fff0e0);
    transform: translateX(4px);
}

.notebook-item.search-result .search-highlight {
    background: linear-gradient(135deg, #ffeb3b, #fff176);
    color: #333;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(51, 51, 51, 0.2);
}

/* Hidden items during search */
.notebook-item.search-hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

/* Search container state indicators */
.search-container.searching .search-input {
    border-color: #7A5CFF;
    box-shadow: 0 0 0 0.2rem rgba(122, 92, 255, 0.25);
    animation: searchPulse 1.5s ease-in-out infinite;
}

.search-container.searching .search-input::after {
    content: "🔍";
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.7;
    animation: searchSpin 1s linear infinite;
}

.search-container.has-results .search-input {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.search-container.no-results .search-input {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Search animation */
@keyframes searchPulse {
    0%, 100% {
        box-shadow: 0 0 0 0.2rem rgba(122, 92, 255, 0.25);
    }
    50% {
        box-shadow: 0 0 0 0.3rem rgba(122, 92, 255, 0.4);
    }
}

@keyframes searchSpin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Filtered state indicator */
.notebook-list.filtered::before {
    content: "🔍 Filtered Results";
    display: block;
    background: linear-gradient(135deg, #e8f0ff, #f0f4ff);
    color: #7A5CFF;
    padding: 8px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #d0e0ff;
}

/* ---------------------
    DROPDOWN OVERRIDES
----------------------*/
.accordion-dropdown-override {
    position: absolute !important;
    z-index: 99999 !important;
    overflow: visible !important;
    transform: none !important;
    max-height: none !important;
    max-width: none !important;
    clip: auto !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}

.accordion-body,
.accordion-header,
[class*="accordion"] {
    overflow: visible !important;
}

.dropdown {
    position: relative !important;
    overflow: visible !important;
}

/* ---------------------
    DRAG & DROP HANDLES
----------------------*/
.card-with-handle {
    position: relative;
    overflow: visible;
}

.card-with-handle::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -14px;
    width: 26px;
    background: #fdfdfd;
    border: 1px solid #e0e7ff;
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 2px 6px rgba(51, 51, 51, 0.08);
    pointer-events: none;
    z-index: 1;
}

.grip-handle {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-12px);
    width: 12px;
    height: 24px;
    cursor: grab;
    color: #9aa0a6;
    z-index: 2;
}

.grip-handle:active { 
    cursor: grabbing; 
}

.grip-handle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow:
        6px 0   0 currentColor,
        0   8px 0 currentColor,
        6px 8px 0 currentColor,
        0   16px 0 currentColor,
        6px 16px 0 currentColor;
}

/* Enhanced Card Styling */
.card-with-handle {
    transition: all 0.3s ease;
    border: 1px solid #e0e7ff;
}

.card-with-handle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.15);
}

.card-with-handle .card-body {
    padding: 1.25rem;
}

.card-with-handle .badge {
    font-size: 0.75rem;
    font-weight: 600;
}

.card-with-handle h6 {
    color: #333;
    font-weight: 600;
}

.content-preview {
    background: #f8f9fa;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.content-preview:hover {
    background: #f0f4ff;
    border-color: #7A5CFF;
}

/* Type Badge Styling */
.badge[style*="background: linear-gradient"] {
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Manage Button Styling */
.btn.button-secondary {
    transition: all 0.2s ease;
}

.btn.button-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.2);
}

/* AI Optimization Button Styling */
.btn.button-secondary[onclick*="optimizePromptWithAI"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.button-secondary[onclick*="optimizePromptWithAI"]:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.3);
}

.btn.button-secondary[onclick*="optimizePromptWithAI"]:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Quiz Content Styling */
#manageItemQuizContent .form-control {
    border: 1px solid #e0e7ff;
    transition: border-color 0.2s ease;
}

#manageItemQuizContent .form-control:focus {
    border-color: #7A5CFF;
    box-shadow: 0 0 0 0.2rem rgba(122, 92, 255, 0.25);
}

/* Prompt Content Styling */
#manageItemPromptContent .form-control {
    border: 1px solid #e0e7ff;
    transition: border-color 0.2s ease;
}

#manageItemPromptContent .form-control:focus {
    border-color: #7A5CFF;
    box-shadow: 0 0 0 0.2rem rgba(122, 92, 255, 0.25);
}

/* ---------------------
    CONTENT SECTIONS
----------------------*/
.content-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.08);
    margin-bottom: 2rem;
}

.overall-progress-content {
    text-align: center;
    background: linear-gradient(135deg, #F7F3FF, #FCEFE9, #FFE5C7);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(51, 51, 51, 0.08);
    transition: all 0.3s ease-in-out;
}

.notebook-playlist-group {
    background: #F5F5F7;
    border-radius: 20px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(51, 51, 51, 0.1);
}

.list-group-item.custom-group-list {
    background-color: #ffffffc7 !important;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid #e0e7ff;
    transition: all 0.2s ease-in-out;
}

.list-group-item.custom-group-list:hover {
    background-color: #f2f0ff !important;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.05);
}

.playlist-item {
    border-left: 4px solid #cec8ff;
    padding: 12px 18px;
    margin-bottom: 8px;
    background-color: #F8F9FA;
    border-radius: 0 6px 6px 0;
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.playlist-item:hover {
    background-color: #E9F2FC;
}

.playlist-item.completed {
    border-left-color: #28A745;
    background-color: #E6F4EA;
}

/* ---------------------
    CALENDAR SPECIFIC
----------------------*/
.calendar-container {
    max-width: 800px;
    max-height: 600px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(51, 51, 51, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: auto;
    background: white;
    margin: 2rem auto;
    padding: 2rem;
}

.calendar-container th {
    color: #7A5CFF;
}

.calendar-container td {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #e5e9ff;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    color: #4a4a6a;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.calendar-container th,
.calendar-container td {
    height: 40px;
    width: 40px;
    padding: 8px;
    font-size: 16px;
    text-align: center;
    vertical-align: middle;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.calendar-container td.today {
    background-color: transparent;
    color: #333;
    font-weight: bold;
    position: relative;
    text-align: center;
    vertical-align: middle;
}

.calendar-container td.today::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background-color: #8b6fff;
    border-radius: 50%;
    z-index: 1;
}

.calendar-container td.today span {
    position: relative;
    z-index: 2;
    color: white;
}

.calendar-container td:hover {
    background-color: #eee8ff;
    cursor: pointer;
}

#prevMonth,
#nextMonth {
    background-color: white;
    border: 1px solid #ccc;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#prevMonth:hover,
#nextMonth:hover {
    background-color: #8b6fff;
    color: white;
    cursor: pointer;
}

#prevMonth:active,
#nextMonth:active {
    background-color: #6a52cc;
    color: white;
}

.page-title {
    text-align: center;
    color: #7A5CFF;
    margin: 2rem 0;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Due Date Badge on Learning Experience Cards */

.due-date-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(51, 51, 51, 0.15);
    transition: all 0.2s ease;
    min-width: fit-content;
}

.due-date-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(51, 51, 51, 0.2);
}

.due-date-badge.overdue {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.due-date-badge.due-today {
    background: linear-gradient(135deg, #ffc107, #ffdb4d);
    color: #333;
}

.due-date-badge.due-soon {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

/* Due Items Section */
.due-items-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(51, 51, 51, 0.08);
    border: 1px solid #e0e7ff;
    overflow: hidden;
}

.due-items-header {
    background: linear-gradient(135deg, #7A5CFF, #9B7CFF);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.due-items-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.due-items-actions {
    display: flex;
    gap: 0.5rem;
}

.due-items-content {
    padding: 1.5rem;
    min-height: 200px;
}

.due-items-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.due-items-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.due-item-card {
    background: #f8f9fa;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.due-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.1);
    border-color: #7A5CFF;
}

.due-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.due-item-type .badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

.due-item-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.due-item-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.due-item-notebook,
.due-item-group {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.due-item-notebook i,
.due-item-group i {
    margin-right: 0.5rem;
    color: #7A5CFF;
}

/* Calendar Date Selection */
.calendar-table td {
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-table td:hover {
    background-color: #f0f4ff;
    transform: scale(1.05);
}

.calendar-table td.selected {
    background-color: #7A5CFF !important;
    color: white !important;
    border-radius: 8px;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(122, 92, 255, 0.3);
}

.calendar-table td.has-due-items {
    position: relative;
}

.calendar-table td.has-due-items::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #ff6b6b;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(51, 51, 51, 0.3);
}

.back-button {
    position: fixed;
    top: 80px;
    left: 20px;
    background: #7A5CFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    background: #6a52cc;
}

/* ---------------------
    CREATE PAGE SPECIFIC
----------------------*/
.content-placeholder {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.08);
    border: 1px solid #e0e7ff;
    margin: 2rem auto;
    max-width: 600px;
}

.placeholder-icon {
    font-size: 4rem;
    color: #7A5CFF;
    margin-bottom: 1rem;
}

.placeholder-text {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ---------------------
    FEEDBACK FORM
----------------------*/
.feedback-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.08);
    border: 1px solid #e0e7ff;
    margin: 2rem auto;
    max-width: 600px;
}

.anonymous-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #7A5CFF;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(26px);
}

.toggle-label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.toggle-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.email-field {
    transition: all 0.3s ease;
}

.email-field.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.email-field.disabled input {
    background-color: #dfdfdf;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7A5CFF;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #7A5CFF;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #6a52cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.feedback-header {
    text-align: center;
    margin-bottom: 2rem;
}

.feedback-header h2 {
    color: #7A5CFF;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feedback-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* ---------------------
    UTILITY CLASSES
----------------------*/
.select-custom-border {
    background-color: #F0F0F0;
    color: white;
    border: 1px solid #7A5CFF !important;
}

.select-custom-border-text {
    background-color: #F0F0F0;
    color: black;
}

.remove-btn {
    background-color: #cc3129;
    color: white;
}

.remove-btn:hover {
    background-color: #cc3129;
    color: white;
}

.hover-dropdown {
    --bs-dropdown-link-hover-bg: #EDEBFA;
}

.save-message {
    display: none;
    background: #7A5CFF;
    color: white;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 15px;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    right: 20px;
    top: 10px;
    opacity: 0;
}

/* ---------------------
    NAVIGATION BUTTONS
----------------------*/
.navigation-buttons {
    margin-top: 0.75rem;
}

.nav-btn {
    background: linear-gradient(135deg, #f8f9ff, #e7dbff);
    border: 1px solid #e0e7ff;
    color: #7A5CFF;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #7A5CFF, #9B7CFF);
    color: white;
    border-color: #7A5CFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(122, 92, 255, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(122, 92, 255, 0.2);
}

.nav-btn:disabled {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-btn:disabled:hover {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* ---------------------
    ADD CARD STYLING
----------------------*/
.add-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.add-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 92, 255, 0.15);
    border-color: #7A5CFF !important;
    background: #f0f4ff !important;
}

.add-card:hover .bi-plus-circle {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.add-card .card-body {
    transition: all 0.2s ease;
}

.add-card:hover .card-body h6 {
    color: #6a52cc !important;
}

.add-card:hover .card-body p {
    color: #7A5CFF !important;
}

/* ---------------------
    ADD PLAYLIST GROUP OUTLINE STYLING
-----------------------*/
.add-playlist-group-outline {
    transition: all 0.3s ease;
    cursor: pointer;
}

.add-playlist-group-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 92, 255, 0.15);
    border-color: #7A5CFF !important;
    background: #f0f4ff !important;
}

.add-playlist-group-outline:hover .bi-plus-circle {
    transform: scale(1.1);
    transition: transform 0.2s ease;
    color: #6a52cc !important;
}

.add-playlist-group-outline:hover h6 {
    color: #6a52cc !important;
}

.add-playlist-group-outline:hover p {
    color: #7A5CFF !important;
}

/* ---------------------
    TYPOGRAPHY & MISC
----------------------*/
h1, h2, h3 {
    font-weight: 600;
    color: #2C2C2C;
}

p, li, button, input {
    font-weight: 400;
    color: #2C2C2C;
}

input::placeholder {
    color: #AAAAAA !important;
}

.ql-code-block {
    white-space: pre-wrap !important;
}

.custom-header {
    background-color: #EDEBFA;
    color: white;
}

.custom-header h3 {
    color: #666666;
    font-weight: 600;
}