/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Color Palette */
:root {
  --jet-black: #0a2e36;
  --spring-green: #27fb6b;
  --emerald: #14cc60;
  --green: #036d19;
  --medium-jungle: #09a129;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--jet-black) 0%, var(--medium-jungle) 50%, var(--emerald) 100%);
  min-height: 100vh;
  color: #333;
}

/* Body layout for auth pages */
body:has(.auth-container) {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Authentication Container */
.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 30px 0;
  text-align: center;
}

.auth-description {
  color: #666;
  font-size: 14px;
  text-align: center;
  margin: 0 0 25px 0;
  line-height: 1.5;
}

/* Form Styles */
.auth-form {
  margin-bottom: 25px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
}

.form-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(20, 204, 96, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* Button Styles */
.form-actions {
  margin-top: 30px;
}

.btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--medium-jungle) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 204, 96, 0.4);
  background: linear-gradient(135deg, var(--spring-green) 0%, var(--emerald) 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Alert Styles */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-error {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.alert-success {
  background-color: rgba(20, 204, 96, 0.1);
  color: var(--green);
  border: 1px solid var(--emerald);
}

.alert ul {
  margin: 0;
  padding-left: 20px;
}

.alert li {
  margin: 4px 0;
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e0e0e0;
}

.auth-links p {
  margin: 10px 0;
  font-size: 14px;
  color: #666;
}

.auth-link {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: var(--spring-green);
  text-decoration: underline;
}

/* Home Page Styles */
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-header {
  background: rgba(10, 46, 54, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--spring-green) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-email {
  color: var(--spring-green);
  font-size: 14px;
  font-weight: 500;
}

.btn-logout {
  width: auto;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--spring-green);
  font-size: 14px;
  border: 1px solid var(--emerald);
}

.btn-logout:hover {
  background: rgba(39, 251, 107, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 251, 107, 0.3);
  border-color: var(--spring-green);
}

.home-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
}

.welcome-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
  text-align: center;
}

.welcome-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px 0;
}

.welcome-message {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #666;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--spring-green) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
  }

  .auth-title {
    font-size: 24px;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .user-info {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .btn-logout {
    width: 100%;
  }

  .welcome-section {
    padding: 30px 20px;
  }

  .welcome-section h2 {
    font-size: 24px;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }
}

/* Hamburger Button (Fixed) */
.hamburger-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--jet-black);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hamburger-button:hover {
  background: rgba(10, 46, 54, 0.9);
  transform: scale(1.05);
}

.hamburger-button span {
  width: 25px;
  height: 3px;
  background: var(--spring-green);
  border-radius: 3px;
  transition: all 0.3s ease;
}

body.sidebar-open .hamburger-button {
  left: 300px;
}

body.sidebar-open .hamburger-button span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

body.sidebar-open .hamburger-button span:nth-child(2) {
  opacity: 0;
}

body.sidebar-open .hamburger-button span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (min-width: 769px) {
  body.sidebar-open .hamburger-button {
    left: 300px;
  }
}

@media (max-width: 768px) {
  body.sidebar-open .hamburger-button {
    left: 280px;
  }
}

/* Main Layout with Sidebar */
.main-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--jet-black);
  color: white;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(39, 251, 107, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--spring-green) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.sidebar-toggle span {
  width: 100%;
  height: 3px;
  background: var(--spring-green);
  border-radius: 3px;
  transition: all 0.3s ease;
}

body.sidebar-open .sidebar-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

body.sidebar-open .sidebar-toggle span:nth-child(2) {
  opacity: 0;
}

body.sidebar-open .sidebar-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
  pointer-events: auto;
}

.nav-item:hover {
  background: rgba(39, 251, 107, 0.1);
  color: var(--spring-green);
  border-left-color: var(--emerald);
}

.nav-item.active {
  background: rgba(39, 251, 107, 0.15);
  color: var(--spring-green);
  border-left-color: var(--spring-green);
}

.nav-icon {
  font-size: 20px;
  margin-right: 15px;
  width: 24px;
  text-align: center;
}

.nav-text {
  font-size: 16px;
  font-weight: 500;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(39, 251, 107, 0.2);
}

.btn-sidebar-logout {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--spring-green);
  border: 1px solid var(--emerald);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-sidebar-logout:hover {
  background: rgba(39, 251, 107, 0.2);
  border-color: var(--spring-green);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.sidebar-open .sidebar-overlay {
  left: 280px;
  width: calc(100% - 280px);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 0;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  background: #f5f5f5;
}

.padding-top-40 {
  padding-top: 40px;
}

body.sidebar-open .main-content {
  margin-left: 280px;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Home Simple */
.home-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
}

.home-email {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--spring-green) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-header-actions {
  display: flex;
  gap: 10px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--jet-black);
  margin: 0;
}

/* Buttons */
.btn-secondary {
  background: rgba(10, 46, 54, 0.1);
  color: var(--jet-black);
  border: 1px solid var(--jet-black);
}

.btn-secondary:hover {
  background: rgba(10, 46, 54, 0.2);
}

/* Form Container */
.form-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.form {
  margin-top: 20px;
}

/* Tables */
.table-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--jet-black);
  color: white;
}

.data-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

.data-table tbody tr:hover {
  background: rgba(39, 251, 107, 0.05);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.status-active {
  background: rgba(39, 251, 107, 0.2);
  color: var(--green);
}

.status-finished {
  background: rgba(20, 204, 96, 0.2);
  color: var(--green);
}

.status-cancelled {
  background: rgba(220, 53, 69, 0.2);
  color: #721c24;
}

.status-paid {
  background: rgba(20, 204, 96, 0.2);
  color: var(--green);
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.dashboard-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--jet-black);
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--emerald);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.empty-state p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

/* Responsive - Sidebar */
@media (max-width: 768px) {
  .sidebar {
    width: 260px;
  }

  body.sidebar-open .main-content {
    margin-left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    padding: 20px 15px;
  }

  .page-title {
    font-size: 24px;
  }

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

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

  .home-email {
    font-size: 32px;
  }

  .table-container {
    padding: 15px;
  }

  .data-table {
    font-size: 14px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
  }
}

/* Bet Slip Calculator */
.bet-slip-calculator {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-top: 40px;
}

.calculator-header {
  margin-bottom: 30px;
  text-align: center;
}

.calculator-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--jet-black);
  margin: 0 0 10px 0;
}

.calculator-subtitle {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.bets-section {
  margin: 30px 0;
}

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

.bets-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--jet-black);
  margin: 0;
}

.btn-add-bet {
  width: auto;
  padding: 10px 20px;
  background: var(--emerald);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-add-bet:hover {
  background: var(--spring-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 204, 96, 0.3);
}

.btn-add-bet span {
  font-size: 20px;
  font-weight: bold;
}

.bets-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.bet-card {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.bet-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 4px 12px rgba(20, 204, 96, 0.1);
}

.bet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.bet-card-header > div {
  flex: 1;
}

.bet-card-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--jet-black);
  margin: 0 0 5px 0;
}

.bet-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.bet-status-badge.status-win {
  background: rgba(20, 204, 96, 0.2);
  color: var(--green);
}

.bet-status-badge.status-loss {
  background: rgba(220, 53, 69, 0.2);
  color: #721c24;
}

.btn-remove-bet {
  width: 30px;
  height: 30px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.btn-remove-bet:hover {
  background: #c82333;
  transform: scale(1.1);
}

.bet-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.calculator-summary {
  background: var(--jet-black);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-item.highlight {
  background: rgba(39, 251, 107, 0.1);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--emerald);
}

.summary-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.summary-value.profit {
  color: var(--spring-green);
}

.btn-large {
  padding: 16px 24px;
  font-size: 18px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .bets-container {
    grid-template-columns: 1fr;
  }

  .bet-row {
    grid-template-columns: 1fr;
  }

  .calculator-summary {
    grid-template-columns: 1fr;
  }

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

  .btn-add-bet {
    width: 100%;
    justify-content: center;
  }
}

/* Edit Button */
.btn-edit {
  padding: 6px 12px;
  background: var(--emerald);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-edit:hover {
  background: var(--spring-green);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(20, 204, 96, 0.3);
}

/* Profit Indicators */
.profit-positive {
  color: var(--emerald);
  font-weight: 600;
}

.profit-negative {
  color: #dc3545;
  font-weight: 600;
}

.profit-neutral {
  color: #999;
  font-weight: 500;
}

/* Dashboard Summary */
.dashboard-summary {
  margin-top: 40px;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.summary-card {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.summary-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 4px 12px rgba(20, 204, 96, 0.1);
  transform: translateY(-2px);
}

.summary-card.profit-positive {
  border-color: var(--emerald);
  background: rgba(20, 204, 96, 0.05);
}

.summary-card.profit-negative {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.summary-card-header {
  margin-bottom: 15px;
}

.summary-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--jet-black);
  margin: 0 0 5px 0;
}

.summary-card-subtitle {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.summary-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--jet-black);
}

.summary-card.profit-positive .summary-card-value {
  color: var(--emerald);
}

.summary-card.profit-negative .summary-card-value {
  color: #dc3545;
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .btn-edit {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* Summary Cards Row */
.summary-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.summary-card-icon {
  font-size: 32px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 204, 96, 0.1);
  border-radius: 10px;
}

.summary-card-highlight {
  background: rgba(20, 204, 96, 0.1);
  border: 2px solid var(--emerald);
}

.summary-card-content {
  flex: 1;
}

.summary-card-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.summary-card-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--jet-black);
}

.summary-card-subtitle {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Operations Section */
.operations-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.operations-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.operation-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.operation-card:hover {
  border-color: var(--emerald);
  box-shadow: 0 4px 12px rgba(20, 204, 96, 0.1);
}

.operation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.operation-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--jet-black);
  margin: 0 0 5px 0;
}

.operation-meta {
  font-size: 12px;
  color: #666;
}

.operation-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.operation-detail-item {
  display: flex;
  gap: 10px;
}

.detail-label {
  font-weight: 600;
  color: #666;
  min-width: 100px;
}

.detail-value {
  color: var(--jet-black);
}

.bookmaker-details {
  margin-top: 30px;
}

.detail-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
  border-bottom: none;
}

.operation-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-resolve {
  background: var(--emerald);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-resolve:hover {
  background: var(--spring-green);
  transform: translateY(-1px);
}

.btn-icon {
  background: rgba(20, 204, 96, 0.1);
  color: var(--emerald);
  border: 1px solid var(--emerald);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: var(--emerald);
  color: white;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.status-pending {
  background: rgba(255, 165, 0, 0.2);
  color: #ff8c00;
}

.status-badge.status-resolved {
  background: rgba(20, 204, 96, 0.2);
  color: var(--emerald);
}

/* Operation Form */
.operation-form {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.form-section {
  margin-bottom: 30px;
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.entries-section {
  margin: 30px 0;
}

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

.entries-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--jet-black);
  margin: 0;
}

#entries-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.entry-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
}

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

.entry-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--jet-black);
  margin: 0;
}

.btn-remove-entry {
  background: #dc3545;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-remove-entry:hover {
  background: #c82333;
  transform: scale(1.1);
}

.entry-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.entry-results {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  padding: 15px;
  background: rgba(20, 204, 96, 0.05);
  border-radius: 8px;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.result-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.result-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald);
}

.entry-options {
  margin-top: 15px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  width: 40px;
  height: 20px;
  appearance: none;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked {
  background: var(--emerald);
}

.toggle-switch input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked::before {
  left: 22px;
}

.toggle-label {
  font-size: 14px;
  color: var(--jet-black);
  font-weight: 500;
}

.toggle-switch-large {
  padding: 15px;
  background: rgba(20, 204, 96, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
}

.operation-summary {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: rgba(20, 204, 96, 0.05);
  border-radius: 8px;
  margin: 30px 0;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.summary-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--emerald);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

.form-actions .btn,
.form-actions .btn-large,
.form-actions .btn-cancel,
.form-actions input[type="submit"],
.form-actions button[type="submit"] {
  width: auto !important;
  flex: 1 1 0 !important;
  padding: 16px 24px !important;
  font-size: 18px !important;
  margin-top: 0 !important;
  min-width: 0;
  box-sizing: border-box;
}

.btn-cancel {
  background: #6c757d;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-close {
  font-size: 32px;
  color: #666;
  text-decoration: none;
  line-height: 1;
  transition: color 0.3s ease;
}

.btn-close:hover {
  color: var(--jet-black);
}

.page-subtitle {
  font-size: 14px;
  color: #666;
  margin: 5px 0 0 0;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.input-error {
  border-color: #dc3545 !important;
}

/* Freebet Operation Section */
.freebet-operation-section {
  background: rgba(20, 204, 96, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.freebet-fields-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 204, 96, 0.2);
}

.freebet-type-section {
  margin-bottom: 20px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.radio-option:hover {
  border-color: var(--emerald);
  background: rgba(20, 204, 96, 0.05);
}

.radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--emerald);
}

.radio-option input[type="radio"]:checked + .radio-label {
  color: var(--emerald);
  font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--emerald);
  background: rgba(20, 204, 96, 0.1);
}

.radio-label {
  font-size: 14px;
  color: var(--jet-black);
  cursor: pointer;
  flex: 1;
}

@media (max-width: 768px) {
  .summary-cards-row {
    grid-template-columns: 1fr;
  }

  .form-row-inline {
    grid-template-columns: 1fr;
  }

  .entry-fields {
    grid-template-columns: 1fr;
  }

  .operation-summary {
    flex-direction: column;
    gap: 15px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-container {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--jet-black);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--jet-black);
}

.modal-body {
  padding: 20px;
}

.operation-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.resolve-section {
  margin-top: 15px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
}

.resolve-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--jet-black);
  margin-bottom: 15px;
}

.resolve-form {
  width: 100%;
}

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

.resolve-option-label {
  display: block;
  margin-bottom: 10px;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.resolve-option-label:hover {
  border-color: var(--emerald);
  background: rgba(20, 204, 96, 0.05);
}

.resolve-option-label input[type="radio"] {
  margin-right: 8px;
}

.resolve-option-label:has(input[type="radio"]:checked) {
  border-color: var(--emerald);
  background: rgba(20, 204, 96, 0.1);
}

.resolve-option-label:has(input[type="radio"]:checked) > span:first-of-type {
  font-weight: 600;
  color: var(--emerald);
}

.resolve-option-detail {
  margin-top: 5px;
  color: #666;
  font-size: 14px;
}

.expiration-fields {
  margin-bottom: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.expiration-fields-title {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--jet-black);
}

.expiration-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.expiration-fields-grid .form-input {
  width: 100%;
}

.resolve-actions {
  display: flex;
  gap: 10px;
}

.resolve-options {
  margin-bottom: 20px;
}

.resolve-option {
  margin-bottom: 15px;
}

.resolve-option input[type="radio"]:checked + .radio-content .radio-label {
  color: var(--emerald);
  font-weight: 600;
}

.radio-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.profit-info {
  font-size: 13px;
  color: #666;
  margin-left: 30px;
}

.resolve-option:has(input[type="radio"]:checked) .profit-info {
  color: var(--emerald);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* Dark Mode Styles */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%) !important;
  color: #e0e0e0 !important;
}

html.dark .main-content {
  background: #1a1a1a;
}

html.dark .page-title {
  color: #e0e0e0;
}

html.dark .form-container,
html.dark .table-container,
html.dark .operation-form,
html.dark .dashboard-section,
html.dark .summary-card,
html.dark .entry-card,
html.dark .bet-card,
html.dark .operation-card,
html.dark .detail-card,
html.dark .bet-slip-calculator,
html.dark .operations-section,
html.dark .empty-state,
html.dark .welcome-section,
html.dark .stat-card {
  background: #2a2a2a;
  color: #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Override inherited color for summary card values */
html.dark .summary-card {
  color: #e0e0e0;
}

html.dark .summary-card .summary-card-value,
html.dark .summary-card-value {
  color: #27fb6b !important;
}

html.dark .form-label,
html.dark .detail-label,
html.dark .summary-label,
html.dark .result-label,
html.dark .toggle-label,
html.dark .radio-label {
  color: #b0b0b0;
}

html.dark .form-input,
html.dark .form-select {
  background: #1a1a1a;
  color: #e0e0e0;
  border-color: #444;
}

html.dark .form-input:focus,
html.dark .form-select:focus {
  border-color: var(--emerald);
  background: #1f1f1f;
}

html.dark .form-input::placeholder {
  color: #888;
}

html.dark .data-table td {
  color: #e0e0e0;
  border-color: #444;
}

html.dark .data-table tbody tr:hover {
  background: rgba(39, 251, 107, 0.1);
}

html.dark .entry-card,
html.dark .bet-card,
html.dark .operation-card {
  background: #2a2a2a;
  border-color: #444;
}

html.dark .entry-card:hover,
html.dark .bet-card:hover,
html.dark .operation-card:hover {
  border-color: var(--emerald);
}

html.dark .operation-summary {
  background: rgba(20, 204, 96, 0.1);
}

html.dark .summary-value {
  color: var(--spring-green);
}

html.dark .page-subtitle {
  color: #888;
}

html.dark .operation-meta,
html.dark .detail-value {
  color: #b0b0b0;
}

html.dark .modal-container {
  background: #2a2a2a;
  color: #e0e0e0;
}

html.dark .modal-header {
  border-color: #444;
}

html.dark .modal-title {
  color: #e0e0e0;
}

html.dark .modal-close {
  color: #b0b0b0;
}

html.dark .modal-close:hover {
  color: #e0e0e0;
}

html.dark .operation-info,
html.dark .resolve-question {
  color: #e0e0e0;
}

html.dark .resolve-section {
  background: #2a2a2a;
  border-color: #444;
}

html.dark .resolve-option-label {
  background: #1a1a1a;
  border-color: #444;
  color: #e0e0e0;
}

html.dark .resolve-option-label:hover {
  background: rgba(20, 204, 96, 0.1);
  border-color: var(--emerald);
}

html.dark .resolve-option-label:has(input[type="radio"]:checked) > span:first-of-type {
  color: var(--emerald);
}

html.dark .resolve-option-detail {
  color: #b0b0b0;
}

html.dark .expiration-fields {
  background: #1a1a1a;
  border-color: #444;
}

html.dark .expiration-fields-title {
  color: #e0e0e0;
}

html.dark .radio-option {
  background: #1a1a1a;
  border-color: #444;
}

html.dark .radio-option:hover {
  background: rgba(20, 204, 96, 0.1);
  border-color: var(--emerald);
}

html.dark .toggle-switch-large {
  background: rgba(20, 204, 96, 0.1);
}

html.dark .freebet-operation-section {
  background: rgba(20, 204, 96, 0.05);
}

html.dark .btn-secondary {
  background: rgba(39, 251, 107, 0.15);
  color: var(--spring-green);
  border: 1px solid var(--emerald);
}

html.dark .btn-secondary:hover {
  background: rgba(39, 251, 107, 0.25);
  border-color: var(--spring-green);
  color: var(--spring-green);
}

html.dark .btn-close {
  color: #b0b0b0;
}

html.dark .btn-close:hover {
  color: #e0e0e0;
}

html.dark .entries-header h2,
html.dark .section-title,
html.dark .operation-title h3,
html.dark .entry-header h3,
html.dark .bet-card-header h4 {
  color: #e0e0e0;
}

html.dark .entry-results {
  background: rgba(20, 204, 96, 0.1);
}

html.dark .result-value {
  color: var(--spring-green);
}

/* Dark Mode - Numbers and Values - High Specificity */
.dark .stat-number,
html.dark .stat-number {
  background: linear-gradient(135deg, #27fb6b 0%, #14cc60 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Summary Card Values - All variations with both selectors */
.dark .summary-card .summary-card-value,
html.dark .summary-card .summary-card-value,
.dark .summary-card-value,
html.dark .summary-card-value {
  color: #27fb6b !important;
}

.dark .summary-card.profit-positive .summary-card-value,
html.dark .summary-card.profit-positive .summary-card-value,
.dark .summary-card .summary-card-value.profit-positive,
html.dark .summary-card .summary-card-value.profit-positive {
  color: #27fb6b !important;
}

.dark .summary-card.profit-negative .summary-card-value,
html.dark .summary-card.profit-negative .summary-card-value,
.dark .summary-card .summary-card-value.profit-negative,
html.dark .summary-card .summary-card-value.profit-negative {
  color: #ff6b6b !important;
}

.dark .summary-card-label,
html.dark .summary-card-label {
  color: #b0b0b0 !important;
}

.dark .summary-card-subtitle,
html.dark .summary-card-subtitle {
  color: #888 !important;
}

.dark .summary-value,
html.dark .summary-value {
  color: #27fb6b !important;
}

.dark .summary-value.profit,
html.dark .summary-value.profit {
  color: #27fb6b !important;
}

.dark .profit-positive,
html.dark .profit-positive {
  color: #27fb6b !important;
}

.dark .profit-negative,
html.dark .profit-negative {
  color: #ff6b6b !important;
}

/* Dark Mode - Charts and Graphs */
html.dark canvas,
.dark canvas {
  background: transparent !important;
  border: 1px solid #444 !important;
}

html.dark svg,
.dark svg {
  background: transparent !important;
}

html.dark svg text,
.dark svg text {
  fill: #e0e0e0 !important;
}

html.dark svg line,
.dark svg line {
  stroke: #27fb6b !important;
}

html.dark svg path,
.dark svg path {
  stroke: #27fb6b !important;
  fill: rgba(39, 251, 107, 0.1) !important;
}

html.dark .chart-container,
.dark .chart-container,
html.dark .graph-container,
.dark .graph-container {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
}

html.dark .chart-title,
.dark .chart-title,
html.dark .graph-title,
.dark .graph-title {
  color: #e0e0e0 !important;
}

html.dark .chart-axis,
.dark .chart-axis {
  color: #b0b0b0 !important;
}

/* Garantir que elementos de gráfico não sejam escondidos */
html.dark [class*="chart"],
.dark [class*="chart"],
html.dark [class*="graph"],
.dark [class*="graph"],
html.dark [id*="chart"],
.dark [id*="chart"],
html.dark [id*="graph"],
.dark [id*="graph"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
