* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px; /* Reduced from 60px */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dark-mode .header {
    background-color: rgba(26, 26, 26, 0.95);
}

/* App header left section */
.app-header-left {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* App icon styling */
.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.app-icon a:hover {
    transform: scale(1.1);
}

.app-icon-img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.app-icon-img:hover {
    opacity: 1;
}

.dark-mode .app-icon-img {
    filter: brightness(0) invert(1);
}

/* Filename input styling */
.filename-container {
    display: flex;
    align-items: center;
}

.filename-input {
    background-color: transparent;
    border: none;
    outline: none;
    color: #333333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 120px;
    max-width: 200px;
}

.filename-input:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.filename-input:focus {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.dark-mode .filename-input {
    color: #ffffff;
}

.dark-mode .filename-input:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .filename-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.header-icons {
    position: absolute;
    top: 50%;
    right: 12px; /* Reduced from 15px */
    transform: translateY(-50%);
    display: flex;
    gap: 6px; /* Reduced from 8px */
    align-items: center;
}

.header-link {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-link:hover {
    color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
}

.dark-mode .header-link {
    color: #aaaaaa;
}

.dark-mode .header-link:hover {
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

/* Word count styling */

.icon-btn {
    width: 28px; /* Reduced from 32px */
    height: 28px; /* Reduced from 32px */
    border: none;
    border-radius: 5px; /* Reduced from 6px */
    background-color: rgba(0, 0, 0, 0.1);
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* For sync indicator positioning */
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-btn svg {
    width: 14px; /* Reduced from 16px */
    height: 14px; /* Reduced from 16px */
}

/* Dark mode icon button styles */
.dark-mode .icon-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

/* Theme toggle button special styling */
#themeToggleBtn {
    background-color: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
}

#themeToggleBtn:hover {
    background-color: rgba(74, 144, 226, 0.25);
}

.dark-mode #themeToggleBtn {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.dark-mode #themeToggleBtn:hover {
    background-color: rgba(255, 193, 7, 0.25);
}


.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding-top: 45px; /* Account for header height only */
    transition: margin-left 0.3s ease;
}

.container.sidebar-open {
    margin-right: 300px;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        height: 32px; /* Even more compact on tablets */
    }
    
    .app-header-left {
        left: 10px;
        gap: 6px;
    }
    
    .app-icon-img {
        width: 18px;
        height: 18px;
    }
    
    .filename-input {
        font-size: 12px;
        min-width: 100px;
        max-width: 150px;
        padding: 3px 6px;
    }
    
    .header-icons {
        gap: 6px;
        right: 12px;
    }
    
    .icon-btn {
        width: 26px;
        height: 26px;
    }
    
    .icon-btn svg {
        width: 13px;
        height: 13px;
    }
    
    .container {
        padding-top: 32px;
    }
    
    /* Toolbar responsive adjustments */
    .editor-toolbar {
        top: 32px;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .toolbar-btn {
        width: 28px;
        height: 28px;
    }
    
    .toolbar-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .toolbar-separator {
        height: 20px;
        margin: 0 6px;
    }
    
    .container.toolbar-open {
        padding-top: 70px; /* 32px header + 38px toolbar */
    }
}

@media (max-width: 480px) {
    .header {
        height: 30px; /* Most compact on mobile */
    }
    
    .app-header-left {
        left: 8px;
        gap: 4px;
    }
    
    .app-icon-img {
        width: 16px;
        height: 16px;
    }
    
    .filename-input {
        font-size: 11px;
        min-width: 80px;
        max-width: 120px;
        padding: 2px 4px;
    }
    
    .header-icons {
        gap: 4px;
        right: 8px;
    }
    
    .icon-btn {
        width: 22px;
        height: 22px;
    }
    
    .icon-btn svg {
        width: 11px;
        height: 11px;
    }
    
    .container {
        padding-top: 30px;
    }
    
    /* Toolbar mobile adjustments */
    .editor-toolbar {
        top: 30px;
        padding: 4px 8px;
        gap: 4px;
        flex-wrap: wrap;
        max-height: 120px;
        overflow-y: auto;
    }
    
    .toolbar-btn {
        width: 24px;
        height: 24px;
    }
    
    .toolbar-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .toolbar-separator {
        height: 16px;
        margin: 0 4px;
    }
    
    .container.toolbar-open {
        padding-top: 60px; /* 30px header + 30px toolbar */
    }
}



/* Editor Toolbar */
.editor-toolbar {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark-mode .editor-toolbar {
    background-color: rgba(26, 26, 26, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0 8px;
}

.dark-mode .toolbar-separator {
    background-color: rgba(255, 255, 255, 0.2);
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.toolbar-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.toolbar-btn:active {
    transform: translateY(0);
    background-color: rgba(0, 0, 0, 0.15);
}

.toolbar-btn.active {
    background-color: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
}

.toolbar-btn.active:hover {
    background-color: rgba(74, 144, 226, 0.25);
}

.dark-mode .toolbar-btn {
    color: #ffffff;
}

.dark-mode .toolbar-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .toolbar-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .toolbar-btn.active {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.dark-mode .toolbar-btn.active:hover {
    background-color: rgba(255, 193, 7, 0.25);
}

.toolbar-btn svg {
    width: 16px;
    height: 16px;
}

/* Toolbar toggle button special styling */
#toolbarToggleBtn {
    background-color: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
}

#toolbarToggleBtn:hover {
    background-color: rgba(74, 144, 226, 0.25);
}

#toolbarToggleBtn.active {
    background-color: rgba(74, 144, 226, 0.3);
}

.dark-mode #toolbarToggleBtn {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.dark-mode #toolbarToggleBtn:hover {
    background-color: rgba(255, 193, 7, 0.25);
}

.dark-mode #toolbarToggleBtn.active {
    background-color: rgba(255, 193, 7, 0.3);
}

/* Adjust container padding when toolbar is visible */
.container.toolbar-open {
    padding-top: 85px; /* 45px header + 40px toolbar */
}

/* Text editor */
.editor-container {
    width: 100%;
    height: 100%;
    padding: 15px;
    padding-top: 25px;
    background-color: transparent;
}

.rich-text-editor {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    background-color: transparent !important;
    color: #333333;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
    transition: color 0.3s ease;
    position: relative;
    min-height: 100%;
    /* Ensure no background color is applied */
    background: transparent !important;
}

.dark-mode .rich-text-editor {
    color: #ffffff !important;
    background-color: transparent !important;
    background: transparent !important;
}

.rich-text-editor:empty:before {
    content: attr(data-placeholder);
    color: #999;
    opacity: 0.7;
    pointer-events: none;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    position: absolute;
    top: 0;
    left: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: color 0.3s ease;
    z-index: 1;
    display: block;
}

.dark-mode .rich-text-editor:empty:before {
    color: #666;
    transition: color 0.3s ease;
}

/* Ensure placeholder is always visible when editor is empty */
.rich-text-editor[data-placeholder]:empty:before {
    content: attr(data-placeholder) !important;
    color: #999 !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    font-size: 20px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    transition: color 0.3s ease !important;
    z-index: 1 !important;
    display: block !important;
}

.dark-mode .rich-text-editor[data-placeholder]:empty:before {
    color: #666 !important;
}

/* Rich text formatting styles - Light mode */
.rich-text-editor strong,
.rich-text-editor b {
    font-weight: bold;
    color: #333333 !important;
    background-color: transparent !important;
}

.rich-text-editor em,
.rich-text-editor i {
    font-style: italic;
    color: #333333 !important;
    background-color: transparent !important;
}

.rich-text-editor u {
    text-decoration: underline;
    color: #333333 !important;
    background-color: transparent !important;
}

.rich-text-editor a {
    color: #0066cc !important;
    text-decoration: underline;
    cursor: pointer;
    background-color: transparent !important;
}

.rich-text-editor a:hover {
    color: #0052a3 !important;
}

/* List styles - Light mode */
.rich-text-editor ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #333333 !important;
    background-color: transparent !important;
}

.rich-text-editor ol {
    list-style-type: decimal;
    margin-left: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #333333 !important;
    background-color: transparent !important;
}

.rich-text-editor li {
    margin-bottom: 4px;
    color: #333333 !important;
    background-color: transparent !important;
}

.rich-text-editor ul ul {
    list-style-type: circle;
    margin-left: 20px;
}

.rich-text-editor ul ul ul {
    list-style-type: square;
}

.rich-text-editor ol ol {
    list-style-type: lower-alpha;
}

.rich-text-editor ol ol ol {
    list-style-type: lower-roman;
}

/* Rich text formatting styles - Dark mode */
.dark-mode .rich-text-editor strong,
.dark-mode .rich-text-editor b {
    color: #ffffff !important;
    background-color: transparent !important;
}

.dark-mode .rich-text-editor em,
.dark-mode .rich-text-editor i {
    color: #ffffff !important;
    background-color: transparent !important;
}

.dark-mode .rich-text-editor u {
    color: #ffffff !important;
    background-color: transparent !important;
}

.dark-mode .rich-text-editor a {
    color: #66b3ff !important;
    background-color: transparent !important;
}

.dark-mode .rich-text-editor a:hover {
    color: #99ccff !important;
}

/* List styles - Dark mode */
.dark-mode .rich-text-editor ul {
    color: #ffffff !important;
    background-color: transparent !important;
}

.dark-mode .rich-text-editor ol {
    color: #ffffff !important;
    background-color: transparent !important;
}

.dark-mode .rich-text-editor li {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Ensure all text elements inherit proper colors */
.rich-text-editor p,
.rich-text-editor div,
.rich-text-editor span,
.rich-text-editor h1,
.rich-text-editor h2,
.rich-text-editor h3,
.rich-text-editor h4,
.rich-text-editor h5,
.rich-text-editor h6,
.rich-text-editor code,
.rich-text-editor pre,
.rich-text-editor blockquote {
    color: #333333 !important;
    background-color: transparent !important;
    transition: color 0.3s ease;
}

/* Additional list styling for better compatibility */
.rich-text-editor ul,
.rich-text-editor ol {
    padding-left: 0;
    margin-left: 20px;
}

.rich-text-editor li {
    display: list-item;
    list-style-position: outside;
}

/* Ensure list items are properly styled */
.rich-text-editor ul li {
    list-style-type: disc;
}

.rich-text-editor ol li {
    list-style-type: decimal;
}

/* Nested list styling */
.rich-text-editor ul ul li {
    list-style-type: circle;
}

.rich-text-editor ul ul ul li {
    list-style-type: square;
}

.rich-text-editor ol ol li {
    list-style-type: lower-alpha;
}

.rich-text-editor ol ol ol li {
    list-style-type: lower-roman;
}

.dark-mode .rich-text-editor p,
.dark-mode .rich-text-editor div,
.dark-mode .rich-text-editor span,
.dark-mode .rich-text-editor h1,
.dark-mode .rich-text-editor h2,
.dark-mode .rich-text-editor h3,
.dark-mode .rich-text-editor h4,
.dark-mode .rich-text-editor h5,
.dark-mode .rich-text-editor h6,
.dark-mode .rich-text-editor code,
.dark-mode .rich-text-editor pre,
.dark-mode .rich-text-editor blockquote {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Override any inline styles that might interfere */
.rich-text-editor [style*="color"] {
    color: #333333 !important;
    background-color: transparent !important;
}

.dark-mode .rich-text-editor [style*="color"] {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Ensure text selection maintains proper contrast */
.rich-text-editor::selection {
    background-color: #4a90e2;
    color: #ffffff;
}

.dark-mode .rich-text-editor::selection {
    background-color: #ffc107;
    color: #000000;
}

/* Ensure all elements have transparent background */
.rich-text-editor * {
    background-color: transparent !important;
    background: transparent !important;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    max-height: 80vh;
    overflow-y: auto;
}

/* Make all text elements in modal non-selectable */
.modal-content * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.dark-mode .modal-content {
    background-color: #333;
    color: #fff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.dark-mode .close:hover {
    color: #fff;
}

.modal h2 {
    margin-bottom: 20px;
    color: #333;
}

.dark-mode .modal h2 {
    color: #fff;
}

.modal ul {
    margin-left: 20px;
    margin-top: 10px;
}

.modal li {
    margin-bottom: 8px;
}

/* Search modal styles */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.search-input-group label {
    font-weight: 500;
    color: #333;
}

.dark-mode .search-input-group label {
    color: #fff;
}

.search-input-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.2s ease;
}

.search-input-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.dark-mode .search-input-group input {
    background-color: #444;
    border-color: #666;
    color: #fff;
}

.dark-mode .search-input-group input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.search-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #4a90e2;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #357abd;
}

.search-btn:active {
    transform: translateY(1px);
}

.search-results {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    min-height: 20px;
}

.dark-mode .search-results {
    background-color: #333;
    color: #fff;
}

/* Auto-save indicator */
/* Sync indicator dot in cloud icon */
.sync-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #4a90e2;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 10;
}

.sync-indicator.show {
    opacity: 1;
    transform: scale(1);
}

.sync-indicator.syncing {
    background-color: #ffc107;
    animation: pulse 1s infinite;
}

.sync-indicator.success {
    background-color: #28a745;
}

.sync-indicator.error {
    background-color: #dc3545;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* User Avatar */
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #4a90e2;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: #357abd;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Dark mode avatar */
.dark-mode .user-avatar {
    border-color: #5a9fd4;
    background-color: #333;
}

.dark-mode .user-avatar:hover {
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(90, 159, 212, 0.3);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 45px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 45px);
    background-color: #f8f9fa;
    border-left: 1px solid #e9ecef;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    right: 0;
}

.dark-mode .sidebar {
    background: linear-gradient(180deg, #1e1e1e 0%, #1a1a1a 100%);
    border-left-color: #333333;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
}

.dark-mode .sidebar-header {
    background-color: #252525;
    border-bottom-color: #333333;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.dark-mode .sidebar-header h3 {
    color: #ffffff;
}

.close-sidebar-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-sidebar-btn:hover {
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.dark-mode .close-sidebar-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode .close-sidebar-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.close-sidebar-btn svg {
    width: 16px;
    height: 16px;
}

.add-notes-section {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.dark-mode .add-notes-section {
    border-bottom-color: #333333;
    background-color: #1e1e1e;
}

.add-notes-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background-color: #4a90e2;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.add-notes-btn:hover {
    background-color: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.add-notes-btn:active {
    transform: translateY(0);
}

.notes-list {
    padding: 10px 0;
}

.note-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    position: relative;
}

.note-item:hover {
    background-color: #f0f0f0;
}

.note-item.active {
    background-color: #e3f2fd;
    border-left: 3px solid #4a90e2;
}

.dark-mode .note-item {
    border-bottom-color: #333333;
}

.dark-mode .note-item:hover {
    background-color: #2a2a2a;
}

.dark-mode .note-item.active {
    background-color: #2d3748;
    border-left-color: #ffc107;
}

.note-content {
    flex: 1;
    min-width: 0;
}

.note-title {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .note-title {
    color: #ffffff;
}

.note-preview {
    font-size: 12px;
    color: #666666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .note-preview {
    color: #aaaaaa;
}

.note-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.note-item:hover .note-actions {
    opacity: 1;
}

.note-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.note-action-btn:hover {
    background-color: #e0e0e0;
    color: #333333;
}

.note-action-btn.delete:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

.dark-mode .note-action-btn {
    color: #888888;
}

.dark-mode .note-action-btn:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

.dark-mode .note-action-btn.delete:hover {
    background-color: #4a1a1a;
    color: #ff6b6b;
}

.note-action-btn svg {
    width: 14px;
    height: 14px;
}

/* Cloud Sync Modal Styles */

.cloud-sync-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sync-status {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 14px;
    font-weight: 500;
}

.dark-mode .status-indicator {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.status-indicator.connected {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.dark-mode .status-indicator.connected {
    background-color: #1e3a1e;
    border-color: #2d5a2d;
    color: #90ee90;
}

.status-indicator svg {
    width: 16px;
    height: 16px;
}

.sync-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sync-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.sync-btn svg {
    width: 18px;
    height: 18px;
}

.google-drive-btn {
    background-color: #4285f4;
    color: white;
}

.google-drive-btn:hover {
    background-color: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.sync-up-btn {
    background-color: #28a745;
    color: white;
}

.sync-up-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.sync-down-btn {
    background-color: #17a2b8;
    color: white;
}

.sync-down-btn:hover {
    background-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.sync-current-btn {
    background-color: #6f42c1;
    color: white;
}

.sync-current-btn:hover {
    background-color: #5a32a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-content {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    white-space: pre-line;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.disconnect-btn {
    background-color: #dc3545;
    color: white;
}

.disconnect-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.sync-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.sync-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.dark-mode .sync-info {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.sync-info p {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.sync-info ul {
    margin: 0;
    padding-left: 20px;
}

.sync-info li {
    margin-bottom: 6px;
}

/* Loading states */
.sync-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.sync-btn.loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Page-specific styles for About, Privacy Policy, and Terms pages */
.page-container {
    width: 100%;
    height: 100%;
    padding: 20px;
    padding-top: 30px;
    background-color: transparent;
    overflow-y: auto;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dark-mode .page-title {
    color: #ffffff;
}

/* Hero section for About, Privacy, Terms pages */
.page-container .hero-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dark-mode .page-container .hero-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(255, 193, 7, 0.15) 100%);
    border-color: rgba(74, 144, 226, 0.3);
}

.page-container .hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #4a90e2 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .page-container .hero-section h1 {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.page-container .hero-subtitle {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: center;
}

.dark-mode .page-container .hero-subtitle {
    color: #aaaaaa;
}

.version-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.version-badge {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.last-updated {
    color: #888888;
    font-size: 0.9rem;
    font-style: italic;
}

.dark-mode .last-updated {
    color: #666666;
}

.content-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dark-mode .content-section {
    background-color: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

.dark-mode .content-section h2 {
    color: #ffffff;
    border-bottom-color: #ffc107;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a90e2;
    margin: 25px 0 15px 0;
}

.dark-mode .content-section h3 {
    color: #ffc107;
}

.content-section p {
    margin-bottom: 16px;
    color: #555555;
    font-size: 1rem;
}

.dark-mode .content-section p {
    color: #cccccc;
}

.content-section ul, .content-section ol {
    margin: 16px 0;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 8px;
    color: #555555;
}

.dark-mode .content-section li {
    color: #cccccc;
}

.content-section a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.content-section a:hover {
    color: #357abd;
    text-decoration: underline;
}

.dark-mode .content-section a {
    color: #ffc107;
}

.dark-mode .content-section a:hover {
    color: #ffb300;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
}

.dark-mode .feature-card {
    background-color: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 193, 7, 0.2);
}

.dark-mode .feature-card:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: white;
}

.dark-mode .feature-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.dark-mode .feature-card h3 {
    color: #ffffff;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

.dark-mode .feature-card p {
    color: #aaaaaa;
}

/* Keyboard Shortcuts */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.dark-mode .shortcut-item {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

kbd {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #495057;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    white-space: nowrap;
}

.dark-mode kbd {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.shortcut-item span {
    color: #555555;
    font-weight: 500;
}

.dark-mode .shortcut-item span {
    color: #cccccc;
}

/* Browser Compatibility */
.browser-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.browser-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.browser-item:hover {
    background-color: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
}

.dark-mode .browser-item {
    background-color: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .browser-item:hover {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

.browser-item svg {
    width: 20px;
    height: 20px;
    color: #4a90e2;
}

.dark-mode .browser-item svg {
    color: #ffc107;
}

.browser-item span {
    color: #555555;
    font-weight: 500;
}

.dark-mode .browser-item span {
    color: #cccccc;
}

/* Footer Section */
.footer-section {
    margin-top: 60px;
    padding: 30px;
    text-align: center;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.dark-mode .footer-section {
    background-color: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    background-color: rgba(74, 144, 226, 0.1);
    text-decoration: none;
}

.dark-mode .footer-links a {
    color: #ffc107;
}

.dark-mode .footer-links a:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

.footer-text {
    color: #888888;
    font-size: 0.9rem;
    margin: 0;
}

.dark-mode .footer-text {
    color: #666666;
}

/* Responsive adjustments for pages */
@media (max-width: 768px) {
    .page-container {
        padding: 15px;
        padding-top: 25px;
    }
    
    .page-container .hero-section {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .page-container .hero-section h1 {
        font-size: 2rem;
    }
    
    .page-container .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
    
    .browser-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 10px;
        padding-top: 20px;
    }
    
    .page-container .hero-section {
        padding: 20px 10px;
    }
    
    .page-container .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .browser-list {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Product Page Styles */
body.product-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.product-page .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto; /* Override the 100vh from general container rule */
}

.product-page-container {
    width: 100%;
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: background 0.3s ease;
    overflow-x: hidden;
}

.dark-mode .product-page-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Hero Section - Product Page Only */
.product-page-container .hero-section {
    padding: 80px 20px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a90e2 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.1;
}

.dark-mode .hero-title {
    -webkit-text-fill-color: #ffffff;
}

.product-page-container .hero-subtitle {
    font-size: 1.3rem;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
}

.dark-mode .product-page-container .hero-subtitle {
    color: #aaaaaa;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #4a90e2;
    border-color: #4a90e2;
}

.cta-button.secondary:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-2px);
}

.dark-mode .cta-button.secondary {
    color: #ffc107;
    border-color: #ffc107;
}

.dark-mode .cta-button.secondary:hover {
    background: #ffc107;
    color: #000;
}

.cta-button.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

/* Editor Preview */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.editor-preview {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.editor-preview:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.dark-mode .editor-preview {
    background: #2d2d2d;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.preview-header {
    background: #f8f9fa;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}

.dark-mode .preview-header {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:nth-child(3) { background: #28ca42; }

.preview-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dark-mode .preview-title {
    color: #fff;
}

.preview-content {
    padding: 30px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
}

.preview-line {
    margin-bottom: 12px;
    color: #666;
    font-size: 16px;
}

.dark-mode .preview-line {
    color: #aaa;
}

.preview-line.highlight {
    color: #4a90e2;
    font-weight: 600;
}

.dark-mode .preview-line.highlight {
    color: #ffc107;
}

.preview-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: #4a90e2;
    font-weight: bold;
}

.dark-mode .preview-cursor {
    color: #ffc107;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section Styles */
.features-section, .screenshots-section, .benefits-section, .cta-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.dark-mode .section-header h2 {
    color: #fff;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.dark-mode .section-header p {
    color: #aaa;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dark-mode .feature-card {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.dark-mode .feature-card .feature-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.feature-card .feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.dark-mode .feature-card h3 {
    color: #fff;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.dark-mode .feature-card p {
    color: #aaa;
}

/* Screenshots Section */
.screenshots-section {
    background: rgba(74, 144, 226, 0.03);
    border-radius: 24px;
    margin: 40px auto;
    max-width: 1200px;
}

.dark-mode .screenshots-section {
    background: rgba(255, 193, 7, 0.05);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.screenshot-item {
    background: white;
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.screenshot-item:hover {
    border-color: #4a90e2;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dark-mode .screenshot-item {
    background: #2d2d2d;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .screenshot-item:hover {
    border-color: #ffc107;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.screenshot-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.screenshot-content {
    padding: 20px;
    text-align: center;
}

.screenshot-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.dark-mode .screenshot-content h3 {
    color: #fff;
}

.screenshot-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.dark-mode .screenshot-content p {
    color: #ccc;
}

.placeholder-content svg {
    width: 48px;
    height: 48px;
    color: #4a90e2;
    margin-bottom: 16px;
}

.dark-mode .placeholder-content svg {
    color: #ffc107;
}

.placeholder-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.dark-mode .placeholder-content h3 {
    color: #fff;
}

.placeholder-content p {
    color: #666;
    font-size: 0.9rem;
}

.dark-mode .placeholder-content p {
    color: #aaa;
}

/* Benefits Section */
.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

.dark-mode .benefits-text h2 {
    color: #fff;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.dark-mode .benefit-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.dark-mode .benefit-content h3 {
    color: #fff;
}

.benefit-content p {
    color: #666;
    line-height: 1.6;
}

.dark-mode .benefit-content p {
    color: #aaa;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dark-mode .stat-item {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #4a90e2;
    margin-bottom: 8px;
}

.dark-mode .stat-number {
    color: #ffc107;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.dark-mode .stat-label {
    color: #aaa;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-radius: 24px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .cta-section {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #000;
}

.cta-content {
    max-width: 600px;
    width: 100%;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-section .cta-button.primary {
    background: white;
    color: #4a90e2;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.cta-section .cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.dark-mode .cta-section .cta-button.primary {
    background: #000;
    color: #ffc107;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .cta-section .cta-button.primary:hover {
    background: #111;
}

/* Product Footer */
.product-footer {
    background: #f8f9fa !important;
    border-top: 2px solid #e9ecef;
    padding: 60px 20px 20px;
    margin-top: 80px;
    position: relative;
    z-index: 10;
    width: 100%;
    clear: both;
    min-height: 200px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.dark-mode .product-footer {
    background: #1a1a1a !important;
    border-top-color: #333 !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.dark-mode .footer-logo {
    color: #fff;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
}

.footer-tagline {
    font-size: 1.1rem;
    color: #4a90e2;
    font-weight: 500;
    margin: 0;
}

.dark-mode .footer-tagline {
    color: #ffc107;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.dark-mode .footer-column h4 {
    color: #fff;
}

.footer-column a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #4a90e2;
}

.dark-mode .footer-column a {
    color: #aaa;
}

.dark-mode .footer-column a:hover {
    color: #ffc107;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 0.9rem;
}

.dark-mode .footer-bottom {
    border-top-color: #333;
    color: #aaa;
}

/* Header scroll effect */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .header.scrolled {
    background-color: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for product page */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .product-page-container .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .screenshot-image {
        height: 250px;
    }
    
    .screenshot-content {
        padding: 15px;
    }
    
    .screenshot-content h3 {
        font-size: 1.1rem;
    }
    
    .screenshot-content p {
        font-size: 0.85rem;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .product-page-container .hero-section {
        padding: 60px 15px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features-section, .screenshots-section, .benefits-section, .cta-section {
        padding: 60px 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .cta-button.large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
}

/* Responsive sidebar adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        right: -280px;
    }
    
    .container.sidebar-open {
        margin-right: 280px;
    }
    
    .sidebar-header {
        padding: 15px 12px;
    }
    
    .sidebar-header h3 {
        font-size: 16px;
    }
    
    .add-notes-section {
        padding: 12px;
    }
    
    .note-item {
        padding: 10px 12px;
    }
    
    .note-title {
        font-size: 13px;
    }
    
    .note-preview {
        font-size: 11px;
    }
    
    .sync-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .sync-info {
        padding: 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .container.sidebar-open {
        margin-right: 0;
    }
    
    .sidebar.open {
        right: 0;
    }
    
    .sync-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .sync-btn svg {
        width: 16px;
        height: 16px;
    }
}


