html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* ===================================================================== */
/* ABHOLONDO-ONLY CARD / BACKGROUND STYLING (matches Abholondo template) */
/* ===================================================================== */
body.dark-mode {
    background-color: #000000;
}

.dark-mode .card-header {
    background-color: #e0e0e0;
    padding: 10px;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

/* Narrower signed-out detail cards (Abholondo Messages/Pickups/Partners/Account) */
.center {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Message background color for details sections (matches Abholondo template) */
.msg-background-color {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
}

/* Abholondo OOE Service Verification Badge */
.abholondo-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #E9F6E9 0%, #d4ead4 50%, #E9F6E9 100%);
    color: #000000;
    padding: 12px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.abholondo-verified-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.abholondo-verified-badge:hover {
    text-decoration: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.abholondo-verified-badge:active {
    transform: translateY(-1px) scale(0.98);
}

.abholondo-verified-badge img {
    height: 1.4em;
    width: auto;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Sicherstellen, dass Footer nicht fixiert bleibt */
footer, .footer {
    position: static !important;
    bottom: auto !important;
    width: 100%;
    z-index: 1 !important;
    background-color: #ffffff;
}

/* Dark Mode Footer - Black background with gray text */
body.dark-mode footer,
body.dark-mode .footer {
    background-color: #000000;
    margin: 0;
    padding: 4px 0;
}

body.dark-mode .footer-item,
body.dark-mode .footer-item a,
body.dark-mode .footer-language-dropdown button {
    color: #c0c0c0 !important;
}

body.dark-mode .footer-item a:hover,
body.dark-mode .footer-language-dropdown button:hover {
    color: #e0e0e0 !important;
}

body.dark-mode .server-status-led {
    border-color: #ffffff;
}

/* Dark Mode Language Dropdown - Dark gray text for menu items */
body.dark-mode .footer-language-dropdown .dropdown-item {
    color: #4a4a4a !important;
}

body.dark-mode .footer-language-dropdown .dropdown-item:hover {
    color: #4a4a4a !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .footer-language-dropdown .dropdown-item.active {
    color: #4a4a4a !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ===================================================================== */
/* GLOBAL TABLE TEXT OVERFLOW WITH TOOLTIP */
/* ===================================================================== */
/* Verhindert Zeilenumbrüche in Tabellen-Zellen und zeigt Tooltip */
table td, table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* Standardbreite, kann per inline-style überschrieben werden */
    position: relative;
    cursor: default;
}

/* Tooltip bei Hover - nur wenn Text abgeschnitten ist */
table td[data-full-text]:hover::after,
table th[data-full-text]:hover::after {
    content: attr(data-full-text);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    max-width: 300px;
    font-size: 0.9rem;
    margin-top: 4px;
    pointer-events: none;
}

/* Optional: Bestimmte Spalten von der Regel ausnehmen */
table td.no-ellipsis, table th.no-ellipsis {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
}

/* Aktions-Spalten (Buttons) nicht abschneiden */
table td:has(button), table td:has(.btn), table td:has(.btn-group) {
    white-space: nowrap;
    overflow: visible;
    max-width: none;
}

/* ===================================================================== */
/* SERVER STATUS LED - Hub + Disponator Status */
/* ===================================================================== */
.server-status-led {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
    cursor: pointer;
}

.server-status-led.led-online-both {
    background-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.8);
}

.server-status-led.led-online-partial {
    background-color: #ffc107;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.8);
}

.server-status-led.led-offline {
    background-color: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.8);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===================================================================== */
/* USERFILES - Values Column Overflow Badge */
/* ===================================================================== */
[data-values-cell] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.userFiles-badge-overflow {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #999;
    padding: 0.15rem 0.35rem;
    margin: 0.05rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.userFiles-badge-overflow:hover {
    background-color: #e0e0e0;
    border-color: #666;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.userFiles-badge-overflow:active {
    transform: scale(0.95);
}

/* ===================================================================== */
/* ABHOLONDO IFRAME LOADING SPINNER */
/* ===================================================================== */
.iframe-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.spinner-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring::after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: spinner-animation 1.2s linear infinite;
}

@keyframes spinner-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner-subtitle {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}


/* Language dropdown with flags (Views/Shared/_LanguageDropdown.cshtml), same look as the language select of the footer */
.lang-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    font-size: 0.8rem;
    border: 1px solid #ced4da;
}

.lang-dropdown img.flag,
.lang-dropdown .dropdown-item img.flag {
    width: 20px;
    height: 15px;
    margin-right: 6px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-dropdown .dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
    font-size: 0.85rem;
}

