/* DIGIPIN Decoder Tool Styles - Complete Fixed Version */
:root {
    --decoder-primary: #ff6725;
    --decoder-primary-dark: #e64500;
    --decoder-primary-light: #ff8a50;
    --decoder-secondary: #ff8a50;
    --decoder-accent: #ff6725;
    --decoder-dark: #2C3E50;
    --decoder-gray: #6c757d;
    --decoder-light-gray: #f8f9fa;
    --decoder-success: #28a745;
    --decoder-glass: rgba(255, 255, 255, 0.1);
    --decoder-glass-border: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.decoder-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8a50 100%);
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 103, 37, 0.2);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: float 20s infinite ease-in-out;
}

.shape1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 7s;
}

.shape3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 60%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-30px, 30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(20px, -20px) rotate(240deg) scale(0.9);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: var(--decoder-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--decoder-glass-border);
    padding: 20px 40px;
    border-radius: 100px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.8s ease-out;
}

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

.hero-logo i {
    font-size: 3rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.hero-logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: white;
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounceIn 1s ease-out;
    animation-fill-mode: both;
}

.badge-item:nth-child(1) { animation-delay: 0.1s; }
.badge-item:nth-child(2) { animation-delay: 0.2s; }
.badge-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Main Tool Card */
.decoder-tool-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

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

/* Decoder Input Section */
.decoder-input-section {
    padding: 50px 40px;
    background: white;
}

.digipin-input-wrapper {
    max-width: 600px;
    margin: 0 auto 30px;
}

.input-group {
    display: flex;
    position: relative;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 15px 40px rgba(255, 103, 37, 0.15);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--decoder-accent);
    z-index: 1;
}

.digipin-input {
    flex: 1;
    padding: 22px 25px 22px 60px;
    border: none;
    background: transparent;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    color: var(--decoder-dark);
}

.digipin-input:focus {
    outline: none;
}

.digipin-input::placeholder {
    color: #adb5bd;
    letter-spacing: 2px;
}

.decode-btn {
    padding: 22px 35px;
    background: var(--decoder-primary);
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.decode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.decode-btn:hover::before {
    left: 100%;
}

.decode-btn:hover {
    background: var(--decoder-primary-dark);
}

.input-helper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
    color: var(--decoder-gray);
    font-size: 0.9rem;
}

/* Example Codes */
.example-codes {
    margin-top: 40px;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.example-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 15px 20px;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.example-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 103, 37, 0.1), transparent);
    transition: left 0.5s;
}

.example-btn:hover::before {
    left: 100%;
}

.example-btn:hover {
    border-color: var(--decoder-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 103, 37, 0.15);
}

.example-code {
    display: block;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--decoder-dark);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.example-location {
    display: block;
    color: var(--decoder-gray);
    font-size: 0.85rem;
}

/* Decoder Result Section */
.decoder-result {
    display: none;
    background: #f8f9fa;
    padding: 40px;
    animation: resultFadeIn 0.5s ease;
}

.decoder-result.show {
    display: block;
}

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

/* Result Card */
.result-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.result-header h3 {
    font-size: 1.5rem;
    color: var(--decoder-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-header h3 i {
    color: var(--decoder-accent);
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    background: var(--decoder-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: var(--decoder-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 103, 37, 0.3);
}

/* Coordinates Display */
.coordinates-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.coord-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.coord-item label {
    display: block;
    color: var(--decoder-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.coord-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--decoder-dark);
    font-family: 'Courier New', monospace;
}

/* Location Details Grid */
.location-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--decoder-accent);
    width: 40px;
    height: 40px;
    background: rgba(255, 103, 37, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item label {
    display: block;
    color: var(--decoder-gray);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.detail-item span {
    display: block;
    color: var(--decoder-dark);
    font-weight: 600;
}

/* Map Container - FIXED */
.map-container {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #e9ecef; /* Visible background while loading */
}

#decoderMap, .decoder-map-element {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    background: #e0e0e0; /* Ensure visible background */
}

/* Force Leaflet container styles */
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
    background: #f0f0f0;
}

/* Ensure tiles are visible */
.leaflet-tile-container {
    opacity: 1 !important;
}

.leaflet-tile {
    opacity: 1 !important;
    visibility: visible !important;
}

.leaflet-tile-loaded {
    opacity: 1 !important;
}

/* Map loading state */
#decoderMap.loading::after {
    content: 'Loading map tiles...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-overlay-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.map-control-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--decoder-dark);
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: var(--decoder-accent);
    color: white;
    transform: scale(1.1);
}

/* Custom Map Marker */
.digipin-marker {
    background: var(--decoder-primary);
    border: 3px solid white;
    border-radius: 50%;
    width: 20px !important;
    height: 20px !important;
    box-shadow: 0 0 20px rgba(255, 103, 37, 0.5), 0 3px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000 !important;
}

.marker-pulse {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 20px;
    height: 20px;
    border: 3px solid var(--decoder-primary);
    border-radius: 50%;
    animation: markerPulse 2s infinite;
    opacity: 0.8;
}

@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Custom Popup Styling - FIXED */
.digipin-custom-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    border: 2px solid #ff6725;
    overflow: hidden;
}

.digipin-custom-popup .leaflet-popup-tip {
    background: white;
    border: 2px solid #ff6725;
    border-top: none;
    border-left: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.digipin-custom-popup .leaflet-popup-content {
    margin: 0;
    width: 100% !important;
    padding: 0;
}

.digipin-custom-popup .leaflet-popup-close-button {
    color: #ff6725;
    font-size: 24px;
    font-weight: 300;
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
    padding: 0;
    text-align: center;
    line-height: 30px;
}

.digipin-custom-popup .leaflet-popup-close-button:hover {
    color: #e64500;
    background: rgba(255, 103, 37, 0.1);
    border-radius: 50%;
}

/* Popup Content Structure */
.digipin-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2C3E50;
    width: 100%;
}

.popup-header {
    background: linear-gradient(135deg, #ff6725 0%, #ff8a50 100%);
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.popup-body {
    padding: 20px;
}

.popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-row:last-child {
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.popup-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.popup-value {
    font-size: 15px;
    font-weight: 700;
    color: #2C3E50;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.popup-footer {
    text-align: center;
    padding: 15px 20px;
    background: #f8f9fa;
    margin: 0 -20px -20px -20px;
}

.popup-footer small {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Bounding Box Info */
.bounding-box-info {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.bounding-box-info h4 {
    color: var(--decoder-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bounding-box-info h4 i {
    color: var(--decoder-accent);
}

.bounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.bound-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.bound-item label {
    display: block;
    color: var(--decoder-gray);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.bound-item span {
    display: block;
    color: var(--decoder-dark);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Info Section */
.info-section {
    background: linear-gradient(135deg, #fff5f2 0%, #ffebe4 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--decoder-primary);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--decoder-primary) 0%, var(--decoder-primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(255, 103, 37, 0.3);
}

.info-card h4 {
    color: var(--decoder-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.info-card p {
    color: #6c757d;
    line-height: 1.7;
}

/* Article Section */
.article-section {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.article-section h2 {
    color: var(--decoder-dark);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.article-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--decoder-primary);
    border-radius: 2px;
}

.article-content {
    margin-top: 40px;
}

.article-content h5 {
    color: var(--decoder-dark);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-content h5 i {
    color: var(--decoder-primary);
}

.article-content p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-content ul {
    list-style: none;
    padding-left: 0;
}

.article-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #6c757d;
    line-height: 1.8;
}

.article-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--decoder-primary);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--decoder-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    color: var(--decoder-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--decoder-dark);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.5rem;
}

/* Ensure proper z-index for map elements */
.leaflet-pane {
    z-index: auto !important;
}

.leaflet-popup-pane {
    z-index: 700 !important;
}

.leaflet-marker-pane {
    z-index: 600 !important;
}

.leaflet-tile-pane {
    z-index: 200 !important;
}

.leaflet-overlay-pane {
    z-index: 400 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .decoder-hero {
        padding: 40px 20px;
    }

    .hero-logo h1 {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .decoder-input-section {
        padding: 30px 20px;
    }

    .input-group {
        flex-direction: column;
    }

    .digipin-input {
        padding: 20px 20px 20px 60px;
    }

    .decode-btn {
        width: 100%;
        justify-content: center;
        padding: 20px;
    }

    .example-grid {
        grid-template-columns: 1fr;
    }

    .coordinates-display {
        grid-template-columns: 1fr;
    }

    .coord-value {
        font-size: 1.5rem;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-actions {
        width: 100%;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
    }

    .map-container {
        height: 400px;
    }

    .article-section {
        padding: 30px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .bounds-grid {
        grid-template-columns: 1fr 1fr;
    }

    .digipin-custom-popup .leaflet-popup-content-wrapper {
        max-width: 90vw;
    }

    .popup-header {
        font-size: 14px;
        padding: 12px 15px;
    }

    .popup-body {
        padding: 15px;
    }

    .popup-label,
    .popup-value {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .decoder-hero,
    .map-overlay-controls,
    .action-btn,
    .toast,
    .loading-overlay {
        display: none !important;
    }

    .decoder-result {
        display: block !important;
    }

    .map-container {
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .decoder-tool-card {
        border: 2px solid var(--decoder-dark);
    }

    .digipin-input {
        border: 2px solid var(--decoder-dark);
    }

    .decode-btn {
        border: 2px solid white;
    }
}

/* Leaflet Map Cursor */
.leaflet-grab {
    cursor: grab !important;
}

.leaflet-grabbing {
    cursor: grabbing !important;
}

/* Fix for any theme conflicts */
.decoder-tool-card * {
    box-sizing: border-box;
}

.decoder-tool-card input,
.decoder-tool-card button {
    font-family: inherit;
}

/* Ensure map controls are above map tiles */
.map-overlay-controls {
    pointer-events: auto;
}

.leaflet-control-container {
    pointer-events: none;
}

.leaflet-control-container > * {
    pointer-events: auto;
}
