:root {
    --rust-red: #c15345;
    --rust-dark: #9e4338;
    --rust-grad: linear-gradient(135deg, #d86354 0%, #a13d31 100%);
    --forest-green: #377c45;
    --forest-grad: linear-gradient(135deg, #439652 0%, #2b5f35 100%);
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-dim: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
}

.header {
    text-align: center;
    padding: 10px 0 20px;
}

.brand-logo {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.brand-logo:active {
    transform: scale(0.95);
}

.hidden {
    display: none !important;
}

/* Glass Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

/* Animations */
.view-section {
    width: 100%;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Dashboard */
.stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    flex: 1;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

.stat-card h3 {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--forest-green);
    line-height: 1;
}

.stat-value.highlight {
    color: var(--text-dark);
}

.stat-card p {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* MAIN ACTION BUTTON */
.main-action-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.btn-pulse-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--rust-red);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulseScale 2s infinite ease-out;
}

@keyframes pulseScale {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

.primary-btn-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--rust-grad);
    color: white;
    font-size: 24px;
    font-weight: 900;
    border: 8px solid white;
    box-shadow: 0 15px 40px rgba(193, 83, 69, 0.4);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
    line-height: 1.1;
    gap: 2px;
}

.primary-btn-large:active {
    transform: scale(0.9);
    box-shadow: 0 5px 20px rgba(193, 83, 69, 0.2);
}

.primary-btn-large .icon {
    font-size: 48px;
    margin-bottom: 0;
    line-height: 1;
}

.gallery-link {
    margin-top: 30px;
    background: rgba(0,0,0,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* History List */
.history-card {
    margin-top: auto;
}

.history-card h3 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.history-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.history-list li:last-child {
    border-bottom: none;
}

/* Map Screen */
.map-full-card {
    padding: 0;
    height: calc(100vh - 200px);
    border-radius: 30px;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.leaderboard-item.me {
    background: linear-gradient(to right, rgba(193, 83, 69, 0.05), transparent);
    margin: 8px -24px;
    padding: 16px 24px;
    border-left: 4px solid var(--rust-red);
    font-weight: 700;
}

.rank {
    width: 40px;
    font-weight: 900;
    color: var(--text-dim);
    font-size: 18px;
}

.leaderboard-item:nth-child(1) .rank { color: #f59e0b; }
.leaderboard-item:nth-child(2) .rank { color: #94a3b8; }
.leaderboard-item:nth-child(3) .rank { color: #b45309; }

.nick {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.count {
    color: var(--forest-green);
    font-weight: 800;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Modern Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 10px 0 10px;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    height: 100%;
    justify-content: center;
}

.nav-item.active {
    color: var(--rust-red);
    transform: translateY(-5px);
}

.nav-icon {
    font-size: 24px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-image-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-item.active .nav-icon {
    transform: scale(1.2);
}

.nav-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms & Inputs */
input, textarea {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 16px;
    width: 100%;
    font-size: 16px;
    transition: all 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--rust-red);
    background: white;
    box-shadow: 0 0 0 4px rgba(193, 83, 69, 0.1);
}

.primary-btn-small {
    background: var(--rust-grad);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--forest-grad);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 12px;
    box-shadow: 0 10px 20px rgba(55, 124, 69, 0.2);
}

.secondary-btn {
    background: transparent;
    color: var(--text-dim);
    font-weight: 700;
}

.share-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.2);
}

.gps-status {
    font-size: 12px;
    font-weight: 700;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-div-icon {
    background-image: url('can-marker-transparent.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    font-weight: 900;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cluster-can-icon {
    background-image: url('can-marker-transparent.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.can-green {
    background-image: url('can_marker_green_transparent.png') !important;
}

.can-teal {
    background-image: url('can_marker_teal_transparent.png') !important;
}

.can-blue {
    background-image: url('can_marker_blue_transparent.png') !important;
}

.can-purple {
    background-image: url('can_marker_purple_transparent.png') !important;
}

.can-red {
    background-image: url('can_marker_red_transparent.png') !important;
}



/* --- Oprava zobrazení náhledu fotky a formuláře --- */
.photo-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dim);
}

/* --- Galerie Uživatelů --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 10px;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Čtvercový poměr 1:1 */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background-color: #f1f5f9;
    transition: all 0.2s;
}

.gallery-item:active, .gallery-item.selected {
    transform: scale(0.95);
    border-color: var(--rust-red);
    box-shadow: 0 0 0 3px rgba(193, 83, 69, 0.2);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    z-index: 5;
}

/* Nastavení řádků v žebříčku jako klikacích */
.leaderboard-item, #myStatsCard {
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.leaderboard-item:active, #myStatsCard:active {
    transform: scale(0.98);
}

/* Offline Sync Banner */
.sync-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(55, 124, 69, 0.15);
    border: 1px solid rgba(55, 124, 69, 0.25);
    padding: 12px 18px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--forest-green);
    animation: fadeIn 0.3s ease;
}

.sync-icon {
    display: inline-block;
    animation: spin 2s linear infinite;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Real-time Activity Toast */
.activity-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 14px 20px;
    animation: slideUpToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpToast {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Like Button Scaling animation */
#likeBtn:active img {
    transform: scale(1.4);
}

/* --- Sběratelský Wrapped (Spotify / Instagram Stories styl - Světlé téma) --- */
.wrapped-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
}

.wrapped-modal.hidden {
    display: none !important;
}

/* Progress bar nahoře */
.wrapped-progress-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 20020;
}

.wrapped-progress-bar {
    height: 3px;
    flex: 1;
    background: rgba(15, 23, 42, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.wrapped-progress-fill {
    height: 100%;
    width: 0%;
    background: #0f172a;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Tlačítko zavřít */
.wrapped-close-btn {
    position: absolute;
    top: 35px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(15, 23, 42, 0.5);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    z-index: 20030;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.wrapped-close-btn:hover {
    color: #0f172a;
}

/* Navigační zóny */
.wrapped-nav-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 20015;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wrapped-nav-zone.left {
    left: 0;
}

.wrapped-nav-zone.right {
    right: 0;
    width: 65%; /* Větší zóna pro posun vpřed */
}

/* Kontejner slidů */
.wrapped-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20010;
}

/* Jednotlivý slide */
.wrapped-slide {
    position: absolute;
    width: 90%;
    max-width: 360px;
    height: 80vh;
    max-height: 640px; /* Aby se vešel do formátu 9:16 na všech displejích */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 24px 20px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.wrapped-slide.active {
    display: flex !important;
    animation: wrappedSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Obsah slidu */
.wrapped-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Dekorativní prvky */
.wrapped-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-emoji {
    position: absolute;
    font-size: 40px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: floatAnim 6s ease-in-out infinite;
}

.floating-emoji.e1 { top: 15%; left: 10%; animation-delay: 0s; }
.floating-emoji.e2 { top: 60%; right: 10%; animation-delay: 2s; }
.floating-emoji.e3 { top: 40%; left: 80%; animation-delay: 4s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* Polaroid fotorámeček */
.polaroid-wrapper {
    background: #f8fafc;
    padding: 10px 10px 30px 10px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transform: rotate(-3deg);
    width: 80%;
    max-width: 200px;
    margin: 10px auto;
}

.polaroid-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Typografie Wrapped */
.wrapped-subtitle {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--forest-green);
    margin-top: 5px;
    display: block;
}

.wrapped-slide-badge {
    font-size: 10px;
    font-weight: 900;
    background: rgba(16, 185, 129, 0.1);
    color: var(--forest-green);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wrapped-title-glowing {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin: 10px 0;
    background: linear-gradient(135deg, var(--forest-green) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(59,130,246,0.1));
    letter-spacing: -1px;
}

.wrapped-tag {
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.15);
    display: inline-block;
    margin-bottom: 10px;
}

.wrapped-text {
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 10px;
    max-width: 90%;
}

.wrapped-slide h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 5px 0;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.wrapped-slide-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.wrapped-highlight {
    font-size: 18px;
    font-weight: 800;
    color: var(--forest-green);
    margin: 5px 0;
}

.wrapped-slide-notes {
    font-size: 11px;
    font-style: italic;
    color: #64748b;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto 5px auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wrapped-giant-number {
    font-size: 54px;
    font-weight: 900;
    background: linear-gradient(to bottom, #0f172a 30%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(59,130,246,0.15));
    line-height: 1;
    margin: 5px 0;
    letter-spacing: -2px;
}

.wrapped-can-avatar-container {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.large-can-icon {
    width: 80px;
    height: 110px;
    font-size: 20px;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
    background-size: contain;
    animation: pulseCan 2s infinite ease-in-out;
}

@keyframes pulseCan {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06) rotate(3deg); }
}

.wrapped-brand-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--forest-green);
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(16,185,129,0.1);
}

/* Impact Grid */
.wrapped-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin: 10px 0;
}

.wrapped-impact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrapped-impact-card .val {
    font-size: 18px;
    font-weight: 900;
    color: var(--forest-green);
}

.wrapped-impact-card .lbl {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Gift Box */
.wrapped-gift-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 18px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.gift-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
    animation: bounceGift 1.5s infinite;
}

@keyframes bounceGift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.wrapped-thanks-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--forest-green);
    margin: 0 0 2px 0;
}

.wrapped-thanks-sub {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

.wrapped-share-tip {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* --- Administrátorský Korekční Panel (Admin Panel) --- */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    animation: fadeInAdmin 0.25s ease-out;
}

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

.admin-modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 0; /* Override margin-bottom z .card */
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.admin-modal-header h2, .admin-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.admin-close-x {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dim);
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.admin-close-x:hover {
    color: var(--text-dark);
}

.admin-filters-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
}

.admin-filters-row input, .admin-filters-row select {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-family: inherit;
    background: white;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.admin-filters-row input:focus, .admin-filters-row select:focus {
    border-color: var(--forest-green);
}

.admin-list-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    min-height: 250px;
    background: white;
}

.admin-list-header {
    display: grid;
    grid-template-columns: 80px 1fr 60px 70px 30px 50px;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-items: center;
}

.admin-pickups-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

.admin-pickup-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px 70px 30px 50px;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11px;
    align-items: center;
    color: var(--text-dark);
    transition: background 0.2s;
}

.admin-pickup-row:hover {
    background: #f8fafc;
}

.admin-pickup-row .date {
    color: var(--text-dim);
    font-weight: 700;
}

.admin-pickup-row .nick {
    font-weight: 900;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

.admin-pickup-row .count {
    font-weight: 800;
    color: var(--forest-green);
}

.admin-pickup-row .badge-cell {
    display: flex;
    align-items: center;
}

.admin-pickup-row .verified-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-badge {
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: inline-block;
}

.admin-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--forest-green);
}

.admin-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.admin-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.admin-badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.admin-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.admin-edit-btn:hover {
    transform: scale(1.15);
}

/* Úprava konkrétního sběru */
.admin-edit-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.admin-edit-photo-container {
    width: 100%;
    max-height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-edit-photo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.admin-edit-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.admin-pickup-meta {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.admin-pickup-meta strong {
    color: var(--text-dark);
}

.admin-cans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 5px;
}

.admin-can-edit-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.admin-can-edit-row select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    background: white;
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
}

.admin-can-edit-row .can-brand {
    flex: 1;
    min-width: 0;
}

.admin-can-edit-row .can-volume {
    width: 90px;
}

.admin-can-edit-row .delete-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--rust-red);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.admin-can-edit-row .delete-btn:hover {
    opacity: 0.7;
}

.secondary-btn-small {
    background: white;
    border: 1px dashed #cbd5e1;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn-small:hover {
    border-color: var(--forest-green);
    color: var(--forest-green);
    background: rgba(55, 124, 69, 0.02);
}

@media (min-width: 520px) {
    .admin-modal-content {
        max-width: 750px !important;
    }
    
    .admin-edit-layout {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 20px;
    }
    
    .admin-edit-photo-container {
        max-height: 380px;
        height: 100%;
    }
}


