.mindelys-soldat {
    display: flex;
    align-items: flex-start;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
}

.mindelys-soldat-left {
    flex: 0 0 150px;
    text-align: center;
}

.soldat-foto {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.mindelys-info-felt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.mindelys-info-felt p {
    margin: 0;
}

.mindelys-felt-ikon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.soldat-foto-ramme {
    text-align: center;
    margin: 24px 0 30px;
}

.soldat-navn-over-foto {
    text-align: center;
    margin: 0 0 14px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Årsdag-banner */
.aarsdag-banner {
    background: linear-gradient(160deg, #0d2b45 0%, #0a4a70 60%, #0d2b45 100%);
    color: #fff;
    text-align: center;
    padding: 32px 24px 28px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
    border-top: 4px solid #c8a84b;
}

.aarsdag-banner-ikon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(255, 180, 0, 0.7));
    animation: mindelys-flamme 2.8s ease-in-out infinite;
    transform-origin: bottom center;
    display: inline-block;
}

.aarsdag-banner-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c8a84b;
    margin-bottom: 10px;
}

.aarsdag-banner-tekst {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 10px;
}

.aarsdag-banner-sub {
    font-size: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.70);
    letter-spacing: 0.04em;
}

/* Flamme-animation på lys */
@keyframes mindelys-flamme {
    0%   { transform: rotate(-3deg) scale(1)    translateY(0);    filter: drop-shadow(0 0 6px rgba(255,160,0,0.75)); }
    20%  { transform: rotate(2.5deg) scale(1.08) translateY(-2px); filter: drop-shadow(0 0 10px rgba(255,200,0,0.90)); }
    50%  { transform: rotate(-2deg) scale(1.04) translateY(-1px); filter: drop-shadow(0 0 8px rgba(255,140,0,0.80)); }
    75%  { transform: rotate(1.5deg) scale(0.96) translateY(1px);  filter: drop-shadow(0 0 5px rgba(255,160,0,0.65)); }
    100% { transform: rotate(-3deg) scale(1)    translateY(0);    filter: drop-shadow(0 0 6px rgba(255,160,0,0.75)); }
}

.lys-billede {
    animation: mindelys-flamme 2.8s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Relaterede soldater — faldt samme dag */
.mindelys-relaterede {
    margin: 28px 0 20px;
}

.relaterede-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin: 0 0 12px;
}

.relaterede-kort-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.relateret-kort {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 120px;
    transition: transform 0.2s;
}

.relateret-kort:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.mindelys-relaterede .relateret-foto {
    width: 100px !important;
    height: 120px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    border: 1px solid rgba(0,0,0,0.10) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.10) !important;
    margin-bottom: 8px !important;
    display: block !important;
    max-width: none !important;
}

.mindelys-relaterede .relateret-foto-placeholder {
    width: 100px;
    height: 120px;
    border-radius: 10px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 8px;
}

.mindelys-relaterede .relateret-navn {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    display: block;
}

.mindelys-relaterede .relateret-rang {
    font-size: 11px;
    color: #777;
    display: block;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .relateret-kort { width: 100px; }
    .mindelys-relaterede .relateret-foto,
    .mindelys-relaterede .relateret-foto-placeholder { width: 86px !important; height: 104px !important; }
}

.mindelys-filter-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #999;
    transition: color 0.2s, border-color 0.2s;
}

.mindelys-filter-link:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.soldat-foto-large {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.10),
        0 20px 50px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.soldat-foto-large:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 16px 35px rgba(0, 0, 0, 0.15),
        0 30px 65px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
}

.mindelys-soldat-right {
    flex: 1;
    padding-left: 20px;
}

.mindelys-soldat-right h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.mindelys-soldat-right p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
}

.mindelys-toggle {
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.mindelys-toggle:hover {
    background-color: #005a87;
}

.mindelys-detaljer {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.lys-sortering {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #555;
}

.lys-sort-knap {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #ccc;
    color: #555;
    background: #f5f5f5;
    transition: background 0.2s, color 0.2s;
}

.lys-sort-knap:hover {
    background: #e0e0e0;
    text-decoration: none;
    color: #333;
}

.lys-sort-knap.aktiv {
    background: #ddd;
    color: #333;
    border-color: #bbb;
}

.lys-liste {
    margin-top: 20px;
}

.lys-indgang {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.lys-billede {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slet-lys {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.slet-lys:hover {
    background-color: #c9302c;
}


.tand-lys-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tand-lys-form input,
.tand-lys-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fdfdfd;
}

.tand-lys-form button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.tand-lys-form button:hover {
    background-color: #218838;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pagination .current {
    background-color: #0073aa;
    color: white;
    border: none;
}

#mindelys-sortering {
    margin-bottom: 20px;
}

#mindelys-sortering select,
#mindelys-sortering button {
    margin-right: 10px;
}


// WIDGET

.mindelys-widget {
    text-align: center;
    margin: 20px 0;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd; /* Border with rounded corners */
}

.soldat-foto-widget {
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* Rounded corners for image */
    margin-bottom: 15px;
    cursor: pointer; /* Indicate that the image is clickable */
}

.mindelys-widget p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

.mindelys-widget strong {
    font-weight: bold;
}

.mindelys-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mindelys-button:hover {
    background-color: #005a87;
}

/* Admin-side styling */
.wrap {
    padding: 20px;
}

.wp-list-table {
    margin-top: 20px;
}

.wp-list-table th,
.wp-list-table td {
    padding: 10px;
}

.slet-lys-admin {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.slet-lys-admin:hover {
    background-color: #c82333;
}