/*!
Theme Name: GPBE
Theme URI: https://gpbe.pt/
Author: GPBE
Author URI: https://gpbe.pt/
Description: Tema exclusivo para GPBE
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gpbe
*/

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/
html, body {
	font-family: "Archivo", sans-serif;
	margin: 0;
	padding: 0;
	color: #414042;
	font-size: 16px;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.panel {
	display: flex;
	justify-content: space-between;
	background: #f4f4f4;
}

.panel .content {
	padding: 50px;
	width: 100%;
}

.content h1 {
	font-size: 35px;
	font-weight: 600;
	margin: 0 0 30px 0;
}

.desktop-only {
	display: block !important;
}

.mobile-only {
	display: none !important;
}

@media (max-width: 1024px) {
	.content h1 {
		font-size: 25px !important;
		text-align: center !important;
	}
	.desktop-only {
		display: none !important;
	}

	.mobile-only {
		display: block !important;
	}

	.sidebar-inner {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1px solid #e9e9e9;
	}

	.sidebar .logo img {
		width: 90px !important;
	}

	.sidebar-inner .logo {
		border-bottom: 0 !important;
		margin-bottom: 0 !important;
		padding: 20px !important;
	}

	.sidebar-account {
		border-top: 0 !important;
		width: auto !important;
		padding: 10px !important;
		margin-top: 0 !important;
	}

	.sidebar-account .account {
		width: auto !important;
	}

	.panel {
		flex-wrap: wrap;
	}
	
	.panel .content {
		padding: 30px;
		min-height: 80vh;
	}

	.sidebar {
		width: 100% !important;
		min-width: 100% !important;
		border-right: none !important;
		border-bottom: 1px solid #e9e9e9 !important;
		min-height: 1vh !important;
	}
	.sidebar-menu ul {
		justify-content: center !important;
		max-width: 100% !important;
	}
	.sidebar-menu li {
		width: auto !important;
	}
	.sidebar-menu {
		padding: 15px !important;
	}
	.sidebar-menu a {
		font-size: 16px !important;
	}
}

@media (max-width: 767px) {
	.painel-item {
		width: 100% !important;
	}
}


/*--------------------------------------------------------------
# Layout - Global
--------------------------------------------------------------*/
.global {
	display: flex;
	justify-content: center;
	align-content: start;
	flex-wrap: wrap;
	width: 100%;
	background: #e7e7e7;
	min-height: 100vh;
}

.global h1 {
	font-size: 35px;
	font-weight: 600;
	margin: 0 0 50px 0;
	text-align: center;
	width: 100%;
}

.global header {
	width: 100%;
	padding: 100px 30px 50px 30px;
	text-align: center;
}

.global header img {
	width: 150px;
}

.global .content-inner {
	width: 100%;
	max-width: 900px;
	padding: 50px;
	background: #fff;
	border: 1px solid #ddd;
	margin-bottom: 50px;
	border-radius: 20px;
}


.global .login  {
	display: flex;
    flex-wrap: wrap;
	justify-content: center;
}

@media (max-width: 1024px) {
	.global .login {
		padding: 0 10px;
	}
	.global .content-inner {
		padding: 50px 30px !important;
	}
	.register {
		padding: 0 10px !important;
		display: flex;
        flex-wrap: wrap;
		justify-content: center;
	}
	
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
	background-color: #fff;
	width: 300px;
	min-width: 300px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: space-between;
	border-right: 1px solid #e9e9e9;
	min-height: 100vh;
}

.sidebar-top {
	width: 100%;
}

.sidebar .logo {
	text-align: center;
	margin-bottom: 30px;
	border-bottom: 1px solid #e9e9e9;
	padding: 30px;
}

.sidebar .logo img {
	width: 120px;
}

.sidebar-menu {
	padding: 30px;
}

.sidebar-menu ul {	
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: start;
	gap: 15px;
	max-width: 200px;
}

.sidebar-menu li {
	width: 100%;
}

.sidebar-menu a {
	font-size: 18px;
	color: #414042;
	text-decoration: none;
	display: inline-block;
}

.sidebar-menu a:hover,
.sidebar-menu .current-menu-item a {
	color: #ef4345;
}	

.sidebar-account {
	margin-top: 30px;
	width: 100%;
	border-top: 1px solid #ddd;
	padding: 30px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.sidebar-account .account {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 200px;
}

.sidebar-account h4 {
	margin: 0 0 5px;
	font-weight: 500;
	width: 100%;
}

.sidebar-account a {
	color: #ef4345;
	border-bottom: 2px solid transparent;
	text-decoration: none;
	padding-bottom: 2px;
	font-size: 14px;
}

.sidebar-account a:hover {
	color: #ef4345;
	border-bottom: 2px solid #ef4345;
}


/*--------------------------------------------------------------
# Documentos
--------------------------------------------------------------*/
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
}

.card-item {
	border: 1px solid #ddd;
	background-color: #fff;
	border-radius: 10px;
}

.card-item-inner {
	padding: 15px;
	border-radius: 10 10px 0 0;
}

.card-item img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 10px;
}

.card-item h3 {
	font-size: 18px;
	margin: 15px 0 0 0 ;
	text-align: center;
}
.card-item a {
	font-size: 16px;
	color: #414042;
	background: #f4f4f4;
	text-decoration: none;
	border-top: 1px solid #ddd;
	padding: 15px;
	text-align: center;
	display: block;
	border-radius: 0 0 10px 10px;
}

.card-item a:hover {
	background: #ef4345;
	color: #fff;
	border-top: 1px solid #ef4345;
}

.load-more-container {
	text-align: center;
	margin: 30px 0;
}

.load-more {
	font-size: 16px;
	color: #414042;
	background: #f4f4f4;
	text-decoration: none;
	border: 1px solid #ddd;
	padding: 15px;
	text-align: center;
	cursor: pointer;
	font-weight: 500;
}

.load-more:hover {
	background: #ef4345;
	color: #fff;
	border: 1px solid #ef4345;
}



/*--------------------------------------------------------------
# Visualizador de PDF
--------------------------------------------------------------*/
.doc-container {
    background: #f4f4f4;
    padding: 50px 50px 100px 50px;
    text-align: center;
	display: flex;
	justify-content: center;
	align-content: start;
	flex-wrap: wrap;
}

.doc-container-left {
	width: 40%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
}

.doc-container-right {
	width: 60%;
}

.doc-container .logo {
	margin: 0 auto 30px auto;
	width: 120px;
}

.doc-container .back-link {
	margin-bottom: 0;
	width: 100%;
}

.doc-container h1 {
	margin: 30px 0;
	width: 100%
}

.pdf-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 40px 0;
    align-items: center;
}

.pdf-nav button {
	font-size: 16px;
	color: #414042;
	background: #f4f4f4;
	text-decoration: none;
	border: 1px solid #ddd;
	padding: 15px;
	text-align: center;
	cursor: pointer;
	font-weight: 500;
}

.pdf-nav button:hover {
	background: #ef4345;
	color: #fff;
	border: 1px solid #ef4345;
}

.pdf-stage {
    display: flex;
    justify-content: center;
}

canvas {
    max-width: 650px;
	width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 1024px) {
	.doc-container-left,
	.doc-container-right {
		width: 100% !important;
	}
	.doc-container {
		padding: 30px 15px 50px 15px !important;
	}
}

/*--------------------------------------------------------------
# Downloads
--------------------------------------------------------------*/
.card-line-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	width: 100%;
	max-width: 700px;
}

.card-line-item {
	border: 1px solid #ddd;
	background-color: #fff;
	display: flex;
	justify-content: space-between;
	border-radius: 10px;
}

.card-line-item svg {
	color: #ef4345;
	width: 25px;
}

.card-line-item-inner {
	padding: 5px 10px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.card-line-item h3 {
	font-size: 16px;
	margin: 0 ;
	text-align: center;
}
.card-line-item a {
	font-size: 16px;
	color: #414042;
	background: #f4f4f4;
	text-decoration: none;
	border-left: 1px solid #ddd;
	padding: 15px;
	text-align: center;
	display: flex;
	align-items: center;
	border-radius: 0 10px 10px 0;
}

.card-line-item a:hover {
	background: #ef4345;
	color: #fff;
	border-left: 1px solid #ef4345;
}

.card-preview-text {
	font-size: 14px;
	color: #ef4345;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
	margin-bottom: -2px;
}

.card-preview-text:hover {
	color: #ef4345;
	border-bottom: 2px solid #ef4345;
	cursor: pointer;
}

.card-image-preview {
	display: none;
	position: absolute;
	top: 50px;
	border: 1px solid #ddd;
	background-color: #fff;
	padding: 10px;
	z-index: 1000;
	border-radius: 10px;
}

.card-image-preview img {
	border-radius: 10px;
}

.preview-trigger {
	position: relative;
}

.preview-trigger p {
	margin: 5px 0 0 0;
	font-size: 14px;
}

.preview-trigger:hover .card-image-preview {
	display: block;
}

.filter-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 25px;
	margin-bottom: 50px;
}

.filter-item {
	font-size: 16px;
	color: #414042;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
	cursor: pointer;
	font-weight: 500;
}

.filter-item.active,
.filter-item:hover {
	border-bottom: 2px solid #ef4345;
	color: #ef4345;
}

@media (max-width: 767px) {
	.card-line-item {
		flex-wrap: wrap;
	}
	.card-line-item a {
		border-left: none;
		border-top: 1px solid #ddd;
		border-radius: 0 0 10px 10px;
		width: 100%;
		text-align: center;
		padding: 10px;
		display: block;
	}
	.card-image-preview {
		right: 10px;
	}
	.card-image-preview img {
		width: 150px;
    	height: 100px;
	}
	.card-image-preview p {
		font-size: 13px !important;
	}
	.card-line-item-inner h3 {
		font-size: 14px !important;
	}
}



/*--------------------------------------------------------------
# Painel
--------------------------------------------------------------*/
.painel {
	display: flex;
	justify-content: center;
	align-content: center;
	flex-wrap: wrap;
}

.painel h1 {
	font-size: 50px;
	font-weight: 600;
	margin: 0 0 50px 0;
	width: 100%;
	text-align: center;
}

.painel-container {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	width: 100%;
	max-width: 900px;
}

.painel-item {
	width: 40%;
	background-color: #ef4345;
	padding: 30px 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	border-radius: 20px;
}

.painel-item h2 {
	text-align: center;
	margin: 0 0 15px 0;
	color: #fff;
	width: 80%;
}

.painel-item span {
	display: block;
	text-align: center;
	font-size: 70px;
	font-weight: 600;
	color: #fff;
	width: 100%;
}


/*--------------------------------------------------------------
# Formulários
--------------------------------------------------------------*/
.gpbe-form {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
}

label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 5px;
	font-family: "Archivo", sans-serif;
	color: #414042;
}

.form-fields {
	width: 47%;
	display: flex;
    flex-wrap: wrap;
}

input,
select {
	width: 100%;
	font-size: 16px;
	padding: 12px;
	border: 1px solid #ddd;
	outline: none;
	font-family: "Archivo", sans-serif;
	color: #414042;
	border-radius: 10px;
}

.form-submit {
	width: 100%;
	text-align: center;
	margin-top: 30px;
}

button,
#wp-submit {
	font-family: "Archivo", sans-serif;
	font-size: 16px;
	color: #fff;
	background: #ef4345;
	text-decoration: none;
	border: 1px solid #ef4345;
	padding: 15px 30px;
	text-align: center;
	cursor: pointer;
	font-weight: 500;
	border-radius: 10px;
}

button:hover,
#wp-submit:hover {
	background: #414042;
	color: #fff;
	border: 1px solid #414042;
}

.back-link {
	display: flex;
	justify-content: center;
	margin-bottom: 150px;
}

.back-link a {
	font-family: "Archivo", sans-serif;
	font-size: 16px;
	color: #fff;
	background: #414042;
	text-decoration: none;
	border: 1px solid #414042;
	padding: 15px 30px;
	text-align: center;
	cursor: pointer;
	font-weight: 500;
	border-radius: 10px;
}

.back-link a:hover {
	background: #ef4345;
	color: #fff;
	border: 1px solid #ef4345;
}

.login-remember {
	display: none !important;
}

#loginform .login-username,
#loginform .login-password {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.recover-password a {
	font-size: 15px;
	color: #414042;
	text-decoration: none;
	cursor: pointer;
	font-weight: 400;
}

.recover-password a:hover {
	color: #ef4345;
}

.link-secondary {
	text-align: right;
	margin: 20px 0 30px 0;
}

.link-secondary a {
	font-size: 16px;
	color: #414042;
	text-decoration: none;
	cursor: pointer;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
}

.link-secondary a:hover {
	color: #ef4345;
	border-bottom: 2px solid #ef4345;
}

.gpbe-success {
	font-size: 16px;
	color: #28a745;
	text-align: center;
	margin-bottom: 30px;
}

.gpbe-errors {
	font-size: 16px;
	color: red;
	text-align: center;
	margin-bottom: 30px;
}

.gpbe-errors ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gpbe-form-password {
    max-width: 500px;
    margin: 100px auto 100px auto;
}

.gpbe-form-password .form-fields {
	width: 100% !important;
}

@media (max-width: 1024px) {
	.form-fields {
		width: 100% !important;
	}
	.gpbe-form {
		gap: 15px !important;
	}
}

/*--------------------------------------------------------------
# 404 Page
--------------------------------------------------------------*/
.error-404 {
	padding: 30px;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.error-404 h1 {
    font-size: 50px;
    font-weight: 600;
    width: 100%;
    text-align: center;
	color: #414042;
}

@media (max-width: 767px) {
	.error-404 h1 {
		font-size: 40px !important;
	}
}