/* Import new CSS files */
@import url('/src/styles/variables.css');
@import url('/src/styles/base.css');
@import url('/src/styles/layout.css');
@import url('/src/styles/forms.css');
@import url('/src/styles/buttons.css');

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
  --primary-color: #2e3092;
  --secondary-color: #00a650;
  --error-color: #e74c3c;
  --success-color: #00a650;
  --light-bg: #f9f9f9;
  --border-color: #e1e1e1;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --text-dark: #333;
  --text-light: #555;
  --card-bg: #ffffff;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

header {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 80px; 
  height: auto;
  margin-right: 15px;
}

header h1 {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
}

.header-with-cart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo-container-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container-inner img.logo {
  width: 60px;
  height: auto;
}

.logo-container-inner h3 {
  margin: 0;
  color: var(--primary-color);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ==========================================================================
   AUTHENTICATION SECTIONS
   ========================================================================== */

.auth-section {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
  width: 100%;
  max-width: 500px;
}

#user-info-container {
  max-width: 800px;
}

#user-info-container.full-width {
  max-width: 100%;
  width: 100%;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
}

.auth-tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.auth-form-container {
  display: none;
}

.auth-form-container.active {
  display: block;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.forgot-password {
  text-align: right;
  margin: -5px 0 10px;
}

.forgot-password a {
  color: var(--primary-color);
  font-size: 14px;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 10px;
  color: var(--text-light);
  font-size: 14px;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--text-light);
  font-size: 12px;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 48, 146, 0.2);
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group-checkbox input[type="checkbox"] {
  width: 16px; 
  height: 16px;
}

.form-group-checkbox label {
  margin-bottom: 0; 
}

select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: white;
  margin-top: 5px;
}

input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: white;
}

.file-input-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  min-width: 150px;
}

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

.primary-btn:hover {
  background-color: #26297d;
}

.secondary-btn {
  background-color: #95a5a6;
  color: white;
}

.secondary-btn:hover {
  background-color: #7f8c8d;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.google-btn:hover {
  background-color: #f5f5f5;
}

.google-icon {
  width: 18px;
  height: 18px;
}

.btn-new {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 15px;
}

.btn-new:hover {
  background-color: #27ae60;
}

.btn-edit {
  background-color: var(--primary-color);
}

.btn-edit:hover {
  background-color: #2980b9;
}

.btn-delete {
  background-color: var(--error-color);
}

.btn-delete:hover {
  background-color: #c0392b;
}

.error-btn {
  background-color: var(--error-color);
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
}

.error-btn:hover {
  background-color: #c0392b;
}

#view-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

#view-cart-btn:hover {
  background-color: #26297d;
}

.back-btn {
  background-color: #95a5a6;
}

.back-btn:hover {
  background-color: #7f8c8d;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}

.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 30px;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  font-size: 14px;
  text-decoration: none;
}

.floating-button:hover {
  transform: translateY(-2px);
  background-color: #26297d;
}

.floating-button i {
  font-size: 16px;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  color: white;
  margin: -20px -20px 30px -20px;
}

.hero-section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.index-hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin: -20px -20px 30px -20px;
  border-radius: 0 0 15px 15px;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1.1em;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.index-cta-button {
  background-color: white;
  color: var(--primary-color);
}

/* ==========================================================================
   ADMIN PANELS & MANAGEMENT
   ========================================================================== */

.admin-panel-public {
  background-color: var(--card-bg);
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.admin-panel-public h2 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-panel-public p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.management-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.management-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 25px;
  margin-bottom: 30px;
}

.management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.management-header h2,
.management-header h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   PUBLIC INFO SECTIONS
   ========================================================================== */

#public-data-display {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 0;
}

.public-info-section {
  background-color: var(--card-bg);
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.public-info-section h2 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-list ul {
  list-style: none;
  padding-left: 0;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li .fas {
  color: var(--secondary-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ==========================================================================
   CARD COMPONENTS
   ========================================================================== */

.bolao-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: var(--light-bg);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
  margin-bottom: 20px;
  gap: 20px;
}

.bolao-info {
  flex: 1;
}

.bolao-card-content {
  flex: 1;
  padding-right: 15px;
}

.bolao-card-action {
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 1px solid var(--border-color);
  padding-left: 15px;
}

.bolao-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bolao-card h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bolao-card h4 img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.bolao-description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  min-height: 40px;
}

.bolao-meta {
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--text-light);
}

.bolao-card .btn {
  margin-top: auto;
  margin-top: 15px;
}

.add-to-cart-btn {
  width: auto !important;
  display: inline-flex;
  white-space: nowrap;
}

.bolao-status {
  font-size: 14px;
  color: var(--text-dark);
}

.bolao-status span {
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--secondary-color);
  color: white;
  text-transform: capitalize;
}

.purchase-info-box {
  min-width: 220px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #f7f9fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
}

.participant-card {
  background-color: var(--light-bg);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.participant-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.participant-card h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-card h4 .fas {
  color: var(--secondary-color);
}

.participant-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
  word-break: break-word;
}

.participant-card p strong {
  color: var(--text-dark);
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Management Cards */
.bolao-manage-card,
.participant-manage-card,
.transacao-manage-card,
.reserva-manage-card {
  background-color: var(--light-bg);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bolao-manage-card {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bolao-manage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bolao-manage-card h4,
.participant-manage-card h4,
.transacao-manage-card h4,
.reserva-manage-card h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-manage-card h4 .fas {
  margin-right: 8px;
}

.bolao-manage-card p,
.participant-manage-card p,
.transacao-manage-card p,
.reserva-manage-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  word-break: break-word;
  line-height: 1.5;
}

.bolao-manage-card p strong,
.participant-manage-card p strong,
.transacao-manage-card p strong,
.reserva-manage-card p strong {
  color: var(--text-dark);
  font-weight: 500;
}

.transacao-manage-card.positive {
  border-left: 4px solid var(--success-color);
}

.transacao-manage-card.negative {
  border-left: 4px solid var(--error-color);
}

/* Card Actions */
.bolao-actions,
.participant-actions,
.transacao-actions,
.reserva-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.bolao-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.bolao-actions .btn,
.participant-actions .btn,
.transacao-actions .btn,
.reserva-actions .btn {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
}

.bolao-actions .btn {
  padding: 10px;
  transition: all 0.3s ease;
}

.bolao-actions .btn-edit:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.bolao-actions .btn-delete:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */

.boloes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.transacoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.reservas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.boloes-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.featured-boloes {
  padding: 40px 0;
}

.featured-boloes h3 {
  text-align: center;
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.boloes-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 900px;
}

.bolao-preview-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.bolao-preview-card:hover {
  transform: translateY(-5px);
}

.bolao-preview-card h4 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bolao-preview-info {
  margin: 15px 0;
  padding: 15px;
  background: var(--light-bg);
  border-radius: 8px;
}

.bolao-preview-info p {
  margin: 8px 0;
  color: var(--text-dark);
}

.bolao-preview-footer {
  margin-top: 20px;
  text-align: center;
}

/* ==========================================================================
   STATUS BADGES & INDICATORS
   ========================================================================== */

.status-a, .status-ativo {
  color: var(--success-color);
  font-weight: bold;
}

.status-i, .status-inativo {
  color: #e67e22;
  font-weight: bold;
}

.status-e { 
  color: #e67e22; 
  font-weight: bold;
}

.status-f { 
  color: var(--error-color); 
  font-weight: bold;
}

.status-r { 
  color: var(--primary-color);
  font-weight: bold;
}

.status-c { 
  color: var(--success-color);
  font-weight: bold;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.status-a {
  background-color: rgba(0, 166, 80, 0.15);
  color: var(--success-color);
}

.status-badge.status-e {
  background-color: rgba(230, 126, 34, 0.15);
  color: #e67e22;
}

.status-badge.status-f {
  background-color: rgba(231, 76, 60, 0.15);
  color: var(--error-color);
}

.valor-positivo {
  color: var(--success-color);
}

.valor-negativo {
  color: var(--error-color);
}

/* ==========================================================================
   USER INTERFACE COMPONENTS
   ========================================================================== */

.user-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  width: 100%;
  justify-content: flex-start;
}

.user-menu-item {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.user-menu-item:hover {
  background-color: rgba(46, 48, 146, 0.1);
  color: var(--primary-color);
}

.user-menu-item.active {
  color: var(--primary-color);
  background-color: rgba(46, 48, 146, 0.1);
  font-weight: 600;
}

.user-menu-item i {
  font-size: 18px;
}

.user-tab-content {
  display: none;
}

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

/* ==========================================================================
   USER SECTIONS
   ========================================================================== */

.user-transactions-section,
.user-boloes-history-section,
.user-profile-section {
  margin: 20px 0;
  padding: 20px;
  background-color: var(--light-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.user-transactions-section h4,
.user-boloes-history-section h4,
.user-profile-section h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile-section h4 {
  font-size: 1.3em;
}

#user-profile-display p {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-dark);
}

#user-profile-display p strong {
  color: var(--text-dark);
  margin-right: 5px;
}

#user-profile-edit-form .auth-form {
  gap: 15px;
}

#user-profile-edit-form .form-group label {
  font-weight: 500;
}

.profile-form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.profile-form-actions .btn {
  min-width: 120px;
}

#change-password-form-container {
  margin-top: 15px;
  padding: 20px;
  background: var(--light-bg);
  border-radius: 8px;
}

#change-password-form-actual .form-group {
  margin-bottom: 15px;
}

.profile-edit-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.profile-edit-buttons .btn {
  min-width: 120px;
}

/* ==========================================================================
   TRANSACTION COMPONENTS
   ========================================================================== */

.transaction-card {
  background-color: white;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid;
}

.transaction-card.positive {
  border-left-color: var(--success-color);
}

.transaction-card.negative {
  border-left-color: var(--error-color);
}

.transaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.transaction-type {
  font-weight: 500;
  color: var(--text-dark);
}

.transaction-date {
  color: var(--text-light);
  font-size: 0.9em;
}

.transaction-amount {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0;
}

.transaction-amount.positive { 
  color: var(--success-color);
}

.transaction-amount.negative { 
  color: var(--error-color);
}

.transaction-description {
  color: var(--text-light);
  font-size: 0.9em;
  margin-top: 5px;
}

/* ==========================================================================
   BOLOES HISTORY COMPONENTS
   ========================================================================== */

.bolao-history-card {
  background-color: white;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.bolao-history-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bolao-history-card h4 {
  color: var(--text-dark); 
  font-size: 1.1em; 
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px; 
}

.bolao-history-card p {
  margin: 5px 0;
  font-size: 14px; 
  color: var(--text-light);
}

.bolao-history-card p strong {
  color: var(--text-dark);
}

.user-participated {
  border-left: 4px solid var(--success-color);
  position: relative;
}

.participation-badge {
  color: var(--success-color);
  margin-left: 8px;
  font-size: 0.9em;
}

.user-participation {
  margin-top: 10px;
  color: var(--success-color);
  font-weight: 500;
  font-size: 0.9em;
}

/* ==========================================================================
   SHOPPING CART & RESERVATIONS
   ========================================================================== */

.cota-selector-container {
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.cota-value {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
  text-align: center;
}

.cota-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cota-quantity select {
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.cart-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.cart-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 600px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {transform: translateY(-30px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.cart-modal-header h3 {
  margin: 0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4em;
}

.cart-close {
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
  transition: all 0.2s ease;
}

.cart-close:hover {
  color: #555;
  transform: rotate(90deg);
}

.cart-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cart-item-details {
  color: var(--text-light);
  font-size: 0.9em;
}

.cart-item-price {
  font-weight: 500;
  color: var(--primary-color);
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  color: var(--error-color);
  cursor: pointer;
  margin-left: 10px;
  font-size: 18px;
}

.cart-summary {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-summary-row.total {
  font-weight: bold;
  font-size: 1.1em;
  border-top: 1px solid #ddd;
  padding-top: 8px;
  margin-top: 8px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.cart-actions .btn {
  flex: 1;
}

.cart-empty {
  text-align: center;
  padding: 30px 0;
  color: var(--text-light);
}

.cart-empty i {
  font-size: 40px;
  color: #ddd;
  margin-bottom: 15px;
  display: block;
}

.pix-container {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

#payment-details .cart-item-remove {
  display: none; 
}

/* ==========================================================================
   RESERVATION COMPONENTS
   ========================================================================== */

.minhas-reservas-section {
  margin: 20px 0;
  padding: 20px;
  background-color: var(--light-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.minhas-reservas-section h5 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reservas-list {
  margin-top: 15px;
}

.reserva-card {
  background-color: white;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid;
  margin-bottom: 15px;
}

.reserva-card.status-r {
  border-left-color: var(--primary-color);
}

.reserva-card.status-c {
  border-left-color: var(--success-color);
}

.reserva-card.status-e {
  border-left-color: var(--error-color);
}

.reserva-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.reserva-status {
  font-weight: 500;
  color: var(--text-dark);
}

.reserva-details p {
  margin: 5px 0;
  color: var(--text-light);
}

.reserva-details p strong {
  color: var(--text-dark);
}

.reserva-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.reserva-actions .btn {
  flex: 1;
  padding: 8px;
  font-size: 14px;
}

.pending-reservations-header {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

.pending-reservations-header h5 {
  color: #856404;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pending-reservations-header p {
  margin: 5px 0;
  color: #856404;
}

/* ==========================================================================
   MODAL COMPONENTS
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content { 
  background-color: #fefefe;
  margin: 5% auto; 
  padding: 25px; 
  border: 1px solid #888;
  width: 80%; 
  max-width: 600px; 
  border-radius: 8px; 
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-content h3 { 
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.close-btn { 
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover,
.close-btn:focus {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-actions { 
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.modal-actions .btn { 
  width: auto;
  padding: 10px 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
}

.referral-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 500px;
  animation: slideIn 0.3s ease;
  position: relative;
}

.referral-code-container {
  margin: 20px 0;
}

.referral-code-container label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-dark);
}

.referral-code-box {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.referral-code-box span {
  flex: 1;
  font-family: monospace;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
}

/* ==========================================================================
   TABLE COMPONENTS
   ========================================================================== */

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  background-color: white;
}

.transactions-table thead th {
  background-color: var(--primary-color);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 500;
}

.transactions-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}

.transactions-table tbody tr:last-child td {
  border-bottom: 2px solid var(--primary-color);
}

.transactions-table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.transactions-table .amount {
  text-align: right;
  font-weight: 500;
}

.transactions-table tfoot {
  background-color: var(--light-bg);
  font-weight: bold;
}

.transactions-table tfoot td {
  padding: 12px;
}

.transactions-table .total-label {
  text-align: right;
  font-weight: 600;
  color: var(--text-dark);
}

.transactions-table .total-amount {
  text-align: right;
  font-weight: 700;
  font-size: 1.1em;
}

.transactions-table .positive {
  color: var(--success-color);
}

.transactions-table .negative {
  color: var(--error-color);
}

.year-header td {
  text-align: left !important;
  font-size: 1.1em;
  border-bottom: 2px solid var(--primary-color) !important;
  padding-bottom: 15px;
  background-color: #f7f9fc;
}

.year-header td i {
  margin-right: 8px;
}

.boloes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  margin-top: 20px;
}

.boloes-table thead th {
  background-color: var(--primary-color);
  color: white;
  padding: 12px;
  text-align: left;
}

.boloes-table tbody td {
  padding: 12px;
  vertical-align: top;
}

.transactions-summary-container {
  margin-bottom: 25px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.transactions-summary-container h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.transactions-summary-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.transactions-summary-table thead th {
  background-color: var(--secondary-color);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 500;
  border-bottom: 2px solid var(--primary-color);
}

.transactions-summary-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.transactions-summary-table tbody tr:nth-child(even) td {
  background-color: #fdfdfd;
}

.transactions-summary-table tbody tr:hover td {
  background-color: rgba(0, 166, 80, 0.05);
}

.transactions-summary-table .amount {
  text-align: right;
  font-weight: 500;
}

.transactions-summary-table .positive {
  color: var(--success-color);
}

.transactions-summary-table .negative {
  color: var(--error-color);
}

/* ==========================================================================
   SEARCH & FILTER COMPONENTS
   ========================================================================== */

.search-container {
  margin-bottom: 20px;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.search-container h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 8px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.filter-group input, 
.filter-group select {
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

.filter-btn {
  padding: 8px 16px;
  min-width: auto;
  font-size: 14px;
}

/* ==========================================================================
   PAGINATION COMPONENTS
   ========================================================================== */

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 40px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.9em;
}

.pagination-info {
  margin: 0 15px;
  font-weight: 500;
  color: var(--text-dark);
}

/* ==========================================================================
   TUTORIAL & MIGRATION SECTIONS
   ========================================================================== */

.tutorial-section {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  margin-top: 30px;
  box-shadow: var(--shadow);
}

.tutorial-section h2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.tutorial-content h3 {
  display: flex;
  align-items: center;
  color: #f39c12;
  margin-bottom: 25px;
  font-size: 18px;
}

.tutorial-content h3 i {
  margin-right: 10px;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
}

.step-number {
  min-width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  font-size: 14px;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.tutorial-note {
  background-color: #fff9e6;
  border-left: 4px solid #f39c12;
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
}

.tutorial-note p {
  margin-bottom: 8px;
  color: #555;
}

.tutorial-note ul {
  list-style-position: inside;
  padding-left: 5px;
}

.tutorial-note li {
  margin-bottom: 5px;
  color: #555;
}

.migration-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 25px;
  margin-bottom: 30px;
}

.file-input-container {
  margin-bottom: 20px;
}

.migration-description {
  margin-bottom: 20px;
  color: #555;
}

.migration-type-container {
  margin-bottom: 20px;
}

.progress-container {
  margin: 20px 0;
  background-color: #f0f0f0;
  border-radius: 4px;
  height: 25px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: width 0.3s ease;
}

.migration-log {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  font-family: monospace;
  margin-top: 20px;
}

.log-item {
  margin-bottom: 5px;
  padding: 3px 0;
  border-bottom: 1px solid #eee;
}

.log-time {
  color: #666;
  font-size: 0.9em;
  margin-right: 8px;
}

.log-item.info {
  color: #2196F3;
}

.log-item.success {
  color: var(--success-color);
}

.log-item.warning {
  color: #FF9800;
}

.log-item.error {
  color: var(--error-color);
}

.btn-container {
  display: flex;
  gap: 10px;
}

.table-example {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 14px;
}

.table-example th,
.table-example td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

.table-example th {
  background-color: #f2f2f2;
  font-weight: 500;
}

.table-example tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table-example caption {
  font-weight: bold;
  margin-bottom: 8px;
  text-align: left;
}

/* ==========================================================================
   MESSAGE & NOTIFICATION COMPONENTS
   ========================================================================== */

.message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  width: auto;
  max-width: 400px;
}

.message {
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: white;
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.message.success {
  background-color: var(--success-color);
}

.message.error {
  background-color: var(--error-color);
}

/* ==========================================================================
   ANIMATION CLASSES
   ========================================================================== */

@keyframes pulseWarning {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.last-quotas-warning {
  color: #e74c3c; 
  font-weight: bold;
  font-size: 0.95em; 
  animation: pulseWarning 1.5s infinite ease-in-out;
  display: inline-block; 
  padding: 3px 6px;
  border-radius: 4px;
  background-color: rgba(231, 76, 60, 0.1); 
}

@keyframes flashDeadline {
  0%, 100% {
    color: #e74c3c; 
    background-color: rgba(231, 76, 60, 0.1);
  }
  50% {
    color: #c0392b; 
    background-color: rgba(231, 76, 60, 0.2);
  }
}

.deadline-warning {
  margin-left: 5px;
  color: #e74c3c;
  font-weight: bold;
  font-size: 0.95em; 
  padding: 3px 6px;
  border-radius: 4px;
  animation: flashDeadline 2s infinite;
  display: inline-block; 
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
  /* Add responsive styles for tablets */
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .logo-container {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-bottom: 10px;
    margin-right: 0;
  }

  header h1 {
    font-size: 24px;
  }

  .hero-section {
    padding: 40px 15px;
  }

  .hero-section h2 {
    font-size: 2em;
  }

  .tutorial-section,
  .admin-panel-public {
    border-radius: 0;
    box-shadow: none;
    padding: 20px 15px;
  }

  .public-info-section {
    padding: 15px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-public .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .admin-panel-public .btn:last-child {
    margin-bottom: 0;
  }
  
  .management-links {
    flex-direction: column;
  }

  .management-links .btn {
    width: 100%;
    margin-top: 10px !important;
  }
  
  .transactions-grid,
  .reservas-grid,
  .boloes-history-grid {
    grid-template-columns: 1fr;
  }
  
  .transaction-card,
  .reserva-card {
    margin-bottom: 10px;
  }
  
  .user-menu {
    flex-direction: column;
    gap: 5px;
  }
  
  .user-menu-item {
    width: 100%;
    justify-content: flex-start;
  }

  .boloes-preview {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .cart-modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .cart-actions {
    flex-direction: column;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
    margin: 10% auto;
  }

  .management-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .boloes-grid {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-group input,
  .filter-group select {
    width: 100%;
  }
  
  .pagination-controls {
    flex-direction: column;
    gap: 10px;
  }

  .pagination-btn {
    padding: 6px 10px;
    min-width: 30px;
    font-size: 0.8em;
  }

  /* Responsive table for small screens */
  .transactions-table thead {
    display: none;
  }
  
  .transactions-table, 
  .transactions-table tbody, 
  .transactions-table tr, 
  .transactions-table td {
    display: block;
    width: 100%;
  }
  
  .transactions-table tr {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
  }
  
  .transactions-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border-bottom: 1px solid #eee;
  }
  
  .transactions-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: 45%;
    text-align: left;
    font-weight: 500;
  }
  
  .transactions-table tfoot tr {
    border: none;
    background-color: transparent;
  }
  
  .transactions-table tfoot td {
    padding: 10px;
    text-align: center;
  }
  
  .transactions-table .total-label {
    text-align: center;
  }
  
  .transactions-table .total-amount {
    text-align: center;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.positive {
  color: var(--success-color);
}

.negative {
  color: var(--error-color);
}

.positive-row {
  /* Additional styling for positive rows if needed */
}

.negative-row {
  /* Additional styling for negative rows if needed */
}

.details-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin: 15px 0;
}

.details-box p {
  margin: 8px 0;
  color: var(--text-dark);
}

.details-box p strong {
  color: var(--text-dark);
}