html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.navbar-logo {
    width: 64px;
    height: auto; 
}

body {
  margin-bottom: 60px;
}

.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

.badge-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
}

/* Participant badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: 0.875em;
    border-radius: 0.25rem;
}

/* Modal styling */
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Button spacing */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Summary Card Styling */
.summary-card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 15px 20px;
    border-bottom: none;
}

    .summary-header h5 {
        margin: 0;
        font-weight: 600;
    }

.summary-body {
    padding: 20px;
}

.summary-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    .summary-item:hover {
        background: #e9ecef;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

.summary-label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .summary-label i {
        font-size: 1.1rem;
        color: #6c757d;
    }

.summary-value {
    font-weight: 700;
    color: #212529;
    font-size: 1.1rem;
}

.summary-total {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 18px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
}

.total-label {
    font-weight: 700;
    color: #495057;
    font-size: 1.2rem;
}

.total-value-balance {
    font-weight: 800;
    color: #28a745;
    font-size: 1.3rem;
}

.total-value-nobalance {
    font-weight: 800;
    color: #dc3545;
    font-size: 1.3rem;
}

/* Percentage badges */
.percentage-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Participant badges */
.participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.participants-balance {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.participant-item {
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .participant-item:hover {
        background: #f1f5f9;
        transform: translateX(3px);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-item {
        margin-bottom: 15px;
    }

    .summary-total {
        padding: 15px;
    }
}

.participant-name {
    margin-right: 5px;
    font-weight: 500;
}

.participant-share {
    margin-right: 5px;
}

.participant-percentage {
    font-size: 0.8em;
    color: #6c757d;
}