
:root {
  --primary-color:        #FEAC0E;
  --white-color:          #ffffff;
  --dark-color:           #0C54C9;

  --clear-color:          #0088e2;
  --blue-terciary:        #0d6efd;
  --about-bg-color:       #f2f2f2;

  --gray-color:           #909090;
  --link-color:           #404040;
  --p-color:              #666262;

  --base-font-family:     'Plain', sans-serif;
  --font-weight-bold:     bold;
  --font-weight-normal:   normal;
  --font-weight-light:    300;
  --font-weight-thin:     100;

  --h1-font-size:         48px;
  --h2-font-size:         36px;
  --h3-font-size:         28px;
  --h4-font-size:         24px;
  --h5-font-size:         22px;
  --h6-font-size:         22px;
  --p-font-size:          18px;
  --base-font-size:       16px;
  --menu-font-size:       14px;
  --border-radius-large:  100%;
  --border-radius-small:  2px;
}

/* BUTTON */

.custom-btn {
  background: transparent;
  border-radius: var(--border-radius-small);
  padding: 14px 24px;
  color: var(--white-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.custom-btn:hover {
  color: var(--primary-color);
}

.custom-btn:focus {
  box-shadow: none;
}

.custom-btn.bordered {
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  color: var(--about-bg-color);
}

.custom-btn.bordered:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease-in-out;
}

.custom-btn.bg-color {
  background: var(--primary-color);
  color: var(--white-color);
}

.custom-btn.bg-color:hover {
  background: var(--primary-color);
}

/*
-----------------------------------------
  PAGE - GESTORE
-----------------------------------------
*/

.navbar-gestore {
  background-color: var(--dark-color) !important;
}

.gestore-section {
  text-align: center;
  margin-top: 5rem;
}

.gestore-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-button {
  padding: 12px 24px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.tab-button:hover {
  background: #0069d9;
  transform: scale(1.05);
}

.tab-button.active {
  background: #0056b3;
  font-weight: bold;
}

.tab-content {
  display: none;
  padding: 25px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 
-----------------------------------------
  TOP TABS STYLES
-----------------------------------------
*/

.top-tabs-container {
  margin: 30px 0;
}

.top-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
  justify-content: flex-start; 
}

.top-tab-button {
  position: relative;
  padding: 12px 0;
  border: none;
  background: transparent;
  color: var(--p-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: var(--font-weight-light);
  margin-right: 15px;
}

.top-tab-button span {
  position: relative;
  z-index: 2;
  padding: 5px 10px;
}

.top-tab-button .tab-line {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background-color: var(--clear-color);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 3px 3px 0 0;
}

.top-tab-button:hover {
  color: var(--dark-color);
}

.top-tab-button:hover .tab-line {
  width: 100%;
  left: 0;
}

.top-tab-button.active {
  color: var(--clear-color);
  font-weight: var(--font-weight-bold);
}

.top-tab-button.active .tab-line {
  width: 100%;
  left: 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .top-tabs {
      flex-wrap: wrap;
      gap: 10px;
  }
  
  .top-tab-button {
      font-size: 16px;
      margin-right: 10px;
      padding: 8px 0;
  }
}

/* 
-----------------------------------------
  ERP MODULES STYLES
-----------------------------------------
*/

.erp-modules-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.erp-module {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: all 0.3s ease;
  /* border-left: 4px solid var(--clear-color); */
  position: relative;
  overflow: hidden;
}

.erp-module:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.erp-module h3 {
  color: var(--clear-color);
  margin-bottom: 15px;
  font-size: var(--h4-font-size);
}

.erp-module p {
  color: var(--p-color);
  margin-bottom: 15px;
}

.module-icon {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.module-icon img {
  width: 20%;
  margin-bottom: 10px;
}

/* Badges for version availability */
.module-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-full {
  background-color: #0d6efd;
  color: white;
}

.badge-lite {
  background-color: #FEAC0E;
  color: white;
}

.badge-small {
  background-color: #666262;
  color: white;
}

.erp-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.erp-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.erp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Estilo do card mais popular */

.maisPopular .card-header,
.maisPopular .card-button {
  background: linear-gradient(135deg, #0d6efd, #1771f8);
  position: relative;
  overflow: hidden;
  color: white !important;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Efeito de brilho */
.maisPopular .card-header::after,
.maisPopular .card-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.1) 45%,
    rgba(255,255,255,0) 50%
  );
  transform: rotate(30deg);
  animation: shine 2s infinite;
}

/* Efeito hover aprimorado */
.maisPopular:hover .card-button {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 86, 181, 0.4);
}

/* Animação de brilho */
@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* Card Header */
.card-header {
  background: linear-gradient(135deg, var(--dark-color), #1a56b5);
  color: white;
  padding: 18px;
  text-align: center;
}

.card-header h4 {
  margin: 0;
  color: var(--about-bg-color);
  font-weight: 500;
  font-size: 1.2rem;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-features li {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--gray-color);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.card-features li:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
}

.card-features .available:before {
  background-image: url('/assets/images/figures/modules/check.svg');
}

.card-features .unavailable:before {
  background-image: url('/assets/images/figures/modules/uncheck.svg');
}

/* Estilo do footer do card */
.card-footer {
  padding: 15px;
  text-align: center;
  background-color: var(--white-color);
}

/* Estilo base do botão */
.card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0d6efd;
  color: white !important;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 90%;
  max-width: 200px;
}

/* Efeito hover */
.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 86, 181, 0.3);
  background-color: var(--dark-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  .erp-cards-container {
      flex-direction: column;
      align-items: center;
  }
  
  .erp-card {
      max-width: 100%;
  }
}
