/* Custom styles for the Measles and Rubella Weekly Monitoring Report */

/* Map styles */
.map-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    margin-bottom: 2rem;
}

g.canadaGroup:hover {
    outline: black 2px solid;
}
#canadaMap {
    display: block;
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
}

.province {
    stroke: #bfbfbf;
    stroke-width: 1px;
    transition: fill 0.3s ease;
}

.province:hover {
    opacity: 0.8;
    cursor: pointer;
}

.province-label {
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 1000;
}

.legend-items {
    margin-top: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.2);
}
.legend-title {
    font-weight:bold;
}
#mapTooltip {
    position: absolute;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    pointer-events: none;
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Chart containers */
#epiCurveContainer,
#geoDistributionContainer,
#fig_3_wrapper {
    margin-bottom: 2rem;
}

#fig_2 .legend {
    font-size: 16px;
}
#fig_2 .legend-title {
    /*font-size: 18px;*/
}

#fig_2 .bar-label, #fig_3_container .bar-label {
    color: white;
    fill: white;
    font-weight: bold;
}

#fig_3_wrapper .c0 .tick text {
    transform: rotate(-90deg) translate(-15px, -13px);
}

#fig_3_wrapper .legend-group text {
    font-size: 14px;
}

table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc {
    background-color: #26374A;
}
table.dataTable thead .sorting_asc {
    background-image: url(/src/img/sorting-icons/sort_asc.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting_desc {
    background-image: url(/src/img/sorting-icons/sort_desc.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting {
    background-image: url(/src/img/sorting-icons/sorting_both.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled, table.dataTable thead .sorting_desc_disabled {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
}
table.dataTable thead .sorting-cnt {
    white-space: nowrap;
    display: none !important;
}

#fig_3_wrapper .bar-label {
    fill: white;
}
#fig_3_wrapper .val1-label {
    fill: black !important;
}

.bar-label {
    font-size: 8px;
}

/* Chart elements */
.bar {
    transition: fill 0.3s ease;
}

.bar:hover {
    opacity: 0.8;
}

/* Axes styling */
.x-axis path,
.y-axis path,
.x-axis line,
.y-axis line {
    stroke: #ccc;
}

.x-axis text,
.y-axis text {
    font-size: 12px;
    fill: #666;
}

/* Panel styling */
.panel {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.panel-heading {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.panel-body {
    padding: 1rem;
    text-align: center;
}

/* Dropdown styling */
/* .dropdown {
    display: inline-block;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin: 0 0.5rem;
} */

/* Table styling */
/*.table-responsive {*/
/*    margin-top: 1rem;*/
/*}*/

#wb-auto-2 {
	word-wrap: break-word;
	white-space: normal;
}

/*.table th {*/
/*    background-color: #f8f9fa;*/
/*}*/

/* Figure notes styling */
/* .figureNotes {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.figureNotes summary {
    cursor: pointer;
    color: #004986;
}

.figureNotes summary:hover {
    text-decoration: underline;
} */

/* Alert styling */
.alert-info {
    background-color: #e8f4f8;
    border-color: #b8e7f3;
    color: #0c5460;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.dynamicDescription {	
    	margin-top:30px!important;
    }
    #mapSelection {
    	max-width: 100%;
        white-space: normal;
        /* For Firefox: */
        text-overflow: ellipsis;
    }
    .panel {
        margin-bottom: 1rem;
    }
    
    .dropdown {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
} 