/* Map Container Styles */
.map-container {
height: 70vh;
width: 100%;
position: relative;
border-radius: 1rem;
overflow: hidden;
margin-bottom: 2rem;
background-color: #f8fafc;
/* Light background for the map */
}

#northLuzonMap {
height: 100%;
width: 100%;
background-color: #f1f5f9;
/* Slightly darker background for contrast */
}

/* Province Label Styles */
.province-label {
font-weight: bold;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8),
    -1px -1px 2px rgba(255, 255, 255, 0.8);
pointer-events: auto;
/* Make sure labels are clickable */
}

.province-label:hover {
transform: scale(1.05);
text-shadow: 1px 1px 4px rgba(255, 255, 255, 1),
    -1px -1px 4px rgba(255, 255, 255, 1);
}

/* Map Controls */
.map-controls {
position: absolute;
top: 20px;
left: 20px;
right: 20px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 10px;
}

.map-search-container {
display: flex;
gap: 10px;
align-items: center;
}

.map-search-box {
flex: 1;
display: flex;
align-items: center;
background: white;
padding: 8px 15px;
border-radius: 25px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-search-box i {
color: #777;
margin-right: 10px;
}

.map-search-box input {
border: none;
outline: none;
width: 100%;
font-size: 14px;
}

.map-filters {
display: flex;
gap: 10px;
}

.filter-select {
padding: 8px 12px;
border-radius: 6px;
border: 1px solid #e2e8f0;
background: white;
font-size: 14px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
outline: none;
}

/* Map Legend */
.map-legend {
position: absolute;
bottom: 20px;
right: 20px;
z-index: 1000;
background: white;
padding: 12px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
font-size: 14px;
}

.legend-title {
margin: 0 0 8px 0;
font-weight: 600;
font-size: 14px;
}

.legend-item {
display: flex;
align-items: center;
margin-bottom: 5px;
}

.legend-color {
width: 15px;
height: 15px;
border-radius: 50%;
margin-right: 8px;
}

/* Stat Cards */
.stat-card {
cursor: pointer;
transition: all 0.3s ease;
background: white;
padding: 1rem;
border-radius: 0.5rem;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
transform: translateY(-3px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
color: #64748b;
font-size: 0.875rem;
margin-bottom: 0.5rem;
}

.stat-card span {
color: #1e293b;
font-size: 1.875rem;
font-weight: bold;
display: block;
}

.stat-card p {
color: #94a3b8;
font-size: 0.75rem;
}

/* Analysis Cards */
#topProvincesJobs,
#topProvincesWorkers,
#topSkillsDemand {
max-height: 250px;
overflow-y: auto;
padding-right: 8px;
}

.skill-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 12px;
border-radius: 9999px;
font-size: 12px;
font-weight: 500;
background-color: #EFF6FF;
color: #1E40AF;
transition: all 0.2s ease;
}

.skill-badge:hover {
background-color: #DBEAFE;
transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
.map-filters {
    flex-direction: column;
}

.map-legend {
    bottom: 70px;
    right: auto;
    left: 20px;
}

#topProvincesJobs,
#topProvincesWorkers,
#topSkillsDemand {
    max-height: 200px;
}

.map-controls {
    top: 10px;
    left: 10px;
    right: 10px;
}
}

/* Remove all borders */
.stat-card,
.bg-white,
.map-container,
.map-legend {
border: none !important;
}

#chatbotBtn {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: all 0.3s ease;
}

#chatbotBtn:hover {
transform: scale(1.1);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.skill-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 6px 14px;
border-radius: 9999px;
font-size: 14px;
font-weight: 600;
background-color: #EFF6FF;
color: #1E40AF;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-badge:hover {
background-color: #DBEAFE;
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.info-panel {
height: 70vh;
display: flex;
flex-direction: column;
font-size: 0.9rem;
}

.info-panel h3 {
font-size: 1.1rem;
}

.info-panel h4 {
font-size: 0.95rem;
}

.info-panel .text-xl {
font-size: 1.25rem;
}

.modal-overlay {
background-color: rgba(255, 255, 255, 0.9) !important;
backdrop-filter: blur(2px);
}

.modal-content {
border: 1px solid #e2e8f0;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Info panel styles */
#provinceStats {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.skill-badge {
padding: 0.5rem 1rem;
font-size: 0.875rem;
background-color: #eff6ff;
color: #1e40af;
border-radius: 9999px;
display: inline-flex;
align-items: center;
transition: all 0.2s ease;
}

.skill-badge:hover {
background-color: #dbeafe;
transform: translateY(-1px);
}

/* Updated Modal Styles */
.modal-overlay {
background-color: transparent !important;
backdrop-filter: none;
}

.modal-content {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1001;
border: 1px solid #e2e8f0;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
background: white;
border-radius: 0.5rem;
max-height: 90vh;
overflow-y: auto;
width: 90%;
max-width: 800px;
}

/* Chatbot Modal Styles */
#chatbotModal {
position: fixed;
bottom: 80px;
right: 20px;
width: 350px;
height: 500px;
background: white;
border-radius: 0.5rem;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
z-index: 1050;
border: 1px solid #e2e8f0;
transform: none !important;
}

#chatbotModal.hidden {
display: none;
}

/* Ensure modals stay above map controls */
.map-controls {
z-index: 100 !important;
}

/* Chatbot Styles */
#chatbotMessages {
font-size: 0.9rem;
}

#chatbotMessages strong {
font-weight: 600;
}

#chatbotMessages .font-medium {
font-weight: 500;
}

#chatbotMessages ul {
list-style-type: disc;
padding-left: 1.25rem;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}

#chatbotMessages li {
margin-bottom: 0.25rem;
}

/* Training Program Styles */
.training-program-item {
border-left: 3px solid #315E26;
padding-left: 0.75rem;
margin-bottom: 0.5rem;
}

.training-program-name {
font-weight: 600;
color: #1a365d;
}

.training-program-location {
font-size: 0.8rem;
color: #4a5568;
}

.training-program-desc {
font-size: 0.75rem;
color: #718096;
}

/* Loading indicators */
.loading-spinner {
display: inline-block;
width: 1rem;
height: 1rem;
border: 2px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
border-top-color: #315E26;
animation: spin 1s ease-in-out infinite;
margin-left: 0.5rem;
}

@keyframes spin {
to {
    transform: rotate(360deg);
}
}

/* Chatbot refresh button */
#refreshChatbot {
background: transparent;
border: none;
color: white;
cursor: pointer;
margin-left: auto;
padding: 0.25rem;
}

#refreshChatbot:hover {
color: #dbeafe;
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.toast-notification.info {
  border-left: 4px solid #3498db;
}

.toast-notification.success {
  border-left: 4px solid #2ecc71;
}

.toast-notification.error {
  border-left: 4px solid #e74c3c;
}

.toast-notification.loading {
  border-left: 4px solid #f39c12;
}

.toast-notification.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.toast-icon {
  font-size: 20px;
}

.toast-message {
  font-size: 14px;
}

