body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

main.container {
    padding-bottom: 3rem;
}

/* Activity Heatmap Styles */
.activity-heatmap {
    overflow-x: auto;
    padding: 20px 0;
}

.heatmap-container {
    display: inline-block;
    min-width: 100%;
}

.heatmap-months {
    position: relative;
    height: 16px;
    margin-bottom: 5px;
    padding-left: 30px;
}

.heatmap-month {
    position: absolute;
    font-size: 12px;
    color: #666;
    min-width: 13px;
}

.heatmap-body {
    display: flex;
}

.heatmap-days {
    display: flex;
    flex-direction: column;
    margin-right: 5px;
}

.heatmap-day-label {
    height: 13px;
    line-height: 13px;
    font-size: 10px;
    color: #666;
    margin-bottom: 2px;
}

.heatmap-weeks {
    display: flex;
    gap: 2px;
}

.heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.heatmap-day {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.heatmap-day.level-0 {
    background-color: #ebedf0;
}

.heatmap-day.level-1 {
    background-color: #9be9a8;
}

.heatmap-day.level-2 {
    background-color: #40c463;
}

.heatmap-day.level-3 {
    background-color: #30a14e;
}

.heatmap-day.level-4 {
    background-color: #216e39;
}

.heatmap-day:hover {
    outline: 2px solid rgba(0, 0, 0, 0.3);
    outline-offset: 1px;
}

.heatmap-day.selected {
    outline: 2px solid #0d6efd;
    outline-offset: 1px;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    gap: 5px;
}

.heatmap-legend-label {
    margin-right: 5px;
}

.heatmap-legend-colors {
    display: flex;
    gap: 2px;
}

.heatmap-legend-colors .heatmap-day {
    width: 11px;
    height: 11px;
}

/* Tooltip styles */
.heatmap-tooltip {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    display: none;
}

.heatmap-tooltip.show {
    display: block;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Make activity graph scrollable on mobile */
    .activity-heatmap {
        padding: 10px 0;
    }

    /* Hide heatmap on very small screens to save space */
    .mobile-hide-heatmap {
        display: none;
    }

    /* Stack quick action cards */
    .row > [class*='col-'] {
        margin-bottom: 15px;
    }

    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        font-size: 16px;
    }

    /* Reduce padding on cards for mobile */
    .card-body {
        padding: 1rem;
    }

    /* Make welcome header more compact */
    h2 {
        font-size: 1.5rem;
    }
}

/* Floating Action Button (FAB) for mobile */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fab:hover {
    background-color: #0b5ed7;
    transform: scale(1.1);
}

.fab:active {
    transform: scale(0.95);
}

/* Hide FAB on desktop */
@media (min-width: 769px) {
    .fab-container {
        display: none;
    }
}

/* Mobile Quick Activity Section */
.mobile-quick-activities {
    display: none;
}

@media (max-width: 768px) {
    .mobile-quick-activities {
        display: block;
    }

    .mobile-hide {
        display: none;
    }

    .quick-activity-btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 15px;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .quick-activity-badge {
        background-color: rgba(255, 255, 255, 0.3);
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
    }
}

/* Open Activities Alert */
.open-activities-banner {
    position: sticky;
    top: 0;
    z-index: 998;
}

@media (max-width: 768px) {
    .open-activities-banner {
        margin: -1rem -1rem 1rem -1rem;
        border-radius: 0;
    }
}