/* Kompaktní tabulka registrovaných expedic */
.table-compact.table {
    margin-bottom: 0;
}
.table-compact.table > :not(caption) > * > * {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    vertical-align: middle;
    font-size: 0.97em;
}
body {
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.registration-container, .main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin: 14px auto;
    padding: 18px 40px 28px;
    width: 100%;
    max-width: 1180px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-section {
    text-align: center;
    margin-bottom: 12px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 10px;
    color: #222;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.header-section h1 {
    margin-bottom: 0.25rem;
    line-height: 1.15;
}

.header-section h4 {
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.header-section p {
    margin-bottom: 0;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.btn-primary {
    background: #2196f3;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.info-section {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 8px 12px;
    margin: 10px 0 12px;
    border-radius: 0 8px 8px 0;
}

.info-section h5 {
    margin-bottom: 0.5rem;
}

.info-section ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.info-section li + li {
    margin-top: 0.2rem;
}

.required {
    color: #dc3545;
}

.text-muted small {
    font-size: 0.85rem;
}

.footer-info {
    background: rgba(52, 58, 64, 0.95);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
}

.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code-container img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Přidáno z public_registrations.css --- */
.stats-row {
    margin-bottom: 20px;
}
.stat-card {
    background: linear-gradient(45deg, #5a8dee, #6a89cc);
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.status-badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}
.contest-running {
    background: #ffc107;
    color: #212529;
}
.contest-finished {
    background: #5a8dee;
    color: white;
}
.phase-registration {
    background: #17a2b8;
    color: white;
}
.phase-diary {
    background: #fd7e14;
    color: white;
}
.phase-evaluation {
    background: #6610f2;
    color: white;
}
.refresh-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.register-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}
.register-btn-bottom {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    display: inline-block;
    min-width: 280px;
}
.register-btn:hover,
.register-btn-bottom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}
.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(40, 167, 69, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
}
#pe33-map {
    height: 500px !important;
    width: 100% !important;
    border-radius: 8px;
    border: 2px solid #ddd;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.map-info {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #0066cc;
    font-size: 0.875rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.pe33-expedition-marker {
    background-color: #0066cc;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}
.leaflet-popup-content {
    margin: 12px 16px !important;
    line-height: 1.4 !important;
    font-size: 0.875rem !important;
}
.pe33-popup {
    max-width: 300px;
}
.pe33-popup h6 {
    margin: 0 0 8px 0 !important;
    color: #0066cc !important;
    font-weight: 600 !important;
}
.pe33-popup .popup-info {
    margin: 4px 0;
}
.pe33-popup .popup-info strong {
    display: inline-block;
    min-width: 60px;
    color: #495057;
}
.pe33-popup .badge {
    font-size: 0.75rem;
}
.alert-sm {
    padding: 0.375rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.75rem !important;
}
.map-legend {
    font-family: 'Segoe UI', Arial, sans-serif !important;
    background: rgba(255,255,255,0.95) !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    color: #333 !important;
    line-height: 1.4 !important;
}
.map-legend i {
    margin-right: 8px !important;
    font-size: 11px !important;
}
.leaflet-container {
    height: 500px !important;
    width: 100% !important;
}
@media (max-width: 768px) {
    .registration-container, .main-container {
        margin: 10px;
        padding: 20px;
    }
    #pe33-map {
        height: 400px !important;
        margin: 10px 0 !important;
        border-radius: 6px !important;
    }
    .leaflet-container {
        height: 400px !important;
    }
    .leaflet-popup-content {
        font-size: 12px !important;
        margin: 10px 12px !important;
    }
    .map-legend {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }
    .pe33-popup h6 {
        font-size: 14px !important;
    }
    .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }
    .d-flex.justify-content-between h3 {
        margin-bottom: 0 !important;
    }
    .register-btn-bottom {
        font-size: 1rem !important;
        padding: 12px 20px !important;
        min-width: 100% !important;
        margin-bottom: 10px;
    }
    .refresh-btn {
        bottom: 80px !important;
    }
}
@media (max-width: 576px) {
    #pe33-map {
        height: 350px !important;
        border-radius: 4px !important;
    }
    .leaflet-container {
        height: 350px !important;
    }
    .map-legend {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
    .register-btn-bottom {
        font-size: 0.95rem !important;
        padding: 10px 15px !important;
    }
    .main-container, .registration-container {
        padding: 10px !important;
    }
    .table-responsive {
        font-size: 0.85rem;
    }
    .badge {
        font-size: 0.7rem !important;
    }
}

/* Blinking button animation */
.blink-btn {
    animation: blink-warning 1.2s linear infinite;
}
@keyframes blink-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,193,7,0.7); }
    50% { box-shadow: 0 0 12px 4px rgba(255,193,7,0.9); }
}

/* Volací znak display styling */
.volaci-znak-display {
    color: #0056b3;
    font-weight: 600;
}

/* Search input width */
.search-input {
    width: 250px !important;
}

/* Log display styling */
.log-display {
    background: #222;
    color: #eee;
    font-family: monospace;
    max-height: 500px;
    overflow: auto;
}

.log-display pre {
    white-space: pre-wrap;
    word-break: break-all;
}

/* Notification badge clickable styling */
.notification-badge-clickable {
    cursor: pointer;
    font-size: 12px;
}
