/* ===============================
   Pocket Note - Custom Styles
   =============================== */

body {
    background-color: var(--bs-body-bg);
    min-height: 100vh;
}

/* ---------- Auth pages ---------- */
.auth-wrapper {
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: 1rem;
}

/* ---------- Navbar ---------- */
.app-navbar {
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.app-logo {
    height: 34px;
    width: auto;
}

.auth-logo {
    height: 48px;
    width: auto;
}

/* ---------- Note cards ---------- */
.note-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: #212529; /* keep text dark even on colored backgrounds */
}

.note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

.note-card .card-title {
    color: #212529;
}

.note-actions button {
    text-decoration: none;
    font-size: 1.1rem;
}

.note-preview {
    max-height: 4.5em;
    overflow: hidden;
}

/* ---------- Color swatches ---------- */
.color-swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    cursor: pointer;
}

.color-swatch.active,
.color-radio input:checked + .color-swatch {
    border: 3px solid #6366f1;
}

.color-radio {
    cursor: pointer;
}

/* ---------- Note editor ---------- */
.note-editor {
    min-height: 400px;
    padding: 1rem;
    border-radius: 0.5rem;
    line-height: 1.7;
}

.note-editor:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.editor-toolbar .btn.active {
    background-color: #6366f1;
    color: #fff;
}

/* ---------- Misc ---------- */
.flash-container {
    max-width: 380px;
}

[data-bs-theme="dark"] .note-card {
    color: #212529; /* note cards keep light backgrounds regardless of theme for color-label legibility */
}

.list-group-item.active {
    background-color: #6366f1;
    border-color: #6366f1;
}
