body {
    background-color: #f7f9fb;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);
}

.nav-link.active {
    font-weight: 600;
}

.badge-status {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

.badge-status[data-status="scheduled"] {
    background-color: #0d6efd;
}

.badge-status[data-status="completed"] {
    background-color: #198754;
}

.badge-status[data-status="canceled"] {
    background-color: #6c757d;
}

.appointments-table tbody td::before {
    display: none;
}

.action-buttons form {
    margin: 0;
}

@media (max-width: 991.98px) {
    .appointments-table thead {
        display: none;
    }

    .appointments-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        border-radius: 0.75rem;
        border: 1px solid #e2e6ea;
        padding: 1rem 1.25rem;
        box-shadow: 0 0.35rem 1.1rem rgba(15, 23, 42, 0.08);
        background-color: #ffffff;
    }

    .appointments-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(226, 230, 234, 0.6);
    }

    .appointments-table tbody td:last-child {
        border-bottom: 0;
        margin-top: 0.75rem;
        padding-bottom: 0;
        justify-content: flex-start;
    }

    .appointments-table tbody td::before {
        display: inline-block;
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        margin-right: 1rem;
        min-width: 6rem;
    }

    .appointments-table tbody td .action-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .appointments-table tbody td .action-buttons .btn,
    .appointments-table tbody td .action-buttons form {
        flex: 1 1 48%;
    }

    .appointments-table tbody td .action-buttons form .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .appointments-table tbody td .action-buttons .btn,
    .appointments-table tbody td .action-buttons form {
        flex: 1 1 100%;
    }

    .appointments-table tbody td::before {
        min-width: auto;
        margin-right: 0.5rem;
    }
}
