/* Online Notepad Tool Styles */

.notepad-container {
    background: var(--bs-body-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--bs-border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .notepad-container {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: rgba(168, 85, 247, 0.3);
}

.notepad-toolbar {
    background: var(--bs-secondary-bg);
    border-bottom: 2px solid var(--bs-border-color);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

[data-bs-theme="dark"] .notepad-toolbar {
    background: rgba(30, 34, 42, 0.8);
    border-bottom-color: rgba(168, 85, 247, 0.3);
}

.notepad-textarea-wrapper {
    position: relative;
    border: 2px solid var(--bs-border-color);
    border-radius: 8px;
    margin: 1rem;
    overflow: hidden;
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .notepad-textarea-wrapper {
    border-color: rgba(168, 85, 247, 0.2);
    background: rgba(20, 24, 32, 0.6);
}

.notepad-textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    background: transparent;
    color: var(--bs-body-color);
    min-height: 500px;
}

.notepad-textarea:focus {
    outline: none;
}

/* Fullscreen mode */
.notepad-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--bs-body-bg);
    display: none;
    flex-direction: column;
}

.notepad-fullscreen-container.active {
    display: flex;
}

.notepad-fullscreen-toolbar {
    background: var(--bs-secondary-bg);
    border-bottom: 2px solid var(--bs-border-color);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-bs-theme="dark"] .notepad-fullscreen-toolbar {
    background: rgba(30, 34, 42, 0.95);
    border-bottom-color: rgba(168, 85, 247, 0.3);
}

.notepad-fullscreen-textarea {
    flex: 1;
    padding: 2rem;
    border: none;
    outline: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.notepad-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--bs-secondary-bg);
    border-top: 2px solid var(--bs-border-color);
    font-size: 0.875rem;
    border-radius: 0 0 10px 10px;
}

[data-bs-theme="dark"] .notepad-stats {
    background: rgba(30, 34, 42, 0.8);
    border-top-color: rgba(168, 85, 247, 0.3);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-item strong {
    color: var(--bs-primary-text-emphasis);
    font-weight: 600;
}

.find-replace-panel {
    background: var(--bs-secondary-bg);
    border-bottom: 2px solid var(--bs-border-color);
    padding: 1rem;
    display: none;
}

[data-bs-theme="dark"] .find-replace-panel {
    background: rgba(30, 34, 42, 0.8);
    border-bottom-color: rgba(168, 85, 247, 0.3);
}

.find-replace-panel.show {
    display: block;
}

#fileInput {
    display: none;
}

.vr {
    height: 24px;
    opacity: 0.3;
}

/* Custom scrollbar for textarea */
.notepad-textarea::-webkit-scrollbar,
.notepad-fullscreen-textarea::-webkit-scrollbar {
    width: 12px;
}

.notepad-textarea::-webkit-scrollbar-track,
.notepad-fullscreen-textarea::-webkit-scrollbar-track {
    background: var(--bs-secondary-bg);
}

.notepad-textarea::-webkit-scrollbar-thumb,
.notepad-fullscreen-textarea::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 6px;
}

.notepad-textarea::-webkit-scrollbar-thumb:hover,
.notepad-fullscreen-textarea::-webkit-scrollbar-thumb:hover {
    background: var(--bs-secondary);
}
