/* Custom styles for diary app */

/* Body background gives a soft off‑white tone for better contrast */
body {
    background-color: #f2f6fb;
}

/* Navbar brand styling */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Cards: rounded corners, subtle shadow and spacing */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

/* Sidebar styling */
#sidebar .list-group-item {
    border: none;
    border-left: 4px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-weight: 500;
}
#sidebar .list-group-item i {
    width: 1rem;
}
#sidebar .list-group-item.active {
    background-color: var(--bs-primary);
    color: #fff;
    border-left-color: var(--bs-primary);
}
#sidebar .list-group-item.active i {
    color: #fff;
}
#sidebar .list-group-item:hover {
    background-color: rgba(0,0,0,0.05);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card footer badges spacing */
.card-footer .badge {
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

/* Form helpers text styling */
small.form-text {
    color: #6c757d;
}

/* Markdown rendering tweaks */
.markdown-body {
    line-height: 1.65;
    font-size: 1rem;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 600;
}
.markdown-body pre {
    background-color: #eef4fb;
    padding: 0.75rem;
    border-radius: 0.5rem;
    overflow: auto;
}
.markdown-body code {
    background-color: #eef4fb;
    padding: 2px 4px;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

/* Tagify suggestions styling: adjust to match theme */
.tags-look {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Hide Tagify hidden input visually (it still holds comma separated values) */
input[type="hidden"][id$="_input"] {
    display: none;
}

/* Buttons: slightly bigger and bolder */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
}

/* Image preview cropping container: ensures consistent height */
.card-img-top {
    object-fit: cover;
    height: 300px;
}

.object-fit-cover{
    object-fit: cover;
}

/* Attachment cards spacing */
.card .card-body h6 {
    font-size: 0.85rem;
}

/* Dark mode overrides */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}
body.dark-mode .navbar {
    background-color: #0d253f;
}
body.dark-mode .card {
    background-color: #1e293b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    color: #e2e8f0;
}
body.dark-mode .card-footer {
    background-color: transparent;
}
body.dark-mode .list-group-item {
    background-color: transparent;
    color: #cbd5e1;
}
body.dark-mode .list-group-item.active {
    background-color: var(--bs-primary);
    color: #fff;
}
body.dark-mode .list-group-item:hover {
    background-color: rgba(255,255,255,0.05);
}