#main-contact-section,
#contact-information-section,
#contact-editing-section {
	width: 100%;
	height: 100%;
	position: fixed;
}

/* Seção principal */
#main-contact-section {
	top: 0;
	display: flex;
	left: 0;
	flex-direction: column;
	transition: left 0.3s ease-out;
}

header {
	padding: 5px 10px;
	width: 100%;
	position: sticky;
	top: 0;
	left: 0;
	background-color: var(--primary-background-color);
	border-bottom: 2px solid var(--primary-transparent-color);
	z-index: 1000;
}

h1 {
	margin-bottom: 10px;
	text-align: center;
	color: var(--primary-text-color);
}

header #controls {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.input-container {
	position: relative;
}

.input-container .input-icon {
	font-size: 1rem;
	position: absolute;
	top: 8px;
	left: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--primary-text-color);
}

#contact-search-input {
	padding: 10px 10px 10px 40px;
	outline: none;
	background-color: transparent;
	color: var(--primary-text-color);
	border: 2px solid var(--secondary-transparent-color);
	border-radius: 18px;
	transition: border-color 0.3s ease-in-out;
}

#contact-search-input:focus {
	color: var(--secondary-text-color);
	border-color: var(--secondary-text-color);
}

#contact-search-input::placeholder {
	color: var(--secondary-text-color);
}

#controls button {
	padding: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: transparent;
	color: var(--primary-text-color);
	border: 2px solid var(--secondary-transparent-color);
	border-radius: 50%;
	transition: all 0.3s ease-out;
}

#controls button:hover {
	border-color: var(--primary-text-color);
	transform: scale(1.1);
}

#contact-list {
	width: 100%;
	height: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
}

#contact-list .contact-card {
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	background-color: var(--primary-background-color);
	cursor: pointer;
	transition: background-color 0.3s ease-in-out;
	animation: fade-in 0.3s ease-in;
}

#contact-list .contact-card:nth-child(even) {
	background-color: var(--tertiary-background-color);
}

#contact-list .contact-card:hover {
	background-color: var(--primary-hover-color);
}

#contact-list .contact-card .user-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

#contact-list .icon-container {
	width: 50px;
	height: 50px;
	font-size: 1.5rem;
	font-weight: 500;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--primary-text-color);
	border-radius: 50%;
	user-select: none;
}

#contact-list .details-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
}

#contact-list .contact-card .contact-name,
#contact-list .contact-card .contact-email {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#contact-list .contact-card .contact-name {
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--primary-text-color);
}

#contact-list .contact-card .contact-email {
	font-size: 0.8rem;
	color: var(--secondary-text-color);
}

#contact-list .contact-card .control-container {
	display: flex;
	gap: 10px;
}

#main-contact-section .button-container {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1000;
}

#main-contact-section .button-container button {
	width: 50px;
	height: 50px;
	font-size: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
	border-radius: 50%;
	background-color: var(--primary-text-color);
	color: var(--primary-background-color);
	transition: transform 0.3s ease-out;
}

#main-contact-section .button-container .list-of-buttons {
	display: none;
}

#main-contact-section .button-container > button.active {
	transform: rotate(45deg);
}

#main-contact-section .button-container > button.active ~ .list-of-buttons {
	position: absolute;
	bottom: 125%;
	left: 50%;
	display: flex;
	flex-direction: column;
	gap: 5px;
	transform: translateX(-50%);
}

#theme-color-button .icon {
	width: 20px;
	height: 20px;
}

#app-version {
	font-size: 1rem;
	position: fixed;
	top: 10px;
	right: 15px;
	z-index: 10;
}

/* Estilo das seções de informação e de edição de contato */
#contact-information-section .contact-control-options,
#contact-editing-section .contact-control-options {
	padding: 10px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#contact-information-section .control-container,
#contact-editing-section .control-container {
	width: 100%;
	height: 250px;
	display: flex;
	flex-direction: column;
	position: relative;
}

#contact-information-section .icon-container,
#contact-editing-section .icon-container {
	font-size: 7rem;
	font-weight: bold;
	width: 150px;
	height: 150px;
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #006C00;
	border-radius: 50%;
	color: var(--primary-text-color);
	user-select: none;
	transform: translate(-50%, -50%);
}

#contact-information-section .contact-control-options .list-of-buttons,
#contact-editing-section .contact-control-options .list-of-buttons {
	position: relative;
	display: flex;
	z-index: 1001;
}

#contact-information-section .contact-control-options .list-of-buttons .button-container,
#contact-editing-section .contact-control-options .list-of-buttons .button-container {
	position: relative;
}

#contact-information-section .contact-control-options .list-of-buttons .button-container .tooltip,
#contact-editing-section .contact-control-options .list-of-buttons .button-container .tooltip {
	padding: 15px;
	font-size: 14px;
	text-align: center;
	position: absolute;
	top: 130%;
	left: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--tooltip-background-color);
	color: var(--primary-background-color);
	border-radius: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%);
	transition: opacity 0.3s ease-in-out;
}

#contact-information-section .contact-control-options .list-of-buttons .button-container .tooltip.back,
#contact-editing-section .contact-control-options .list-of-buttons .button-container .tooltip.back {
	left: calc(50% + 15px);
}

#contact-information-section .contact-control-options .list-of-buttons .button-container .tooltip.delete,
#contact-editing-section .contact-control-options .list-of-buttons .button-container .tooltip.delete {
	left: calc(50% - 15px);
}

#contact-information-section .contact-control-options .list-of-buttons .button-container button.active ~ .tooltip,
#contact-editing-section .contact-control-options .list-of-buttons .button-container button.active ~ .tooltip {
	visibility: visible;
	opacity: 1;
}

#contact-information-section .contact-control-options .list-of-buttons .button-container button,
#contact-editing-section .contact-control-options .list-of-buttons .button-container button {
	font-size: 1.25rem;
	width: 45px;
	height: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: transparent;
	color: var(--primary-text-color);
	border: none;
	border-radius: 50%;
	transition: background-color 0.3s ease-out;
}

#contact-information-section .contact-control-options .list-of-buttons .button-container button:hover,
#contact-editing-section .contact-control-options .list-of-buttons .button-container button:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Seção de informação de contato */
#contact-information-section {
	top: 0;
	right: -100%;
	background-color: var(--primary-background-color);
	z-index: 1000;
	transition: right 0.3s ease-out, var(--color-transition);
}

#contact-information-section.open {
	right: 0;
}

#contact-information-section.open ~ #main-contact-section {
	left: -100%;
}

#contact-information-section .control-container .contact-name {
	width: 100%;
	font-weight: bold;
	font-size: 2rem;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
}

#contact-information-section .control-container .contact-name .information-text {
	width: 90%;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#contact-information-section .contact-details-container {
	margin: 10px 15px;
	border-radius: 10px;
	overflow: hidden;
}

#contact-information-section .contact-details-container .information-field {
	padding: 15px 20px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	background-color: var(--primary-hover-color);
	user-select: none;
	transition: background-color 0.3s ease-in-out;
}

#contact-information-section .contact-details-container .information-field:hover {
	background-color: var(--tertiary-background-color);
}

#contact-information-section .contact-details-container .information-field .information-icon {
	display: flex;
	justify-content: center;
	align-items: center;
}

#contact-information-section .contact-details-container .information-field .information-text {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

/* Seção de edição de contato */
#contact-editing-section {
	top: 0;
	right: -100%;
	background-color: var(--primary-background-color);
	transition: right 0.3s ease-out, var(--color-transition);
}

#contact-editing-section.open {
	right: 0%;
}

#contact-editing-section .edit-field {
	padding: 0 15px;
	width: 100%;
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
}

#contact-editing-section .edit-field .edit-field-icon {
	padding: 5px;
	font-size: 1.25rem;
	position: absolute;
	top: 10px;
	left: 30px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	color: var(--primary-text-color);
}

#contact-editing-section .edit-field .edit-field-text {
	padding: 10px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 5px;
}

#contact-editing-section .edit-field .edit-field-text input {
	padding: 10px 50px 10px 45px;
	outline: none;
	width: 100%;
	font-size: 1rem;
	background-color: transparent;
	color: var(--primary-text-color);
	border: 1.5px solid var(--primary-text-color);
	transition: var(--color-transition);
	border-radius: 4px;
}

#contact-editing-section .edit-field .edit-field-text input:focus {
	border-color: #A46459;
}

#contact-editing-section .edit-field .edit-field-text label {
	font-size: 1rem;
	position: absolute;
	top: 22px;
	left: 75px;
	color: var(--secondary-text-color);
	user-select: none;
	transition: all 0.3s ease-in-out;
}

#contact-editing-section .edit-field .edit-field-text input:focus + label,
#contact-editing-section .edit-field .edit-field-text input:valid + label {
	padding: 0 5px;
	font-weight: bold;
	top: 0;
	left: 65px;
	background-color: var(--primary-background-color);
	color: var(--primary-text-color);
	transform: scale(0.7);
}

#contact-editing-section .edit-field .edit-field-text .characters-container {
	padding: 0 5px;
	font-weight: bold;
	position: absolute;
	top: 0;
	right: 65px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--primary-background-color);
	color: var(--primary-text-color);
	transform: scale(0.7);
	transition: var(--color-transition);
}

#contact-editing-section .edit-field .edit-field-text input:focus + label,
#contact-editing-section .edit-field .edit-field-text input:focus ~ .characters-container {
	color: #A46459;
}

#contact-editing-section .edit-field .edit-field-text .clear-input-button {
	width: 25px;
	height: 25px;
	font-size: 1.25rem;
	position: absolute;
	top: 17px;
	right: 45px;
	display: none;
	justify-content: center;
	align-items: center;
	background-color: transparent;
	color: var(--primary-text-color);
	border: none;
	border-radius: 50%;
}

#contact-editing-section .edit-field .edit-field-text input:valid ~ .clear-input-button {
	display: flex;
}

#contact-editing-section .edit-field .edit-field-text .error-message {
	font-size: 10px;
	color: #FC2F2F;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

#contact-editing-section .edit-field .edit-field-text.error input {
	border-color: #FC2F2F;
}

#contact-editing-section .edit-field .edit-field-text.error input:valid ~ label,
#contact-editing-section .edit-field .edit-field-text.error input:focus ~ label,
#contact-editing-section .edit-field .edit-field-text.error input:focus ~ .characters-container {
	color: #FC2F2F;
}

#contact-editing-section .edit-field .edit-field-text.error .error-message {
	visibility: visible;
	opacity: 1;
}