:root, [data-theme="light-default"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f0f0f0;
    --bg-tertiary: #e5e5e5;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #d1d5db;
    --accent-color: #64a6bd;
    --accent-hover: #527a8b;
    --success-color: #81c784;
    --error-color: #e57373;
    --shadow: rgba(100, 166, 189, 0.08);
}

[data-theme="light-blue"] {
    --bg-primary: #e8f4f8;
    --bg-secondary: #d1e7f0;
    --bg-tertiary: #b8d9e8;
    --text-primary: #1a3a4a;
    --text-secondary: #5a7a8a;
    --border-color: #a0c8d8;
    --accent-color: #4a9aba;
    --accent-hover: #3a7a9a;
    --success-color: #5fa67f;
    --error-color: #d45a5a;
    --shadow: rgba(74, 154, 186, 0.1);
}

[data-theme="light-warm"] {
    --bg-primary: #faf5f0;
    --bg-secondary: #f0e8dc;
    --bg-tertiary: #e5dcc8;
    --text-primary: #3a2e1f;
    --text-secondary: #7a6e5f;
    --border-color: #d8c8b4;
    --accent-color: #b8884a;
    --accent-hover: #986a2a;
    --success-color: #7a9a5a;
    --error-color: #d45a5a;
    --shadow: rgba(184, 136, 74, 0.08);
}

[data-theme="light-mint"] {
    --bg-primary: #f0faf5;
    --bg-secondary: #dceee5;
    --bg-tertiary: #c8e2d5;
    --text-primary: #1f3a2e;
    --text-secondary: #5f7a6e;
    --border-color: #b4d8c8;
    --accent-color: #4ab88a;
    --accent-hover: #2a986a;
    --success-color: #5aa67a;
    --error-color: #d45a5a;
    --shadow: rgba(74, 184, 138, 0.08);
}

[data-theme="dark-default"] {
    --bg-primary: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-tertiary: #3a3a3c;
    --text-primary: #e8e8e8;
    --text-secondary: #98989f;
    --border-color: #38383a;
    --accent-color: #7eb3c7;
    --accent-hover: #92c4d6;
    --success-color: #81c784;
    --error-color: #e57373;
    --shadow: rgba(126, 179, 199, 0.12);
}

[data-theme="dark-purple"] {
    --bg-primary: #1a1625;
    --bg-secondary: #2a2535;
    --bg-tertiary: #3a3545;
    --text-primary: #e8e0f0;
    --text-secondary: #a898b8;
    --border-color: #483865;
    --accent-color: #9a7ac7;
    --accent-hover: #b494d6;
    --success-color: #7ac794;
    --error-color: #e57373;
    --shadow: rgba(154, 122, 199, 0.15);
}

[data-theme="dark-forest"] {
    --bg-primary: #161e1a;
    --bg-secondary: #252e2a;
    --bg-tertiary: #353e3a;
    --text-primary: #e0f0e8;
    --text-secondary: #98b8a8;
    --border-color: #385848;
    --accent-color: #7ac79a;
    --accent-hover: #94d6b4;
    --success-color: #81c784;
    --error-color: #e57373;
    --shadow: rgba(122, 199, 154, 0.12);
}

[data-theme="dark-midnight"] {
    --bg-primary: #0f1419;
    --bg-secondary: #1a2229;
    --bg-tertiary: #2a3239;
    --text-primary: #d8e8f0;
    --text-secondary: #88a8b8;
    --border-color: #2a4858;
    --accent-color: #5a9ac7;
    --accent-hover: #74aed6;
    --success-color: #6ac794;
    --error-color: #e57373;
    --shadow: rgba(90, 154, 199, 0.15);
}

[data-theme="light-gruvbox"] {
    --bg-primary: #fbf1c7;
    --bg-secondary: #ebdbb2;
    --bg-tertiary: #d5c4a1;
    --text-primary: #3c3836;
    --text-secondary: #504945;
    --border-color: #bdae93;
    --accent-color: #458588;
    --accent-hover: #076678;
    --success-color: #98971a;
    --error-color: #cc241d;
    --shadow: rgba(69, 133, 136, 0.1);
}

[data-theme="dark-gruvbox"] {
    --bg-primary: #282828;
    --bg-secondary: #3c3836;
    --bg-tertiary: #504945;
    --text-primary: #ebdbb2;
    --text-secondary: #d5c4a1;
    --border-color: #665c54;
    --accent-color: #83a598;
    --accent-hover: #b8bb26;
    --success-color: #8ec07c;
    --error-color: #fb4934;
    --shadow: rgba(131, 165, 152, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    margin-right: 1rem;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0 0.25rem;
}

.note-form {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

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

.result {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.result.success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
}

.hidden {
    display: none;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.note-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.note-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
}

.markdown-body {
    line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.markdown-body h1 {
    font-size: 2rem;
}

.markdown-body h2 {
    font-size: 1.5rem;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body a {
    color: var(--accent-color);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body code {
    background-color: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.markdown-body pre {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    display: block;
    overflow-x: auto;
}

.markdown-body table th,
.markdown-body table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.markdown-body table th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 6px;
}

.markdown-body ul,
.markdown-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.password-prompt {
    max-width: 400px;
    margin: 3rem auto;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.password-prompt h2 {
    margin-bottom: 1.5rem;
}

.password-prompt input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.list-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input,
.sort-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.notes-list {
    display: grid;
    gap: 1rem;
}

.note-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.note-card:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.note-card h3 {
    margin-bottom: 0.5rem;
}

.note-card-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.ad-banner {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: none;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.ad-banner a {
    color: white;
    text-decoration: none;
    display: block;
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1.05rem;
    font-size: 1.1rem;
}

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

.doc-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.doc-section h2 {
    margin-bottom: 1rem;
}

.doc-section h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.code-block {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 1rem 0;
    white-space: pre-wrap;
}

code {
    background-color: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.api-tester {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
}

.endpoint-form {
    margin: 2rem 0;
}

.endpoint-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.response-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.cta {
    text-align: center;
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .note-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .note-actions {
        width: 100%;
    }
    
    .btn-small {
        flex: 1;
        min-width: 100px;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        display: none;
    }
    
    .nav-links a:first-child {
        display: block;
    }
    
    .font-selector,
    .theme-selector {
        display: flex !important;
    }
    
    .font-selector-btn,
    .theme-selector-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .theme-dropdown:not(.hidden)::before,
    .font-dropdown:not(.hidden)::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .theme-dropdown,
    .font-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
        max-height: 70vh;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px var(--shadow);
        z-index: 10001;
        background-color: var(--bg-secondary);
    }
    
    .theme-dropdown:not(.hidden),
    .font-dropdown:not(.hidden) {
        display: flex;
        flex-direction: column;
    }
    
    .theme-option,
    .font-option {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .note-content {
        padding: 1rem;
    }
    
    .logo {
        font-size: 0.9rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .logo-icon {
        width: 16px;
        height: 16px;
    }
}

/* Collection View Styles */
.collection-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.collection-info {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.notes-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.note-card-vertical {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.note-card-vertical:hover {
    box-shadow: 0 6px 20px var(--shadow);
    transform: translateY(-2px);
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.note-card-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
}

.note-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.note-card-vertical .note-content {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.note-card-vertical .note-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Minimalist icons and buttons */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    transform: rotate(180deg);
}

.btn {
    border-radius: 8px;
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.btn-primary {
    box-shadow: 0 2px 8px var(--shadow);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-1px);
}

.btn-small {
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-small:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Refined form elements */
.form-group input,
.form-group textarea,
.form-group select,
.search-input,
.sort-select,
.form-control {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.search-input:focus,
.sort-select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--shadow);
}

/* Soft shadows and transitions */
.feature-card,
.note-card,
.note-form,
.password-prompt,
.api-tester,
.doc-section {
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border-radius: 12px;
}

/* Smooth hover effects */
.note-card:hover,
.feature-card:hover {
    box-shadow: 0 6px 16px var(--shadow);
}

/* Theme Selector Styles */
.theme-selector {
    position: relative;
}

.theme-selector-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-selector-btn:hover {
    background-color: var(--bg-tertiary);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.theme-dropdown.hidden {
    display: none;
}

.theme-category {
    padding: 0.5rem 0;
}

.theme-category-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-option:hover {
    background-color: var(--bg-tertiary);
}

.theme-option.active {
    background-color: var(--accent-color);
    color: white;
}

.theme-preview {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Font Selector Styles */
.font-selector {
    position: relative;
}

.font-selector-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.font-selector-btn:hover {
    background-color: var(--bg-tertiary);
}

.font-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 200px;
    z-index: 1000;
}

.font-dropdown.hidden {
    display: none;
}

.font-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-primary);
}

.font-option:hover {
    background-color: var(--bg-tertiary);
}

.font-option.active {
    background-color: var(--accent-color);
    color: white;
}

/* Font Family Classes */
[data-font="system"] body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

[data-font="serif"] body {
    font-family: Georgia, 'Times New Roman', serif;
}

[data-font="mono"] body {
    font-family: 'Courier New', Courier, monospace;
}

[data-font="modern"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-font="rounded"] body {
    font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, 'Comic Sans MS', sans-serif;
}

[data-font="courier"] body {
    font-family: 'Courier New', Courier, monospace;
}

/* SVG Icon Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    flex-shrink: 0;
}

.feature-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.play-store-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.play-store-badge svg {
    flex-shrink: 0;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--accent-color);
    padding: 1rem;
    box-shadow: 0 -4px 12px var(--shadow);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-consent.hidden {
    display: none;
}

/* Mobile Optimization Notice */
.mobile-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: fadeIn 0.3s ease-out;
}

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

.mobile-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-notice h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-notice p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.mobile-notice-buttons {
    display: flex;
    justify-content: flex-end;
}

.mobile-notice.hidden,
.mobile-notice-overlay.hidden {
    display: none;
}

@media (max-width: 768px) {
    .note-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .note-card-vertical .note-actions {
        justify-content: flex-start;
        width: 100%;
    }
    
    .collection-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .theme-dropdown,
    .font-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
        max-height: 60vh;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px var(--shadow);
        overflow-y: auto;
    }
    
    .theme-option,
    .font-option {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .list-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input,
    .sort-select {
        width: 100%;
    }
    
    .notes-vertical-list {
        gap: 1.5rem;
    }
    
    .note-card-vertical {
        padding: 0.5rem;
    }
    
    .note-card-vertical .note-content {
        padding: 0.5rem;
        min-height: 150px;
    }
    
    .note-content {
        padding: 0.5rem;
    }
    
    .container {
        padding: 0 0.25rem;
    }
    
    .collection-header h1 {
        font-size: 1.75rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
    }
    
    .mobile-notice {
        padding: 1.5rem;
    }
}

    /* Admin Dashboard Mobile Optimization */
    .admin-grid,
    .admin-section {
        grid-template-columns: 1fr;
    }
    
    .admin-card {
        padding: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-control,
    textarea,
    select,
    input[type="text"],
    input[type="password"],
    input[type="number"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Token Management Mobile */
    .token-list {
        overflow-x: auto;
    }
    
    .token-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    /* Note Link Display Mobile Optimization */
    .result code {
        word-break: break-all;
        font-size: 0.85rem;
        padding: 0.5rem;
        display: block;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .result .btn {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    /* API Tester Mobile */
    .api-tester textarea {
        font-size: 14px;
        min-height: 200px;
    }
    
    .endpoint-form h3 {
        font-size: 1.25rem;
    }
    
    .response-section pre {
        font-size: 12px;
        overflow-x: auto;
    }
    
    /* reCAPTCHA Mobile */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .result code {
        font-size: 0.75rem;
    }
    
    .note-actions {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* reCAPTCHA extra small */
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
}
