:root {
    --font-color: #fdfeffc4;
    --background-theme: #313541;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 0px;
}

body {
    margin: 0;
    font-family: open sans,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: left;
    background-color: #2a354b;
}

.night-center-boxBg {
    background: #404655 !important;
}

.night-textColor-2 {
    color: var(--font-color) !important;
}

.night-outline-line {
    box-sizing: border-box;
    border-right: 1px solid rgb(191, 204, 214);
    bottom: 0px;
    transition: all 100ms ease-in 0s;
    top: 0px;
    width: calc(7px);
    cursor: pointer;
    z-index: 10;
    border-top-color: rgb(191, 204, 214);
    border-bottom-color: rgb(191, 204, 214);
    border-left-color: rgb(191, 204, 214);
    position: absolute;
    left: -5.5px;
}

div.content-box.outline-line:hover {
    border-right: 2px solid #9FA9BA !important;
    cursor: pointer !important;
}

hulu-text-font {
    font-size: 0.95rem;
    line-height: 1.3rem;
}

.overflow-scroll-new {
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
}

::-webkit-scrollbar { display:none }

.text-center {
    text-align: center!important;
}

.main-container {
    max-width: 1140px;
}

@media only screen and (min-width: 700px) {
    .main-title {
        font-size: 3rem;
        font-weight: 700;
        line-height: 1.2;
        word-wrap: break-word;
    }
    .head-bar-pl {
        padding-left: 2rem;
    }
}

@media only screen and (max-width: 600px) {
    .main-title {
        font-size: 11.4vw;
        padding: 30px;
    }
    .main-hulu-name {
        display: none;
    }
    .head-bar-pl {
        padding-left: 2rem;
    }
    .mb-no-show {
        display: none;
    }
}

.link-style {
    color: #9644fc
}

.link-titlt-style {
    color: #9644fc
}

.inner-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1270px;
    display: flex;
    align-items: center;
}

.td-navbar {
    background: rgb(46 49 54);
    min-height: 50px;
    margin: 0;
    z-index: 32;
    position: fixed;
    top: 0;
    width: 100%;
}

.btn-login {
    border: 1px solid rgba(255,255,255,.5);
    background: 0 0;
}

.btn-new  {
    width: 86px;
    height: 40px;
    border-radius: 3px;
    margin: 0 0 0 24px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
}

.nav-link {
    text-transform: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.advantages {
    max-width: 1370px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: -230px auto 0;
}

.advantage-card {
    width: 282px;
    height: 348px;
    margin: 0 0 40px;
    background: #fff;
    box-shadow: 0 2px 36px rgba(16,16,16,.1);
    border-radius: 8px;
    z-index: 1;
}

.db-card {
    width: 282px;
    height: 150px;
    color: black;
    margin: 0 0 40px;
    background: #fff;
    box-shadow: 0 2px 36px rgba(16,16,16,.1);
    border-radius: 8px;
    z-index: 1;
}

.db-card-big {
    width: 600px;
    height: 300px;
    color: black;
    margin: 0 0 40px;
    background: #fff;
    box-shadow: 0 2px 36px rgba(16,16,16,.1);
    border-radius: 8px;
    z-index: 1;
}

.card-title {
    margin: 15px 0;
    font-size: 24px;
    font-weight: 600;
    height: 80px;
    line-height: 30px;
    color: black;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.card-desc {
    font-size: 14px;
    font-weight: 400;
    width: 234px;
    line-height: 18px;
    text-align: center;
    color: #8a8ea0;
}

.submain-title {
    font-size: 28px;
    font-family: Outfit,rubik medium,OpenSans,sans-serif,helvetica neue;
    font-weight: 700;
    line-height: 40px;
    color: #fff;
    opacity: .5;
}

.td-overlay{
    position: absolute;
    top: 600px;
    right: 0;
    bottom: 0;
    left: 0;
}

.sub-title2 {
    color: black;
    font-size: 46px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 32px;
    line-height: 58px;
}

.img-class {
    width: 100%;
}

/* ==================== Outline Editor Styles ==================== */

.nav-item {
    position: relative;
}

.expand-icon {
    user-select: none;
    font-size: 8px;
    color: #666;
    transition: transform 0.15s ease;
}

.expand-icon.expanded {
    transform: rotate(90deg);
}

.expand-icon.collapsed {
    transform: rotate(0deg);
}

.has-children:hover {
    background: rgba(100, 100, 100, 0.2);
    border-radius: 50%;
}

.nav-content {
    cursor: text;
    min-width: 100px;
    display: inline-block;
}

.nav-content:hover {
    background: rgba(100, 100, 100, 0.1);
    border-radius: 3px;
}

.nav-editor-input {
    border: 1px solid #4a90d9 !important;
    border-radius: 3px !important;
    padding: 2px 6px !important;
    outline: none !important;
    width: calc(100% - 50px) !important;
    min-width: 200px !important;
    font-size: inherit !important;
    font-family: inherit !important;
    background: #2a2f3a !important;
    color: #fdfeffc4 !important;
}

.nav-editor-input:focus {
    border-color: #2e7ad1 !important;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2) !important;
    background: #2a2f3a !important;
    color: #fdfeffc4 !important;
}

.night-textColor-2 .nav-editor-input,
.night-center-boxBg .nav-editor-input {
    background: #2a2f3a !important;
    color: #fdfeffc4 !important;
    border-color: #4a90d9 !important;
}

.outline-line:hover {
    border-right: 2px solid #4a90d9 !important;
}

.content-box {
    transition: max-height 0.2s ease-out;
    overflow: hidden;
}

.nav-item .tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    z-index: 1000;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
}

.nav-item:hover .tooltip {
    visibility: visible;
}

.nav-actions {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    gap: 5px;
}

.nav-item:hover .nav-actions {
    display: flex;
}

.nav-action-btn {
    background: rgba(100, 100, 100, 0.3);
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
}

.nav-action-btn:hover {
    background: rgba(100, 100, 100, 0.5);
}

/* ==================== Page Layout ==================== */

.page-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ==================== Sidebar Styles ==================== */

.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: #2e3340;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-toggle-btn {
    position: fixed;
    left: var(--sidebar-width);
    top: 16px;
    width: 32px;
    height: 32px;
    background: #3d4455;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    z-index: 101;
    transition: left 0.3s ease, background 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: #4a5568;
}

.sidebar-toggle-btn.collapsed {
    left: 0;
    border-radius: 0 6px 6px 0;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sidebar-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.sidebar-item.active {
    background: rgba(74, 144, 217, 0.2);
    border-left: 3px solid #4a90d9;
}

.sidebar-item-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-item-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-note-btn {
    margin: 12px 16px;
    padding: 10px 16px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.new-note-btn:hover {
    background: #3d7ec7;
}

.new-note-btn-icon {
    margin-right: 8px;
    font-size: 16px;
}

.note-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.note-list-item {
    padding: 8px 16px 8px 32px;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.note-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.note-list-item.active {
    background: rgba(74, 144, 217, 0.15);
    opacity: 1;
}

.sidebar-section-title {
    margin-top: 16px;
    padding: 8px 16px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== Main Content ==================== */

.main-content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    overflow-y: auto;
}

.main-content-area.sidebar-collapsed {
    margin-left: 0;
}

/* ==================== Note Title Editor ==================== */

.note-title-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 8px;
}

.note-title {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.note-title:hover {
    background: rgba(255, 255, 255, 0.1);
}

.note-title-input {
    font-size: 1.5rem;
    font-weight: bold;
    background: #2a2f3a !important;
    color: #fdfeffc4 !important;
    border: 1px solid #4a90d9 !important;
    border-radius: 4px;
    padding: 4px 8px;
    outline: none;
    width: 100%;
    max-width: 600px;
}

.note-title-input:focus {
    border-color: #2e7ad1 !important;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
}

/* ==================== All Notes Page ==================== */

.note-card {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.note-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(74, 144, 217, 0.3);
    transform: translateY(-1px);
}

.note-card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.note-card-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #3d7ec7;
}

.pagination-btn:disabled {
    background: #3d4455;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-num {
    padding: 8px 12px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-num:hover {
    background: rgba(255,255,255,0.1);
}

.pagination-num.active {
    background: #4a90d9;
    border-color: #4a90d9;
}

/* ==================== Mobile Responsive ==================== */

@media only screen and (max-width: 768px) {
    .left-sidebar {
        width: 100%;
    }
    
    .sidebar-toggle-btn {
        left: 0;
        top: 16px;
        border-radius: 0 6px 6px 0;
    }
    
    .sidebar-toggle-btn:not(.collapsed) {
        left: calc(100% - 48px);
    }
    
    .main-content-area {
        margin-left: 0;
    }
    
    .left-sidebar:not(.collapsed) ~ .main-content-area {
        display: none;
    }
    
    .note-card {
        padding: 12px 16px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
