"""Constants that are common across the dashboard."""

CUSTOM_DATA = "custom_data"
HOVER_TEXT_HEADERS = "hover_text_headers"
DATE_VALID = "Date valid"
CHART_LABEL_FONT_SIZE = 19
FINANCIAL_YEAR_ENDING = "Financial year ending"
VALUE = "Value"
MAIN_TITLE = "main_title"
SUBTITLE = "subtitle"
MEASURE = "measure"
FILL_TO_PREVIOUS_TRACE = "Fill to previous trace"
REMOVE_INITIAL_MARKER = "Remove initial marker"
YEAR = "Year"


UNIT_SIZE = "Unit size"
DEFAULT_COLOURSCALE = "tealgrn"

LEGEND_SPACING = "\u00a0" * 5

DOWNLOAD_BUTTON_CLASSES = (
    "govuk-button govuk-button--primary "
    "govuk-!-margin-bottom-0 govuk-!-margin-top-4 "
    "flex w-auto items-center gap-2 print:hidden"
)

PERCENTAGE_CHANGE_FROM_PREV_YEAR = "Percentage change from prev year"
PERCENTAGE_CHANGE_FROM_TWO_PREV_YEAR = "Percentage change from two prev year"
TWENTY_NINETEEN_VALUE = "twenty_nineteen_value"

LARGE_BOLD_FONT_STYLE = {"fontSize": "300%"}
CHANGED_FROM_GAP_STYLE = {"marginTop": "20px"}

PERIOD_END = "period_end"
YEAR_END = "year_end"
METRIC_VALUE = "metric_value"
LATEST_YEAR = "latest_year"
PREVIOUS_YEAR = "previous_year"
PREVIOUS_2YEAR = "previous_2year"
TWENTY_NINETEEN = "twenty_nineteen"

NOTIFICATION_STYLE_RED = {"borderColor": "#d4351c", "backgroundColor": "#d4351c"}
NOTIFICATION_STYLE_ORANGE = {"borderColor": "#f47738", "backgroundColor": "#f47738"}
NOTIFICATION_STYLE_YELLOW = {"borderColor": "#ffdd00", "backgroundColor": "#ffdd00"}
NOTIFICATION_STYLE_GREEN = {"borderColor": "#00703c", "backgroundColor": "#00703c"}

BANNER_STYLE = {
    "display": "flex",
    "visibility": "visible",
    "margin": "-10px -15px 0px -15px",
}

ERROR_MESSAGE_BANNER_STYLE = {
    "width": "100%",
    "paddingLeft": "30px",
    "paddingRight": "30px",
    "justifyContent": "left",
    "backgroundColor": "#FFDD00",
}
