/* GENERAL */

body {
	font-family: 'Arial', sans-serif;
	background-color: #F5F5F5;
	letter-spacing: 0.5px;
	line-height: 1.6;
	margin: 0;
	padding: 0;
}

.main-content {
	width: 80%;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 80px;
	background-color: #fff;
	padding: 15px;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.sub-content {
	width: 50%;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 80px;
	background-color: #fff;
}

a {
	color: #3498db;
	text-decoration: none;
}

a:hover {
	color: #2980b9;
	text-decoration: none;
}

.link-alert a {
	color: red;
	text-decoration: none;
}

.link-alert a:hover {
	color: red;
	text-decoration: none;
}

.alert-text {
    color: red;
}

.centralized-text {
    text-align: center;
}

/* BUTTON */
.button-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.button {
	width: 100px;
	background-color: #3498db;
	color: white;
	padding: 14px 20px;
	margin: 8px auto;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
	display: block;
	text-align: center;
}

.button-admin {
	width: 300px;
	background-color: #3498db;
	color: white;
	padding: 14px 20px;
	margin: 8px auto;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
	display: block;
	text-align: center;
}

.button:hover {
	color: white;
	background-color: #2980b9;
}

.button-admin:hover {
	color: white;
	background-color: #2980b9;
}

.main-title {
    font-size: 20px;
    text-align: center;
	font-weight: bold;
    margin: 15px 0;
	letter-spacing: 1.2px;
}

.sub-title {
    font-size: 18px;
    text-align: center;
    margin: 15px 0;
	letter-spacing: 1.2px;
}

.about-text {
    text-align: left;
    margin: 0 auto;
    line-height: 1.8;
}

.sub-title-progress {
    font-size: 16px;
    text-align: left;
    margin: 5px 0;
	margin-top: 20px;
}

.icon-title {
    display: block;
    margin: auto;
	margin-top: 5px;
}

.flag-icon {
	width: 28px;
	height: 21px;
}

/* TABLE */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-table tr:hover {
    background-color: #e8e8e8;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-table th {
    background-color: #e8e8e8;
	border-bottom: 1px solid #ddd;
    padding: 10px;
    text-align: left;
	height: 30px;
}

.custom-table td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.custom-table th.nowrap,
.custom-table td.nowrap {
	white-space: nowrap;
}

.custom-table th.center-text,
.custom-table td.center-text {
    text-align: center;
}

/* FOOTER */
.footer {
    position: fixed;
	bottom: 0;
	width: 100%;
	height: 40px;
	background-color: #e8e8e8;
	color: #333;
	text-align: center;
	padding: 10px 0;
}

/* HEADER */
.header-user {
    display: flex;
    background-color: #F5F5F5;
    padding: 5px;
	margin-right: 20px;
}

.header {
    display: flex;
    background-color: #e8e8e8;
    padding: 12px;
}

/* MENU */
.menu {
    background-color: #e8e8e8;
    padding: 10px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    display: inline;
    margin-right: 20px;
}

.menu li a {
    color: black;
    text-decoration: none;
    padding: 18px 20px;
	font-weight: bold;
	letter-spacing: 2.5px;
}

.menu li a:hover {
    background-color: #ddd;
	border-radius: 5px;

}
.user-info {
    margin-left: auto;
    text-align: right;
}

/* FORM */
.form-container {
    width: 30%;
    margin: 20px auto;
    background-color: #fff;
}

.form-container label {
    display: block;
    margin-top: 15px;
    font-size: 16px;
}

.form-container input[type=text],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container select,
.form-container textarea {
	width: 100%;
	padding: 12px 20px;
	margin: 8px 0;
	display: inline-block;
	border: 1px solid #ccc;
	box-sizing: border-box;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container input[type=submit] {
	width: 50%;
	background-color: #3498db;
	color: white;
	padding: 14px 20px;
	margin: 8px auto;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
	display: block;
}

.form-container input[type=submit]:hover {
	background-color: #2980b9;
}

/* FORM LOGIN */
.main-content-login {
	width: 250px;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 80px;
	background-color: #fff;
	padding: 15px;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

body.login {
	background-image: url('/img/menu-bg.jpeg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	height: 100vh;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.form-container-login {
    width: 100%;
    margin: 20px auto;
    background-color: white;
}

.form-container-login label {
    display: block;
    font-size: 16px;
}

.form-container-login input[type=text],
.form-container-login input[type=email],
.form-container-login input[type=password]
{
	width: 100%;
	padding: 12px 20px;
	display: inline-block;
	border: 1px solid #ccc;
	box-sizing: border-box;
	border-radius: 5px;
}

.form-container-login input[type=submit] {
	width: 50%;
	background-color: #3498db;
	color: white;
	padding: 14px 20px;
	margin: 8px auto;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
	display: block;
}

.form-container-login input[type=submit]:hover {
	background-color: #2980b9;
}

/* SEARCH BOX - LIST CITIES & LIST COUNTRIES */
.search-box {
	float: left;
	width: 25%;
	height: 25px;
	margin-bottom: 10px;
}

/* COUNTRY DETAILS */
.country-table {
	border-collapse: collapse;
    width: 60%;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

.country-table tr:hover {
    background-color: #e8e8e8;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.country-table td {
    padding: 8px;
	border-bottom: 1px solid #ddd;
}

.country-table td:first-child {
	white-space: nowrap;
	font-weight: bold;
}

/* USER DETAILS */
.user-table {
	border-collapse: collapse;
    width: 30%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.user-table tr:hover {
    background-color: #e8e8e8;
}

.user-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
	text-align: left;
}

.user-table td:first-child {
	white-space: nowrap;
	font-weight: bold;
}

.user-table td.center-text {
    text-align: center;
}

/* CHARTS */
.container-chart {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: auto;
}

.top-charts,
.bottom-charts {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 50px;
}

.box-chart {
    width: 50%;
    max-width: 600px; /* not sure about this one */
    margin: 0 5px;
}

/* MAP */
.map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.map {
    width: 100vw;
    height: 85vh;
    margin: 0;
    padding: 0;
}

/* PROGRESS BAR */
label {
	display: block;
	margin-bottom: 5px;
}

progress {
	width: 100%;
	height: 20px;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

progress::-webkit-progress-bar {
	background-color: #f0f0f0;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

progress::-webkit-progress-value {
	background-color: #3498db;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* FLASH MESSAGES */
.success-message,
.error-message,
.warning-message {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	margin: 0;
	z-index: 1000;
	text-align: center;
	padding: 10px;
	box-sizing: border-box;
}

.success-message {
	background-color: #dff0d8;
	border: 1px solid #d0e9c6;
	color: #3c763d;
}

.error-message {
	background-color: #f2dede;
	border: 1px solid #ebccd1;
	color: #a94442;
}

.warning-message {
	background-color: #fff3cd;
	border: 1px solid #ffeeba;
	color: #8a6d3b;
}

/* Panels */
.panels-container {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
}

.panel {
	width: 150px;
	height: 100px;
	border: 1px solid #000;
	text-align: center;
	padding: 10px;
	margin: 10px;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
	background-color: white;
}

.panel:hover {
	color: white;
	background-color: #3498db;
	border: 1px solid white;
	border-radius: 5px;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.panel h3 {
	margin-bottom: 5px;
	font-size: 16px;
}

.panel p {
	font-size: 24px;
	font-weight: bold;
	margin: 0;
}

/* Mobile */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .main-content,
    .sub-content {
        width: 98%;
    }

	.custom-table {
        display: block;
        overflow-x: auto; /* Adicione uma barra de rolagem horizontal para tabelas largas */
    }

    .custom-table th,
    .custom-table td {
        width: 100%; /* Faça as células ocuparem a largura total em dispositivos móveis */
        box-sizing: border-box; /* Garanta que o preenchimento e a borda não afetem a largura total */
        display: block; /* Torne as células de tabela em blocos empilhados */
        text-align: left; /* Alinhe o texto à esquerda em dispositivos móveis */
    }

    .custom-table th {
        height: auto; /* Ajuste a altura para automática em dispositivos móveis */
    }

    .custom-table tr:hover {
        background-color: transparent; /* Remova o destaque de hover em dispositivos móveis */
    }

	.header {
        flex-direction: column;
        padding: 10px;
    }

    .header-user {
        margin-right: 0;
    }

	.menu {
        padding: 10px;
        text-align: center;
    }

    .menu ul {
        flex-direction: column;
	}

    .menu li {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .menu li a {
        padding: 10px;
    }

	.footer {
        position: static;
        height: auto;
        text-align: center;
        padding: 10px 0;
    }

	.form-container {
        width: 80%;
    }

    .form-container label {
        font-size: 14px;
    }

    .form-container input[type=text],
    .form-container input[type="email"],
    .form-container input[type="password"],
    .form-container select,
    .form-container textarea {
        width: 100%;
        padding: 10px;
        margin: 5px 0;
    }

    .form-container input[type=submit] {
        width: 100%;
        margin: 10px 0;
    }

	.box-chart {
        width: 100%;
        max-width: none;
        margin: 0 0 10px;
    }

    .top-charts,
    .bottom-charts {
        flex-direction: column;
    }

	.map {
        width: 100%;
        height: 50vh;
    }

	progress {
        height: 15px;
    }
}