:root {
    --bg-color: #121212;
    --window-bg: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(255, 255, 255, 0.08);
    --text-color: #ffffff;
}

body.light {
    --bg-color: #f2f2f2;
    --window-bg: rgba(255, 255, 255, 0.7);
    --header-bg: rgba(240, 240, 240, 0.9);
    --text-color: #000000;
}

body {
    margin: 0;
    background: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background 0.3s ease;
}

.notepad-window {
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    background: var(--window-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f57; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #28c840; }

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notepad-content {
    padding: 24px;
    line-height: 1.6;
    font-size: 1rem;
}

.notepad-content p {
    margin-bottom: 1.2em;
}

.notepad-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.back-btn {
    font-family: monospace;
    font-size: 0.9rem;
    background: none;
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

[contenteditable] {
  outline: 0px solid transparent;
}