:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --background-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --card-background: #ffffff;
    --danger-color: #ef4444;
    --success-color: #22c55e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

h1 i, h2 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.card {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--background-color);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add {
  background-color: #e1e2f1;
  color: var(--primary-light);
}

.btn-add:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-calculate {
    background-color: #defef3;
    color: var(--secondary-color);
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}

.btn-calculate:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.participants-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.participant-item {
    background-color: var(--background-color);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.participant-item:hover {
    transform: translateX(5px);
}

.participant-item label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

input[type="checkbox"] {
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--primary-light);
    border-radius: 0.35rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
}

.remove-participant {
  background-color: #ffe4e4;
  color: var(--danger-color);
  padding: 0.5rem 1rem;
  opacity: 1;
}

.remove-participant:hover {
    opacity: .8;
}

.results-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.results-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.result-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--background-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateX(5px);
}

.result-item span {
    font-weight: 500;
}

.result-item span:first-child {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-wrapper {
        width: 100%;
    }
    
    .result-item {
        text-align: center;
    }
}
  
  
.text-muted {
    font-size: 0.8rem;
    color: #64748b;
}

.fs-14 {
    font-size: 0.8rem;
}

.text-center {
    text-align: center;
}
