body {
    font-family: sans-serif;
    padding: 1rem;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cell {
    position: relative;
    padding: 0.5rem;
    border: 1px solid #ccc;
    text-align: center;
    text-decoration: none;
    color: inherit;
    min-height: 80px;
}

.cell.today {
    border-color: #f90;
    background: #fffae6;
}

:root {
    --bs-primary: royalblue;
    --cal-min-size: 100px;
}

.card {
    transition: transform .1s, box-shadow .1s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.border-primary {
    border-color: royalblue !important;
}

.calendar-grid .card {
    aspect-ratio: 1 / 1;
    max-height: 200px;
}

.calendar-grid .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-grid .card-title {
    font-size: 2rem;
    font-weight: 600;
}

.thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--bs-primary);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.calendar-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
    padding: 4px;
    background: #fff;
    border: 4px solid var(--bs-primary);
    border-radius: .25rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(var(--cal-min-size), 1fr));
    grid-auto-rows: minmax(var(--cal-min-size), 1fr);
    gap: 4px;
    background: transparent;
    padding: 0;
    border: none;
}

.calendar-header {
    background: #fff;
    text-align: center;
    font-weight: 600;
    padding: .5rem 0;
    border: 1px solid #ddd;
}

.calendar-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
    transition: transform .1s, box-shadow .1s;
}

.calendar-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-cell.today {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: #fff;
}

.calendar-cell .date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.calendar-cell.has-photo .thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.py-5 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.list-group {
    max-height: 80vh;
    overflow-y: auto;
}

.list-group-item.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.bunny-card {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.bunny-card .card-header {
    font-size: 1.1rem;
    background-color: #f8f9fa;
}

@media (max-width: 576px) {
    .calendar-grid {
        grid-template-columns: repeat(7, minmax(80px, 80px));
    }
}

.entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff;
    padding: 0.75rem 1rem;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.entry-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.entry-header .btn-back {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 400;
    font-size: 0.9rem;
}

.entry-header .btn-back:hover {
    background: #fff;
    text-decoration: none;
}

.entry-header .spacer {
    flex: 1;
}

.card-body a.btn-outline-secondary.ms-2 {
    display: none;
}

.no-hover:hover {
    transform: none !important;
    box-shadow: none !important;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #6610f2);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.page-header .title-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.page-header h1 {
    margin: 0 1rem;
    font-size: 3rem;
    font-weight: 500;
    color: #fff !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.calendar-cell.blank {
    background: transparent;
    pointer-events: none;
  }