@import url('https://fonts.googleapis.com/css2?family=Telex&display=swap');
* {
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-image: url('../../../assets/img/background.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	min-height: 100vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.page-wrapper {
	min-height: 100vdh;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
  margin: 0 auto;
	width: 1200px;
}

.main-header .container {
	width: 100%;
}

.icons-wrapper img {
	width: 100%;
	height: 48px;
	transition: transform 0.2s, filter 0.2s;
}

.icons-wrapper img:hover {
	transform: translateY(-5px);
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
	cursor: pointer;
}

.logo {
	width: auto;
	height: 80px;
}

.container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.app-container {
	flex: 1;
	max-width: 800px;
	width: 80vw;
	margin: 50px auto;
	padding: 30px;
	background: #1a1a1a55;
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(0px);
	display: flex;
	flex-direction: column;
}

.back-link {
	display: inline-block;
	margin-bottom: 20px;
	color: #4dff63;
	text-decoration: none;
}

.back-link:hover {
	text-decoration: none;
	opacity: 0.8;
}

h1 {
	text-align: center;
	color: #ffffff;
	margin-top: 0;
	font-family: 'Telex', sans-serif;
}

#uploadForm {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
	margin: 0 auto;
}

#uploadForm input {
	color: #ffffff;
  display: none;
}

#uploadForm #select-button {
	display: block;
}

#uploadForm label {
	display: flex;
	align-content: center;
	width: 110px;
	height: 100px;
	background-color: #4dff63;
	color: #000000;
	padding: 13px 24px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: block;
	font-weight: bold;
	transition: transform 0.2s, box-shadow 0.2s;
}

#uploadForm label img {
	width: 60px;
	height: 60px;
}

#uploadForm label {
  position: relative;
}

.file-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ffffff;
  color: #000000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.file-counter.visible {
  opacity: 1;
}

button {
	width: 200px;
	background-color: #4dff63;
	color: #000000;
	padding: 13px 24px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: block;
	font-weight: bold;
	transition: transform 0.2s, box-shadow 0.2s;
}

button:hover,
#uploadForm label:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	background-color: #45e659;
}

.progress {
  width: 100%;
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 16px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.progress-bar-fill {
  display: block;
  height: 100%;
  background-color: #4DFF63;
  width: 0;
  transition: width 0.3s ease-out;
}

#progress-text {
  margin-top: 8px;
  color: white;
  font-size: 13px;
}

.download-btn {
	background-color: #4dff63;
	color: #000000;
	padding: 13px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 15px;
	display: inline-block;
	font-weight: bold;
	transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	background-color: #45e659;
}

#downloadZip {
  margin: 0 auto;
}

.summary-container {
  border: 1px solid rgba(77, 255, 99, 0.2);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  margin: 20px 0;
}

.summary-header {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  cursor: pointer;
  border: none;
  font-weight: bold;
  transition: background-color 0.2s;
}

.summary-header:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.summary-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.summary-content.open {
  max-height: 400px;
}

.summary-content-inner {
  padding: 16px;
  color: white;
  max-height: 400px;
  overflow-y: auto;
}

.summary-content-inner::-webkit-scrollbar {
  width: 8px;
}

.summary-content-inner::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.summary-content-inner::-webkit-scrollbar-thumb {
  background: #4DFF63;
  border-radius: 4px;
}

.summary-content-inner::-webkit-scrollbar-thumb:hover {
  background: #45e659;
}

.charts-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pie-chart {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.file-result {
  margin: 10px 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.file-info-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filename {
  min-width: 200px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  color: white;
}

.size-bar-container {
  position: relative;
  flex: 1;
  height: 20px;
}

.size-bar-original {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.size-bar-compressed {
  position: relative;
  height: 100%;
  background-color: rgba(77, 255, 99, 0.2);
  border-radius: 4px;
  transition: width 0.3s ease-out;
}

.compression-text {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: bold;
}

.compression-text.savings {
  color: #4DFF63;
}

.compression-text.no-savings {
  color: #FFA500;
}

.savings {
  color: #4DFF63;
}

.no-savings {
  color: #FFA500;
}

.footer-bar {
	background-color: #000000;
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    margin-top: auto;
}

.footer-bar section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-bar-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #ffffff;
}

.footer-bar-links a {
	color: #4dff63;
	text-decoration: none;
}

.footer-bar-links a:hover {
	opacity: 0.8;
}

.copyright {
	font-size: 0.9em;
}

.plataformajota {
	font-size: 0.9em;
}

@media screen and (max-width: 767px) {
}
