.table-bordered.table-striped tr {
    user-select: none;
}

.navbar-nav.nav li.nav-item a.nav-link {
    border-radius: 10px;
}
.user-avatar-gradient {
    background-image: linear-gradient(135deg, #3d5750 30%, #8ab6c1 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}
.user-avatar-gradient:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.12));
}



.nevo2023-index, .maaltijd-index, .site-index, .koken-index, .user-view, .spuitlog-index,
.nevo2023-create, .nevo2023-view, .nevo2023-update, .pannen-index, .pannen-update, .pannen-create,
.maaltijd-opgeslagen-create, .maaltijd-opgeslagen-index, .maaltijd-opgeslagen-view, .maaltijd-opgeslagen-update{
    margin-top:10px;
}
.fixed-top {
    z-index:10;
}
.navbar-nav.nav li.nav-item {
    border-radius: 10px;
    margin: 5px;
}
.helvetica {
    font-family: 'Helvetica', 'Arial', sans-serif;
}
.lightlink {
    font-weight:normal;
}
.row, .table, .btn {
    opacity: var(--standard-opacity);
}

.quote {
    font-size: 20px;
    padding:20px;
    font-family: Serif;
    font-weight:bold;
    color:var(--primary);
}

h1 {
    margin-top: 20px;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: inline-block;
    width: 100%;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

body {
    transition: background 1.5s linear;
}

#normalBg {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-color: #daf4da;
    -webkit-animation: myfirst 5s; /* Chrome, Safari, Opera */
}
body::before {
    opacity: 0;
    animation: fadein 5s 1 1s linear forwards;
}

@keyframes fadein {
    to {
        opacity: 1;
    }
}

.navbar-nav.nav li.nav-item {
    transition: all var(--nav-animation-speed);
}
.navbar-nav.nav li.nav-item:hover {
    background-color: var(--primary-highlight);
    color:white;
    border-radius: 10px;
}
.centerText {
    line-height: 40px;
}
.smallTd {
    width: 10px;
}
.bg-body-secondary {
    background-color: #efefef;
}
#overlay {
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 200%;
    display: none;
}


.highlight.nav-item {
    border:1px solid white;
}
.navbar-toggler:focus {
    box-shadow:none;
    border:none;
}
a.navbar-brand {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.38);
}
.filter-pink {
    filter:invert(14%) sepia(83%) saturate(7335%) hue-rotate(317deg) brightness(90%) contrast(113%);
}
.neus {
    color: #ec0083;
    background-color:white;
    border-radius:5px;
    padding:5px;
    font-weight:bold;
}

.no-wrap {
    white-space: nowrap;
}
.bg-body-tertiary {
    background-color: #e8fdff;
}
.lineHeightFix {
    line-height: 40px;
}
.call {
    padding:5px;
    background-color: white;
    color:darkblue;
    border-radius:5px;
    border:1px solid darkred;
}
.yellow {
    padding:5px;
    color: yellow;
    border-radius:5px;
    font-weight:bold;
    background-color: black;
}
.fa-colored {
    color: #5c93b3;
    --bs-gradient: #34ff;
}

.fa-user-secret {
    color: #5c93b3;
    --bs-gradient: #34ff;
}

h4 {
    padding-top:5px;
    margin-bottom: 5px;
}
.navbar-toggler {
    box-shadow:none;
    border:none;
}

.navbar .nav-item .nav-link {
    color:white;
}
.myrule {
    width:80%;
    color: #376e67;
    margin:40px;
}

@keyframes blinker1 {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    37% {
        opacity: 1;
        transform: scale(1);
    }
    40% {
        opacity: 0.6;
        transform: scale(1.15);
    }
    43% {
        opacity: 1;
        transform: scale(1);
    }
    46% {
        opacity: 0.6;
        transform: scale(1.35);
    }
    49% {
        opacity: 1;
        transform: scale(1);
    }
    52% {
        opacity: 0.6;
        transform: scale(1.5);
    }
    55% {
        opacity: 1;
        transform: scale(1);
    }
    57% {
        opacity: 0.6;
        transform: scale(1.35);
    }
    60% {
        opacity: 1;
        transform: scale(1);
    }
    63% {
        opacity: 0.6;
        transform: scale(1.15);
    }
    66% {
        opacity: 1;
        transform: scale(1);
    }

}
@keyframes blinker {
    10% {
        opacity: 0.6;
    }
}


.dofasttransition {

    animation: blinker 500ms linear infinite;
}
#actiefRow {
    font-weight: bold;
    font-size: calc(1.275rem + 0.3vw);
    line-height: 1.5;
    animation: blinker1 8s linear infinite;
}

#actiefRow td {
    background-color: #90ff90 !important;
}
html.h-100 body.d-flex.flex-column.h-100 main#main.flex-shrink-0 div.container div.nevo2023-index div#w0.grid-view.is-bs4.kv-grid-bs4.hide-resize div#w0-container.table-responsive.kv-grid-container table.kv-grid-table.table.table-hover.table-bordered.table-striped thead.kv-table-header.w0 tr#w0-filters.filters.skip-export td input#nevo2023search-voedingsmiddelnaam.form-control
.smallfont {
    font-size: 12px;
    float: right;
    margin-bottom: 0;
    margin-top: -10px;
}
form-check-input {
    clear: left;
}

.form-switch.form-switch-sm {
    margin-bottom: 0.5rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-sm .form-check-input {
    height: 1rem;
    width: calc(1rem + 0.75rem);
    border-radius: 2rem;
}


.form-switch.form-switch-md .form-check-input {
    height: 1.5rem;
    width: calc(2rem + 0.75rem);
    border-radius: 3rem;
}
.nomargin {
    margin-bottom:0px;
}

.form-switch.form-switch-lg {
    margin-bottom: 1.5rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-lg .form-check-input {
    height: 2rem;
    width: calc(3rem + 0.75rem);
    border-radius: 4rem;
}


.form-switch.form-switch-xl {
    margin-bottom: 2rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-xl .form-check-input {
    height: 2.5rem;
    width: calc(4rem + 0.75rem);
    border-radius: 5rem;
}
.nav-link {
    padding-left:10px;
    padding-right:10px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.38);
}
.nav-link.active {
    background-color: #ffffff !important;
    color: black !important;
    white-space: nowrap;
    border-radius: 10px;
}
.opsomming li {
    padding:0.8em;
    font-size:1.2em;
}
.carousel-control-prev-icon {
    filter: drop-shadow(3px 3px 3px #000000);
}
.carousel-control-next-icon {
    filter: drop-shadow(3px 3px 3px #000000);
}

.mycarousel {
    box-shadow: 13px 13px 13px 0px rgba(0,0,0,0.25);
    border:5px solid grey;
    border-radius:10px;
}

.featurette-image {
    margin-top:10px;
    box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.25);
    border-radius: 10px;
}

.featurette-divider {
    border-top: 1px solid #6987c9;
    width:80%;
    margin: 40px auto !important;
    margin-top:50px !important;

}


.lead {
    color: var(--primary);
    font-weight: bold;
}


.selector {
    color: white;
}
.selector:hover {
    color: white;
    border:1px white;
}

.selector:focus {
    color:white;
}


.form-check-input:checked {
    background-color: var(--primary);
    border:1px solid var(--primary);
}

ul > li.page-item.active > a {
    background-color: var(--primary);
    border:1px solid var(--primary);
}

ul > li.page-item > a {
    color: var(--primary);
    border:1px solid var(--primary);
}
.page-link:hover {
    background-color: var(--primary-highlight);
    color:white;
    border:1px solid var(--primary);
    transition: all var(--animation-speed);

}

a {
    color: var(--primary);
    text-decoration:none;
    font-weight:bold;
}
.kv-grid-table {
    border-radius: 12px;
    border-collapse: collapse;
    width: 100%;
    overflow: hidden;
}
.table-rounded {
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-style: normal;
    border-collapse: collapse;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

tbody tr.w0 td.w0 table.table.table-hover {
    margin-bottom: 0 !important;
    transition: all var(--animation-speed);

}


.navbar-toggler span {
    display: block;
    background-color: #ffffff;
    height: 3px;
    width: 25px;
    margin-top: 5px;
    margin-bottom: 5px;
    position: relative;
    left: 0;
    opacity: 1;
    transition: all 0.35s ease-out;
    transform-origin: center left;
}



.navbar-toggler span:nth-child(1) {
    transform: translate(0%, 0%) rotate(0deg);
}

.navbar-toggler span:nth-child(2) {
    opacity: 1;
}

.navbar-toggler span:nth-child(3) {
    transform: translate(0%, 0%) rotate(0deg);
}

.navbar-toggler span:nth-child(1) {
    margin-top: 0.3em;
}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
    transform: translate(15%, -33%) rotate(45deg);
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}
.nav-link {
    font-weight: bold;
}
.navbar-toggler:not(.collapsed) span:nth-child(3) {
    transform: translate(15%, 33%) rotate(-45deg);
}



.btn {
    border-radius: 10px;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ── Buttons: Penvrienden green family ───────────────────── */

/* Primary: brand green — bold, most prominent */
.btn-primary {
    background: linear-gradient(135deg, #3d5750 0%, #2d4238 100%);
    color: #e8f5ee;
    border: none;
    box-shadow: 0 4px 14px rgba(45, 66, 56, 0.45);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4a6860 0%, #3d5750 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(45, 66, 56, 0.55);
}
.btn-primary:active {
    background: #2d4238 !important;
    color: #ffffff;
}

/* Success: lighter, more vibrant green — clearly positive/go */
.btn-success {
    background: linear-gradient(135deg, #2e7d5a 0%, #1f6347 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(46, 125, 90, 0.38);
}
.btn-success:hover {
    background: linear-gradient(135deg, #389668 0%, #2e7d5a 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(46, 125, 90, 0.48);
}
.btn-success:active {
    background: #1f6347 !important;
    color: #ffffff;
}

.btn-outline-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Dialog modal headers always get the filled teal treatment (never the transparent outline) */
.modal-header.btn-warning,
.modal-header.btn-warning:hover,
.modal-header.btn-warning:focus {
    background: linear-gradient(135deg, #134e4a 0%, #0f3d3a 100%) !important;
    color: #ffffff !important;
    border-color: #134e4a !important;
    box-shadow: none !important;
    border-top-left-radius: var(--bs-modal-inner-border-radius, 0.5rem);
    border-top-right-radius: var(--bs-modal-inner-border-radius, 0.5rem);
}
.modal-header.btn-warning .bootstrap-dialog-title,
.modal-header.btn-warning .bootstrap-dialog-close-button .btn-modal-close {
    color: #ffffff !important;
}

/* Warning: outline — dark teal border, black-to-white gradient icon */
.btn-warning {
    background: transparent;
    color: #134e4a;
    border: 2.5px solid #0f766e;
    box-shadow: 0 2px 14px rgba(15, 118, 110, 0.20);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.btn-warning i,
.btn-warning .fa,
.btn-warning .fas,
.btn-warning .far,
.btn-warning .fab {
    background: linear-gradient(135deg, #1a1a1a 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.3s ease;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #134e4a 0%, #0f3d3a 100%);
    color: #ffffff;
    border-color: #134e4a;
    box-shadow: 0 6px 24px rgba(15, 78, 74, 0.45), 0 2px 8px rgba(0, 0, 0, 0.14);
}
.btn-warning:hover i,
.btn-warning:hover .fa,
.btn-warning:hover .fas,
.btn-warning:hover .far,
.btn-warning:hover .fab {
    background: linear-gradient(135deg, #888888 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn-warning:active {
    background: #0f3d3a !important;
    border-color: #0f3d3a !important;
    color: #ffffff;
}

/* Danger: deep rose-red — clearly destructive, still cohesive */
.btn-danger {
    background: linear-gradient(135deg, #9b2c2c 0%, #7b1d1d 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(123, 29, 29, 0.38);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #b83232 0%, #9b2c2c 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(123, 29, 29, 0.48);
}
.btn-danger:active {
    background: #7b1d1d !important;
    color: #ffffff;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.btn-light:hover {
    background: #ffffff;
    color: var(--primary-highlight);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modern Button Group Styling */
.btn-group .btn {
    margin: 0 0.25rem;
}

/* Icon styling in buttons */
.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Modern Page Header */
.page-header-modern {
    margin-bottom: 2rem;
    position: relative;
}

.page-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Modern Page Actions with Background */
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}


@media (max-width: 768px) {
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Modern Card Styles */
.panel-default {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.panel-default:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.panel-body {
    padding: 2rem;
}


/* Modern Form Styling */
.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Improved whitespace and spacing */
.main-content {
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .main-content {
        padding: 2.5rem 2rem;
    }
}

/* Modern Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #22543d;
}

.alert-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #742a2a;
}

.alert-info {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    color: #2c5282;
}

.alert-warning {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    color: #7c2d12;
}

/* Startvak Modernization */
.startvak {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,248,1) 100%);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.startvak:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

#creditsclick, #creditsclick2, #profileclick, #loginclick {
    cursor: pointer;
}

/* Additional 50px padding for screens smaller than md (768px) */
@media (max-width: 991.98px) {
    .main-content.presentation {
        padding: 87px 15px 15 px;
    }
    .main-content:not(.presentation) {
        padding: 70px 15px 15px;
    }
    /* When a full-bleed page-header precedes the container,
       the header already absorbed the top-nav offset */
    .page-header + .main-content,
    .page-header + .main-content.presentation {
        padding-top: 1.5rem;
    }
}

/* CSS (optional, if not using Bootstrap) */
.mypicture-wrapper {
    min-width: 100px /* whatever width you need */;
    min-height: 100px /* e.g., same as width for square avatars */ 250px;
}
.mypicture {
    display: inline-block; /* helps with sizing in some browsers */
}
.penvrienden-plaatje {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ensures full image fits within wrapper without distortion */
}

/* Make picker match Bootstrap primary color & spacing */
#emoji-picker-container .emoji-mart {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
}

#emoji-picker-container .emoji-mart-bar {
    background-color: #e9ecef !important;
    border-bottom: none !important;
}
#emoji-picker-container .emoji-mart-preview-emoji,
#emoji-picker-container .emoji-mart-category-label span,
#emoji-picker-container .emoji-mart-search input {
    color: #495057 !important;
}
#help_index {
    cursor: pointer;
}
/* Highlight primary color on active tab */
#emoji-picker-container .emoji-mart-bar .emoji-mart-tab.active,
#emoji-picker-container .emoji-mart-skin-emoji {
    border-color: #0d6efd; /* Bootstrap primary */
}
#emojiModal .modal-body {
    overflow-y: auto;
}

/* Make EmojiMart picker fit its container exactly */
.emoji-mart,
.emoji-mart-root {
    width: 100% !important;
    max-width: none !important; /* Removes calc() from data-emoji-set="native" */
}

/* Optional: Tighten spacing to avoid overflow in modal */
.emoji-mart-preview,
.emoji-mart-search,
.emoji-mart-categories {
    padding-left: 8px;
    padding-right: 8px;
}

/* ── Mail page ─────────────────────────────────────────────── */
.mail-page {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mail-section {
    margin-bottom: 1.5rem;
}

.mail-section-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1.5px solid rgba(61,87,80,0.13);
}

.mail-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.mail-section-icon--inbox {
    background: linear-gradient(135deg, #3d5750 0%, #5a7d74 100%);
    box-shadow: 0 3px 10px rgba(61,87,80,0.30);
}

.mail-section-icon--sent {
    background: linear-gradient(135deg, #7a9e98 0%, #8ab6c1 100%);
    box-shadow: 0 3px 10px rgba(122,158,152,0.30);
}

.mail-section-titles {
    flex: 1;
}

.mail-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2e2b;
    margin: 0;
    line-height: 1.2;
}

.mail-section-subtitle {
    font-size: 0.73rem;
    color: #8a9e9b;
    margin: 0;
}

.mail-section-count {
    background: rgba(61,87,80,0.09);
    color: #3d5750;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.mail-pager .page-link {
    color: #3d5750;
    border-color: rgba(61,87,80,0.18);
    border-radius: 8px !important;
    margin: 0 2px;
    font-size: 0.82rem;
    padding: 0.3rem 0.65rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.mail-pager .page-item.active .page-link {
    background: linear-gradient(135deg, #3d5750 0%, #5a7d74 100%);
    border-color: #3d5750;
    color: #fff;
}

.mail-pager .page-link:hover {
    background: rgba(61,87,80,0.09);
    color: #1a2e2b;
}

.mail-pager .page-item.disabled .page-link {
    color: #c0ceca;
    border-color: rgba(61,87,80,0.08);
}

.mail-section-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(61,87,80,0.12), transparent);
    margin: 0.25rem 0 2.25rem;
}

.mail-empty {
    text-align: center;
    padding: 2.25rem 1rem;
    color: #8a9e9b;
    background: rgba(255,255,255,0.45);
    border-radius: 12px;
    border: 1.5px dashed rgba(61,87,80,0.14);
}

.mail-empty i {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
    display: block;
    opacity: 0.4;
}

.mail-empty p {
    margin: 0;
    font-size: 0.875rem;
}

/* ── Mail card ─────────────────────────────────────────────── */
.mail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 14px rgba(0,0,0,0.07);
    margin-bottom: 0.875rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.mail-card:hover {
    box-shadow: 0 4px 20px rgba(61,87,80,0.16), 0 1px 4px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.mail-card--inbox {
    border-left: 4px solid #3d5750;
}

.mail-card--sent {
    border-left: 4px solid #8ab6c1;
}

.mail-card__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.9rem 3rem 0.75rem 0.9rem;
    position: relative;
}

.mail-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    user-select: none;
}

.mail-avatar--inbox {
    background: linear-gradient(135deg, #3d5750 0%, #5a7d74 100%);
    box-shadow: 0 2px 8px rgba(61,87,80,0.32);
}

.mail-avatar--sent {
    background: linear-gradient(135deg, #7a9e98 0%, #8ab6c1 100%);
    box-shadow: 0 2px 8px rgba(122,158,152,0.32);
}

.mail-avatar--photo {
    object-fit: cover;
    background: #e8efee;
}

.mail-card__meta {
    flex: 1;
    min-width: 0;
}

.mail-card__subject {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2e2b;
    margin: 0 0 0.22rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-card__participants {
    font-size: 0.73rem;
    color: #8a9e9b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    line-height: 1.3;
}

.mail-card__participants a,
.mail-card__participants a:visited {
    color: #3d5750 !important;
    text-decoration: none;
}

.mail-card__participants a:hover {
    text-decoration: underline;
}

.mail-arrow {
    color: #c8d5d3;
    font-size: 0.7rem;
}

.mail-card__date {
    font-size: 0.7rem;
    color: #a8b8b6;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 0.15rem;
    letter-spacing: 0.01em;
}

.mail-card__divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 0 0.9rem;
}

.mail-card__body {
    padding: 0.85rem 0.9rem 1rem;
    font-size: 0.875rem;
    color: #2d3b39;
    line-height: 1.72;
}

.mail-card__body p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── Delete button ─────────────────────────────────────────── */
.bericht-delete-btn {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.22);
    border: 1px solid rgba(0,0,0,0.08);
    text-decoration: none !important;
    font-size: 0.72rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease,
                transform 0.15s ease;
    cursor: pointer;
}

.bericht-delete-btn:hover,
.bericht-delete-btn:focus {
    background: rgba(204,38,38,0.90);
    color: #fff;
    border-color: rgba(180,30,30,0.4);
    box-shadow: 0 3px 12px rgba(204,38,38,0.42);
    transform: scale(1.15);
    outline: none;
    text-decoration: none !important;
}

.bericht-delete-btn i {
    pointer-events: none;
}
