/* Comfy Table Custom Styles */
.comfy-table-wrapper {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    background: #fff;
}

.comfy-table {
    width: 100%;
    border-collapse: collapse;
}

.comfy-table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.comfy-table tbody td {
    padding: 1.25rem 1.5rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.comfy-table tbody tr {
    transition: all 0.25s ease-in-out;
    background-color: #ffffff;
}

.comfy-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 2;
}

.comfy-table tbody tr:last-child td {
    border-bottom: none;
}

/* Custom Badges */
.badge-klaster {
    padding: 0.375rem 0.625rem;
    display: inline-flex;
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 600;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}
/* Tersinkronisasi dengan warna utama (dashboard.css) */
.badge-pertanian, .badge-perkebunan { background-color: rgba(52, 211, 153, 0.15); color: #10b981; border-color: rgba(52, 211, 153, 0.2); }
.badge-peternakan, .badge-perikanan { background-color: rgba(20, 184, 166, 0.15); color: #14b8a6; border-color: rgba(20, 184, 166, 0.2); }
.badge-pariwisata { background-color: rgba(251, 146, 60, 0.15); color: #f97316; border-color: rgba(251, 146, 60, 0.2); }
.badge-industri-olahan, .badge-olahan-tangan, .badge-olahan-makanan, .badge-industri-kreatif { background-color: rgba(232, 121, 249, 0.15); color: #d946ef; border-color: rgba(232, 121, 249, 0.2); }

/* Unique Subklaster Badges */
.badge-sub-pertanian { background-color: rgba(16, 185, 129, 0.15); color: #10b981; border-color: rgba(16, 185, 129, 0.2); } /* Emerald */
.badge-sub-perkebunan { background-color: rgba(132, 204, 22, 0.15); color: #84cc16; border-color: rgba(132, 204, 22, 0.2); } /* Lime */
.badge-sub-peternakan { background-color: rgba(249, 115, 22, 0.15); color: #f97316; border-color: rgba(249, 115, 22, 0.2); } /* Orange */
.badge-sub-perikanan { background-color: rgba(6, 182, 212, 0.15); color: #06b6d4; border-color: rgba(6, 182, 212, 0.2); } /* Cyan */

.badge-destinasi-wisata { background-color: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); } /* Blue */
.badge-desa-wisata { background-color: rgba(139, 92, 246, 0.15); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.2); } /* Purple */

.badge-sub-olahantangan { background-color: rgba(236, 72, 153, 0.15); color: #ec4899; border-color: rgba(236, 72, 153, 0.2); } /* Pink */
.badge-sub-olahanmakanan { background-color: rgba(244, 63, 94, 0.15); color: #f43f5e; border-color: rgba(244, 63, 94, 0.2); } /* Rose */
.badge-sub-industrikreatif { background-color: rgba(217, 70, 239, 0.15); color: #d946ef; border-color: rgba(217, 70, 239, 0.2); } /* Fuchsia */

.badge-sub-jalan { background-color: rgba(120, 113, 108, 0.15); color: #78716c; border-color: rgba(120, 113, 108, 0.2); } /* Stone */
.badge-sub-ekonomi { background-color: rgba(234, 179, 8, 0.15); color: #eab308; border-color: rgba(234, 179, 8, 0.2); } /* Yellow */
.badge-sub-pengairan { background-color: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.2); } /* Sky */
.badge-sub-pendidikan { background-color: rgba(168, 85, 247, 0.15); color: #a855f7; border-color: rgba(168, 85, 247, 0.2); } /* Purple */

.badge-pembangunan { background-color: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }
.badge-default { background-color: rgba(41, 37, 36, 0.15); color: #57534e; border-color: rgba(41, 37, 36, 0.2); }

/* Action Button */
.action-btn {
    color: #9ca3af;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
}
.comfy-table tbody tr:hover .action-btn {
    color: #2563eb;
    background-color: #eff6ff;
    border-color: #93c5fd;
}
.action-btn:focus {
    outline: none;
}
.text-dark-custom { color: #111827; font-weight: 500; }
.text-muted-custom { color: #4b5563; font-weight: 500; }

/* Custom Leaflet Popup */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
    padding: 0;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}
.custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, sans-serif;
    width: auto !important;
}
.custom-leaflet-popup .leaflet-popup-tip-container {
    margin-top: -1px;
}
.custom-leaflet-popup .leaflet-popup-tip {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}
.custom-leaflet-popup .leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    color: #64748b !important;
    font-size: 16px !important;
    line-height: 24px !important;
    text-align: center;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.custom-leaflet-popup .leaflet-popup-close-button:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
.map-popup-custom {
    text-align: center;
    min-width: 120px;
}
