/*
 * 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;
  
  /* Spacing Scale - Improved for better breathing room */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 0.75rem;   /* 12px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  
  /* Typography Scale - Better hierarchy */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows - More subtle and modern */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 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;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 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: var(--spacing-lg);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #333;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.form-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-base);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background-color: #fff;
  color: #333;
  line-height: 1.5;
}

.form-input:hover {
  border-color: #c0c0c0;
}

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

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

.form-select {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-base);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background-color: #fff;
  color: #333;
  line-height: 1.5;
  cursor: pointer;
}

.form-select:hover {
  border-color: #c0c0c0;
}

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

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

.btn {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  line-height: 1.5;
  white-space: nowrap;
  min-height: 44px; /* Better touch target for mobile */
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--spring-green) 0%, var(--emerald) 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 204, 96, 0.2), var(--shadow-md);
}

/* Alert Styles */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  border-left: 4px solid;
}

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

.alert-success {
  background-color: rgba(20, 204, 96, 0.1);
  color: var(--green);
  border: 1px solid var(--emerald);
  border-left-color: 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;
}

.nav-divider {
  height: 1px;
  background: rgba(39, 251, 107, 0.2);
  margin: 20px 20px 15px 20px;
}

.nav-section-title {
  padding: 10px 20px 8px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(39, 251, 107, 0.6);
  margin-top: 10px;
}

.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: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
  width: 100%;
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

/* 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: flex-start;
  margin-bottom: var(--spacing-2xl);
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

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

.page-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--jet-black);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: var(--font-size-base);
  color: #666;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .page-title {
    font-size: var(--font-size-3xl);
  }
  
  .page-subtitle {
    font-size: var(--font-size-sm);
  }
}

/* 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: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
}

@media (max-width: 768px) {
  .form-container {
    padding: var(--spacing-xl);
  }
}

.form-container .btn,
.auth-container .btn,
.auth-card .btn {
  width: 100%;
}

.form {
  margin-top: 20px;
}

/* Tables */
.table-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
  margin-bottom: var(--spacing-xl);
}

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

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

.data-table th {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: var(--spacing-lg) var(--spacing-md);
  border-bottom: 1px solid #e0e0e0;
  color: #333;
  vertical-align: middle;
}

.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-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.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: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--jet-black);
  margin: 0 0 var(--spacing-xl) 0;
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--emerald);
  line-height: 1.3;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-xl);
  border: 2px dashed #e0e0e0;
}

.empty-state p {
  font-size: var(--font-size-base);
  color: #666;
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.empty-state .btn {
  width: 100%;
  max-width: 300px;
}

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

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

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

  .content-wrapper {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-lg);
  }

  .page-header .btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .home-email {
    font-size: var(--font-size-2xl);
  }

  .table-container {
    padding: var(--spacing-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    font-size: var(--font-size-sm);
    min-width: 600px;
  }

  .data-table th,
  .data-table td {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .operation-card {
    padding: var(--spacing-lg);
  }
  
  .operation-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .operation-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .operation-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* 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: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
  min-height: 52px;
}

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

.btn-secondary:hover {
  background: rgba(10, 46, 54, 0.15);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cancel {
  background: #6c757d;
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-height: 44px;
  box-shadow: var(--shadow-sm);
}

.btn-cancel:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@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(260px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
}

@media (max-width: 640px) {
  .summary-cards-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 204, 96, 0.2);
}

.summary-card-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 204, 96, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.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: var(--font-size-sm);
  color: #666;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  line-height: 1.4;
}

.summary-card-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--jet-black);
  line-height: 1.2;
  margin: 0;
}

.summary-card-subtitle {
  font-size: var(--font-size-xs);
  color: #888;
  margin-top: var(--spacing-xs);
  line-height: 1.4;
}

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

/* Operations Section */
.operations-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-xl);
}

.operations-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.operation-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.operation-card:hover {
  border-color: var(--emerald);
  border-left-color: var(--emerald);
  box-shadow: var(--shadow-md);
  background: #fff;
  transform: translateX(2px);
}

.operation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.operation-title h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--jet-black);
  margin: 0 0 var(--spacing-xs) 0;
  line-height: 1.3;
}

.operation-meta {
  font-size: var(--font-size-xs);
  color: #666;
  line-height: 1.4;
}

.operation-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.operation-detail-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: baseline;
  flex-wrap: wrap;
}

.detail-label {
  font-weight: 600;
  color: #666;
  min-width: 120px;
  font-size: var(--font-size-sm);
}

.detail-value {
  color: var(--jet-black);
  font-size: var(--font-size-base);
  flex: 1;
}

.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: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
  padding-top: var(--spacing-md);
  border-top: 1px solid #e0e0e0;
}

.btn-resolve {
  background: var(--emerald);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
  box-shadow: var(--shadow-sm);
}

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

.btn-resolve:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 204, 96, 0.2), var(--shadow-md);
}

.btn-icon {
  background: rgba(20, 204, 96, 0.1);
  color: var(--emerald);
  border: 1px solid var(--emerald);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
  background: var(--emerald);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-icon:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 204, 96, 0.2), var(--shadow-md);
}

.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);
}

.badge-double-green {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-left: 8px;
  white-space: nowrap;
}

html.dark .badge-double-green {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

/* Operation Form */
.operation-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-xl);
}

.form-section {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
}

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

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

.entries-section {
  margin: var(--spacing-2xl) 0;
}

.entries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.entries-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--jet-black);
  margin: 0;
  line-height: 1.3;
}

#entries-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--spacing-xl);
}

@media (max-width: 768px) {
  #entries-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.entry-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.entry-card:hover {
  border-left-color: var(--emerald);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid #e0e0e0;
}

.entry-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--jet-black);
  margin: 0;
  line-height: 1.3;
}

.btn-remove-entry {
  background: #dc3545;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: var(--shadow-sm);
  min-width: 32px;
  min-height: 32px;
}

.btn-remove-entry:hover {
  background: #c82333;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.btn-remove-entry:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2), var(--shadow-md);
}

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

@media (max-width: 640px) {
  .entry-fields {
    grid-template-columns: 1fr;
  }
}

.entry-results {
  display: flex;
  gap: var(--spacing-xl);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: rgba(20, 204, 96, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 204, 96, 0.1);
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  flex: 1;
}

.result-label {
  font-size: var(--font-size-xs);
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.result-value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.2;
}

.entry-options {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid #e0e0e0;
}

.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: var(--spacing-lg);
  background: rgba(20, 204, 96, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(20, 204, 96, 0.2);
}

.operation-summary {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-xl);
  background: rgba(20, 204, 96, 0.05);
  border-radius: var(--radius-lg);
  margin: var(--spacing-2xl) 0;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  border: 1px solid rgba(20, 204, 96, 0.15);
}

@media (max-width: 640px) {
  .operation-summary {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  flex: 1;
  min-width: 140px;
}

.summary-label {
  font-size: var(--font-size-sm);
  color: #666;
  font-weight: 600;
  line-height: 1.4;
}

.summary-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.2;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid #e0e0e0;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .form-actions {
    flex-direction: column-reverse;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

.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: 2rem;
  color: #666;
  text-decoration: none;
  line-height: 1;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
}

.btn-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--jet-black);
}

.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: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
  border: 1px solid rgba(20, 204, 96, 0.15);
}

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

.double-green-operation-section {
  background: rgba(34, 197, 94, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.double-green-fields-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}

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

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

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  border: 2px solid #e0e0e0;
  transition: all 0.2s 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;
}

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

.operation-resume {
  background: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(20, 204, 96, 0.2);
}

.resume-text {
  color: #666;
  font-size: 14px;
  margin: 0;
  font-style: italic;
}

.resume-scenarios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resume-scenario {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  line-height: 1.6;
  color: var(--jet-black);
  font-size: 15px;
}

.resume-scenario strong {
  display: inline;
  color: var(--jet-black);
  font-size: 14px;
  margin-right: 8px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .content-wrapper {
    padding: var(--spacing-md);
  }
  
  .page-title {
    font-size: var(--font-size-2xl);
  }
  
  .operation-form {
    padding: var(--spacing-lg);
  }
  
  .form-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
  }
  
  .entry-card {
    padding: var(--spacing-lg);
  }
  
  .entry-header h3 {
    font-size: var(--font-size-base);
  }
  
  .summary-card {
    padding: var(--spacing-lg);
    flex-direction: column;
    text-align: center;
  }
  
  .summary-card-icon {
    margin: 0 auto;
  }
}

/* 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 .double-green-operation-section {
  background: rgba(34, 197, 94, 0.05);
}

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

html.dark .operation-resume {
  background: #2a2a2a;
  border-color: #444;
}

html.dark .resume-text {
  color: #888;
}

html.dark .resume-scenario {
  background: transparent;
  border: none;
  color: #b0b0b0;
}

html.dark .resume-scenario strong {
  color: #e0e0e0;
}

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;
}

/* Insights Page Styles */
.insights-section {
  margin-top: 2rem;
}

.insights-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.insights-card .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 300px;
  padding: 1rem 0;
}

.chart-container canvas {
  max-height: 400px;
}

/* Bookmaker Filters */
.bookmaker-filters-form {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e0e0e0);
}

.filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary, #333);
  margin-bottom: 0.25rem;
}

.filter-hint {
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
  margin-top: 0.25rem;
  display: block;
  font-style: italic;
}

.date-range-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.date-range-filters .filter-input {
  flex: 1;
  min-width: 0;
}

.date-separator {
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
  white-space: nowrap;
}

.odd-filter {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.odd-filter .filter-select {
  flex: 0 0 auto;
  min-width: 150px;
  width: auto;
}

.odd-filter .filter-input {
  flex: 1;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 6px;
  background: white;
  color: var(--text-primary, #333);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.filter-select {
  width: 100%;
  min-width: 120px;
}

.filter-input[type="number"] {
  flex: 1;
  min-width: 100px;
}

.filter-input[type="date"] {
  flex: 1;
  min-width: 150px;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.filter-actions-group {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
  height: fit-content;
}

/* Bookmaker Stats Table */
.bookmaker-stats-table {
  overflow-x: auto;
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.data-table tbody tr:hover {
  background: var(--bg-secondary);
}

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

/* Recommendations */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid;
  background: var(--bg-secondary);
}

.recommendation-success {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.recommendation-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.recommendation-info {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.recommendation-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.recommendation-content {
  flex: 1;
}

.recommendation-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.recommendation-message {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.recommendation-action {
  margin-top: 0.5rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Dark mode adjustments for insights */
html.dark .insights-card,
.dark .insights-card {
  background: #2a2a2a;
  border-color: #444;
}

html.dark .data-table thead,
.dark .data-table thead {
  background: #333;
}

html.dark .data-table tbody tr:hover,
.dark .data-table tbody tr:hover {
  background: #333;
}

html.dark .recommendation-success,
.dark .recommendation-success {
  background: rgba(16, 185, 129, 0.15);
  border-left-color: #10b981;
}

html.dark .recommendation-warning,
.dark .recommendation-warning {
  background: rgba(245, 158, 11, 0.15);
  border-left-color: #f59e0b;
}

html.dark .recommendation-info,
.dark .recommendation-info {
  background: rgba(59, 130, 246, 0.15);
  border-left-color: #3b82f6;
}

/* Dark mode for filters */
html.dark .bookmaker-filters-form,
.dark .bookmaker-filters-form {
  background: #1a1a1a;
  border-color: #444;
}

html.dark .filter-label,
.dark .filter-label {
  color: #e0e0e0;
}

html.dark .filter-input,
html.dark .filter-select,
.dark .filter-input,
.dark .filter-select {
  background: #2a2a2a;
  color: #e0e0e0;
  border-color: #444;
}

html.dark .filter-input:focus,
html.dark .filter-select:focus,
.dark .filter-input:focus,
.dark .filter-select:focus {
  border-color: var(--emerald);
  background: #2f2f2f;
}

html.dark .date-separator,
.dark .date-separator {
  color: #b0b0b0;
}

html.dark .filter-hint,
.dark .filter-hint {
  color: #888;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .insights-card {
    padding: 1rem;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }

  .chart-container {
    min-height: 250px;
  }

  .filters-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-group {
    width: 100%;
    min-width: 0;
  }

  .date-range-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .date-separator {
    text-align: center;
    margin: 0;
  }

  .odd-filter {
    flex-direction: column;
    gap: 0.5rem;
  }

  .odd-filter .filter-select {
    width: 100%;
    min-width: 0;
  }

  .filter-actions,
  .filter-actions-group {
    flex-direction: column;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
  }

  .filter-input,
  .filter-select {
    width: 100%;
    min-width: 0;
  }
}

/* Pagination Styles */
.pagination-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination li {
  margin: 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--jet-black);
  background: white;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.pagination a:hover {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.pagination .current {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
  font-weight: 600;
}

.pagination .disabled,
.pagination .disabled span {
  color: #ccc;
  background: #f5f5f5;
  border-color: #e0e0e0;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .disabled:hover {
  background: #f5f5f5;
  color: #ccc;
  transform: none;
}

.pagination .gap {
  color: #999;
  padding: 8px 4px;
  background: transparent;
  border: none;
}

/* Dark Mode Pagination */
html.dark .pagination a,
html.dark .pagination span {
  background: #2a2a2a;
  color: #e0e0e0;
  border-color: #444;
}

html.dark .pagination a:hover {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
}

html.dark .pagination .current {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
}

html.dark .pagination .disabled,
html.dark .pagination .disabled span {
  background: #1a1a1a;
  color: #666;
  border-color: #333;
}

html.dark .pagination .gap {
  color: #666;
  background: transparent;
}

/* Filters Section */
.filters-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xl);
}

.filters-form {
  width: 100%;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
}

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

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

.filter-actions .btn {
  width: auto;
  padding: 10px 20px;
  font-size: 14px;
  margin-top: 0;
}

.btn-link {
  background: transparent;
  color: var(--emerald);
  border: 1px solid var(--emerald);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-link:hover {
  background: rgba(20, 204, 96, 0.1);
  color: var(--spring-green);
  border-color: var(--spring-green);
}

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

  .filter-actions {
    flex-direction: column;
    width: 100%;
  }

  .filter-actions .btn,
  .filter-actions .btn-link {
    width: 100%;
  }
}

/* Dark Mode Filters */
html.dark .filters-section {
  background: #2a2a2a;
  color: #e0e0e0;
}

html.dark .filter-label {
  color: #e0e0e0;
}

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

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

html.dark .btn-link {
  color: var(--spring-green);
  border-color: var(--emerald);
}

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