/**
 * FIX DASHBOARD TOPBAR - Mobile & iPad
 * Remove gap above Monday/day name and center content properly
 */

/* Mobile phones (< 600px) */
@media (max-width: 600px) {
    .dashboard-page {
        /* Tighter: header height + a small consistent breathing gap, plus the iOS notch. */
        padding-top: calc(52px + var(--safe-area-inset-top, 0px)) !important;
    }

    .db-topbar {
        /* Comfortable internal top-padding so the date/greeting isn't cropped at the top. */
        padding: 1rem 1rem 0.85rem !important;
        margin-top: 0 !important;
        gap: 0.6rem !important;
    }

    .db-identity {
        width: 100% !important;
        text-align: left !important;
    }

    .db-greeting-line {
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    .db-dayname {
        font-size: 0.75rem !important;
    }

    .db-datestr {
        font-size: 0.75rem !important;
    }

    /* Remove any extra margins/padding causing gap */
    .db-new {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Tablets (601px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    .dashboard-page {
        padding-top: 60px !important;
    }

    .db-topbar {
        padding: 1rem 1.5rem !important;
        margin-top: 0 !important;
        gap: 1rem !important;
    }

    .db-identity {
        width: auto !important;
    }

    .db-greeting-line {
        justify-content: flex-start !important;
    }

    .db-dayname {
        font-size: 0.8rem !important;
    }

    .db-datestr {
        font-size: 0.8rem !important;
    }
}

/* Ensure calendar panel doesn't have extra gap */
@media (max-width: 1024px) {
    .db-cal-panel {
        padding-top: 1rem !important;
        margin-top: 0 !important;
    }

    .db-body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
