:root {
    --bg-app: #0f172a;
    --bg-panel: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --border: #334155;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    gap: 1px;
    background-color: var(--border);
}

section {
    background-color: var(--bg-app);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.section-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.section-header h2 i {
    color: var(--accent);
}

/* Notepad Styles */
.notepad-wrapper {
    flex: 1;
    position: relative;
}

#notepad {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    font-size: 1rem;
    line-height: 1.6;
    padding: 1.5rem;
    resize: none;
    outline: none;
}

#notepad::placeholder {
    color: var(--text-secondary);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: var(--bg-panel);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.status-badge.saving {
    color: var(--accent);
    background-color: rgba(59, 130, 246, 0.1);
}

.status-badge.synced {
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
}

/* File Explorer Styles */
.file-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    position: relative;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.file-item {
    background-color: var(--bg-panel);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.file-item:hover {
    background-color: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--border);
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.file-thumbnail {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    border-radius: 0.375rem;
}

.file-name {
    font-size: 0.875rem;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    gap: 0.25rem;
    z-index: 10;
}

.file-item:hover .file-actions {
    opacity: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.crumb {
    cursor: pointer;
    transition: color 0.2s;
}

.crumb:hover {
    color: var(--text-primary);
}

.crumb:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--border);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--text-secondary);
}

.upload-btn {
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    border: 1px solid var(--accent);
}

.upload-btn:hover {
    background-color: #2563eb;
}

/* File List Updates */
.file-item.folder {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.1);
}

.file-item.folder .file-icon {
    color: var(--accent);
}

.icon-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.icon-btn:hover {
    background: var(--bg-hover);
}

.icon-btn.delete:hover {
    background: #ef4444;
    color: white;
}

/* Drag & Drop Overlay */
.upload-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(4px);
    border: 2px dashed var(--accent);
    margin: 1rem;
    border-radius: 1rem;
}

.upload-overlay i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.upload-overlay.hidden {
    display: none;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

/* Secure Mode Styles */
body.secure-mode {
    --bg-color: #0f1115;
    --surface-color: #1a1d23;
    --accent-color: #ef4444;
    /* Red for secure mode */
    --text-secondary: #9ca3af;
    --bg-app: #0f1115;
    --bg-panel: #1a1d23;
    --accent: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.5);
}

body.secure-mode #lock-btn {
    color: var(--success);
}

body.secure-mode .status-badge.synced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#lock-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

#lock-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-panel);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-content p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-content input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.primary-btn,
.secondary-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.primary-btn {
    background: var(--accent);
    color: white;
}

.primary-btn:hover {
    filter: brightness(1.1);
}

.secondary-btn {
    justify-content: center;
    font-size: 0.875rem;
}

.icon-btn:hover {
    background: var(--bg-hover);
}

.icon-btn.delete:hover {
    background: #ef4444;
    color: white;
}

/* Drag & Drop Overlay */
.upload-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(4px);
    border: 2px dashed var(--accent);
    margin: 1rem;
    border-radius: 1rem;
}

.upload-overlay i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.upload-overlay.hidden {
    display: none;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

/* Secure Mode Styles */
body.secure-mode {
    --bg-color: #0f1115;
    --surface-color: #1a1d23;
    --accent-color: #ef4444;
    /* Red for secure mode */
    --text-secondary: #9ca3af;
    --bg-app: #0f1115;
    --bg-panel: #1a1d23;
    --accent: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.5);
}

body.secure-mode #lock-btn {
    color: var(--success);
}

body.secure-mode .status-badge.synced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#lock-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

#lock-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-panel);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-content p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-content input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.primary-btn,
.secondary-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.primary-btn {
    background: var(--accent);
    color: white;
}

.primary-btn:hover {
    filter: brightness(1.1);
}

.secondary-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 40;
    animation: slideUp 0.3s ease-out;
}

.upload-progress.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-filename {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.progress-percent {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.progress-track {
    width: 100%;
    height: 6px;
    --accent-color: #ef4444;
    /* Red for secure mode */
    --text-secondary: #9ca3af;
    --bg-app: #0f1115;
    --bg-panel: #1a1d23;
    --accent: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.5);
}

body.secure-mode #lock-btn {
    color: var(--success);
}

body.secure-mode .status-badge.synced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#lock-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

#lock-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-panel);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-content p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-content input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.primary-btn,
.secondary-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.primary-btn {
    background: var(--accent);
    color: white;
}

.primary-btn:hover {
    filter: brightness(1.1);
}

.secondary-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 40;
    animation: slideUp 0.3s ease-out;
}

.upload-progress.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-filename {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.progress-percent {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.progress-track {
    width: 100%;
    height: 6px;
    --accent-color: #ef4444;
    /* Red for secure mode */
    --text-secondary: #9ca3af;
    --bg-app: #0f1115;
    --bg-panel: #1a1d23;
    --accent: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.5);
}

body.secure-mode #lock-btn {
    color: var(--success);
}

body.secure-mode .status-badge.synced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#lock-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

#lock-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-panel);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-content p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-content input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.primary-btn,
.secondary-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.primary-btn {
    background: var(--accent);
    color: white;
}

.primary-btn:hover {
    filter: brightness(1.1);
}

.secondary-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 40;
    animation: slideUp 0.3s ease-out;
}

.upload-progress.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-filename {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

/* Notebook Sidebar */
.notepad-container {
    display: flex;
    flex-direction: row;
    /* Explicitly set to row */
    height: calc(100% - 65px);
    /* Subtract header height */
    overflow: hidden;
}

.notebook-sidebar {
    width: 200px;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.notebook-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notebook-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.notebook-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.notebook-item.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    font-weight: 500;
}

.notebook-item .delete-notebook {
    opacity: 0;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notebook-item:hover .delete-notebook {
    opacity: 1;
}

.notebook-item .delete-notebook:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.add-notebook-btn {
    margin: 0.5rem;
    padding: 0.75rem;
    background-color: transparent;
    border: 1px dashed var(--border);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-notebook-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(59, 130, 246, 0.05);
}

/* Adjust notepad wrapper to take remaining space */
.notepad-wrapper {
    flex: 1;
    height: 100%;
}

/* Editable Title */
#notepad-title {
    outline: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    cursor: text;
}

#notepad-title:focus {
    border-bottom-color: var(--accent);
}