body {
    color: aliceblue;
    background-color: #0b1f3a;
    background-size: cover;
    background-attachment: fixed;
    background-image: url("../images/backgrounds-blank-blue-953214.jpg");
    background-image: image-set(
        url("../images/backgrounds-blank-blue-953214.webp") type("image/webp"),
        url("../images/backgrounds-blank-blue-953214.jpg") type("image/jpeg")
    );
}


.jum {
    padding: 30px 30px;
    width: 90%;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.3);
}

.tableh1 th {
    width: 30%;
}

/* Title and searchbox sit opposite each other in one flex row */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0px 10px 30px;
}

/* ------------------------------------------------------------------
   Material form-outline inputs — 1:1 replica of the MDB UI-Kit 4.2.0
   rules used by the register page of the 7Auth project, but SCOPED to
   the Add Contact form (.inp) so no external/global framework CSS can
   affect the rest of the page.
   The only deviations from MDB are the two colors this dark theme
   needs: white input text + a subtle dark input background, and a
   light label color instead of MDB's dark rgba(0,0,0,.6).
   ------------------------------------------------------------------ */
.inp {
    align-self: flex-start;
}

.inp .form-outline {
    position: relative;
}

.inp .form-outline .form-control {
    min-height: auto;
    height: auto;
    border: 0;
    background: transparent;
    transition: all 0.2s linear;
    /* dark-theme fixes: readable text + a visible field background */
    color: #fff;
    background-color: rgba(0, 0, 0, 0.25);
}

.inp .form-outline .form-control:focus {
    box-shadow: none !important;
}

.inp .form-outline .form-control~.form-label {
    position: absolute;
    top: 0;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    left: 0.75rem;
    padding-top: 0.35rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: all 0.2s ease-out;
    color: rgba(255, 255, 255, 0.75);
    /* dark-theme fix (MDB uses rgba(0,0,0,.6)) */
    margin-bottom: 0;
}

.inp .form-outline .form-control~.form-notch {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    text-align: left;
    pointer-events: none;
}

.inp .form-outline .form-control~.form-notch div {
    pointer-events: none;
    border: 1px solid #bdbdbd;
    box-sizing: border-box;
    background: transparent;
    transition: all 0.2s linear;
}

.inp .form-outline .form-control~.form-notch .form-notch-leading {
    left: 0;
    top: 0;
    height: 100%;
    width: 0.5rem;
    border-right: none;
    border-radius: 0.25rem 0 0 0.25rem;
}

.inp .form-outline .form-control~.form-notch .form-notch-middle {
    flex: 0 0 auto;
    width: auto;
    max-width: calc(100% - 1rem);
    height: 100%;
    border-right: none;
    border-left: none;
}

.inp .form-outline .form-control~.form-notch .form-notch-trailing {
    flex-grow: 1;
    height: 100%;
    border-left: none;
    border-radius: 0 0.25rem 0.25rem 0;
}

/* the label floats up when the field is focused or holds a value (.active) */
.inp .form-outline .form-control.active~.form-label,
.inp .form-outline .form-control:focus~.form-label {
    transform: translateY(-1rem) translateY(0.1rem) scale(0.8);
}

.inp .form-outline .form-control:focus~.form-label {
    color: #fdfdfd;
}

.inp .form-outline .form-control.active~.form-notch .form-notch-middle,
.inp .form-outline .form-control:focus~.form-notch .form-notch-middle {
    border-right: none;
    border-left: none;
    border-top: 1px solid transparent;
}

.inp .form-outline .form-control:focus~.form-notch .form-notch-middle {
    border-color: #ffffff;
    box-shadow: 0 1px 0 0 #ffffff;
    border-top: 1px solid transparent;
}

.inp .form-outline .form-control.active~.form-notch .form-notch-leading,
.inp .form-outline .form-control:focus~.form-notch .form-notch-leading {
    border-right: none;
}

.inp .form-outline .form-control:focus~.form-notch .form-notch-leading {
    border-color: #ffffff;
    box-shadow: -1px 0 0 0 #ffffff, 0 1px 0 0 #ffffff, 0 -1px 0 0 #ffffff;
}

.inp .form-outline .form-control.active~.form-notch .form-notch-trailing,
.inp .form-outline .form-control:focus~.form-notch .form-notch-trailing {
    border-left: none;
}

.inp .form-outline .form-control:focus~.form-notch .form-notch-trailing {
    border-color: #ffffff;
    box-shadow: 1px 0 0 0 #ffffff, 0 -1px 0 0 #ffffff, 0 1px 0 0 #ffffff;
}

/* Hide the native spinner arrows of number inputs (Add Contact phone
   field) — Webkit/Blink and Firefox. */
.inp input[type="number"]::-webkit-outer-spin-button,
.inp input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.inp input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Inline row editing (Edit button turns the row into inputs) */
.inline-edit {
    min-width: 0;
    width: 100%;
    color: #212529;
    background-color: #fff;
    font-size: 14px;
    padding: 4px 8px;
}

.contact-action-save:hover {
    color: #28a745;
}

.contact-action-cancel:hover {
    color: #6c757d;
}

.alert {
    display: none;
}

.btn1 {
    margin: 20px 0px;
}

.btn-info {
    color: #fff;
    background-color: #117a8b;
    border-color: #10707f;
}

.btn-info:hover,
.btn-info:focus {
    color: #fff;
    background-color: #0e6674;
    border-color: #0c5c69;
}

.contact-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
}

.contact-action:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.contact-action-edit:hover {
    color: #ffc107;
}

.contact-action-delete:hover {
    color: #dc3545;
}

.pagination-nav {
    margin-top: 1rem;
}

.pagination-nav .pagination {
    position: relative;
    display: flex;
    justify-content: center;
    right: 260px;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-nav .page-item {
    margin: 0;
}

.pagination-nav .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.25rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pagination-nav .page-link:hover,
.pagination-nav .page-link:focus {
    color: #fff;
    background-color: #117a8b;
    border-color: #117a8b;
    outline: none;
}

.pagination-nav .page-item.active .page-link {
    color: #fff;
    background-color: #117a8b;
    border-color: #117a8b;
}

.pagination-nav .page-item.disabled .page-link {
    color: rgba(255, 255, 255, 0.55);
    background-color: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* ------------------------------------------------------------------
   Delete Confirmation Modal (HTML5 <dialog> with Glassmorphism)
   ------------------------------------------------------------------ */
dialog.confirm-modal {
    border: 1px solid var(--jum-border, rgba(255, 255, 255, 0.15));
    border-radius: 16px;
    background: var(--card-subtle-bg, #0f2444);
    color: var(--body-text, #ffffff);
    padding: 26px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    max-width: 420px;
    width: 90vw;
    margin: auto;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

dialog.confirm-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: backdropFadeIn 0.22s ease forwards;
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirm-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.confirm-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--body-text, #ffffff);
}

.confirm-modal-desc {
    font-size: 0.95rem;
    color: var(--label-text, rgba(255, 255, 255, 0.8));
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.confirm-modal-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn-no {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--body-text, #ffffff);
    border: 1px solid var(--jum-border, rgba(255, 255, 255, 0.2)) !important;
}

.confirm-btn-no:hover,
.confirm-btn-no:focus {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--body-text, #ffffff);
    transform: translateY(-1px);
}

.confirm-btn-yes {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.confirm-btn-yes:hover,
.confirm-btn-yes:focus {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
    transform: translateY(-1px);
}