:root {
    --primary: #6C63FF;
    --secondary: #FF6B6B;
    --background: #f8f9fa;
    --text: #2d34336;
    --shadow: rgba(0,0,0,0.1);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

  body {
    background: var(--background);
    min-height: 100vh;
  }

  header {
    background: white;
    padding: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo {
    height: 200px;
  }

  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }

  .titulo{
    font-size: 2.5rem;
    font-weight: bold;
    color: #c49c61;
    text-shadow: 2px 2px 5px rgba(87, 160, 64, 0.3);
    text-align: center;
  }
  .hero {
    text-align: center;
    padding: 20px;  
    background: linear-gradient(135deg, #f7f9fc, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .hero-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }
  
  .hero-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
  }
  .container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
  }
  
  .subtitulo{
    font-family: math;
  }

  .hero {
    text-align: center;
    margin: 3rem 0;
  }

  .hero h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 2.2rem;
  }

  .hero p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
  }

  .bill-input, .item-input {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow);
    margin: 2rem 0;
  }

  .input-group {
    margin-bottom: 1.5rem;
  }

  .input-group label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
  }

  input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
  }

  .people-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .person-chip {
    background: #8278FF; /* Lighter purple that matches primary color */
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(130, 120, 255, 0.3);
  }

  .person-chip button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .person-chip button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
  }

  .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
  }
 
  .btn.secondary {
    background: var(--secondary);
    margin-bottom: 1rem;
    width: auto;
    padding: 0.7rem 1.5rem;
  }

  .participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .participant-check {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
  }

  .participant-check:hover {
    background: #e9ecef;
  }

  .participant-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  .items-list {
    margin-top: 2rem;
  }

  .item-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
  }

  .item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
  }

  .screen {
    display: none;
  }

  .screen.active {
    display: block;
  }

  .amount-display {
    background: none;  
    color: var(--text);  
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: none; 
    border: 1px solid #e0e0e0; 
  }

  .amount-display h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text); 
  }

  .person-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--text);
    background: #f8f9fa; 
    border-radius: 8px;
    margin-bottom: 0.5rem; 
  }

  .person-total::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: #e0e0e0;
    bottom: 0;
  }

  .remaining-total {
    background: linear-gradient(135deg, var(--secondary), #FF8B8B);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
  }

  .remaining-total h3 {
    margin-bottom: 0.5rem;
  }

  .remaining-total p {
    font-size: 1.8rem;
    font-weight: 600;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .animated {
    animation: fadeIn 0.5s ease-out;
  }

  .select-all-check {
    background: var(--primary);
    color: white;
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .select-all-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  .delete-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .delete-btn:hover {
    transform: scale(1.1);
    background: #ff4444;
  }

  .spending-message {
    color: var(--text);
    padding: 0 1rem 1rem 1rem; /* Add padding to align with person-total */
    font-style: italic;
    font-size: 0.9rem;
    margin-top: -0.3rem; /* Pull it closer to the person-total */
    margin-bottom: 1rem; /* Space before next person entry */
  }

  .person-entry {
    position: relative;
    margin-bottom: 1rem;
  }

  .wheel-container {
    margin: 2rem 0;
    text-align: center;
  }

  .wheel-wrapper {
    position: relative;
    height: 300px;
    margin: 0 auto;
  }

  .wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: rotate(0deg);
    position: relative;
  }

  .wheel-pointer {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    z-index: 2;
  }

  .spin-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  .spin-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
  }

  .winner-display {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 2rem;
  }

  .wheel-container h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
  }

  .g-padding-b-30{
    padding-bottom: 30px;
  }