.payment-modal-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.payment-tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 5px;
}

.payment-tab.active {
    border-bottom: 2px solid #4CAF50;
    font-weight: bold;
}

.payment-tab i {
    font-size: 1rem;
}

.payment-form-section {
    display: none;
}

.payment-form-section.active {
    display: block;
}

.pending-payments {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.pending-payment-item {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-details {
    flex: 1;
}

.payment-amount {
    font-weight: bold;
    color: #28a745;
}

.payment-recipient {
    font-size: 0.9rem;
    color: #6c757d;
}

.payment-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.payment-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

#paymentRequestButton {
    position: relative;
}

.payment-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.payment-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.expired-soon {
    color: #f39c12;
}

/* Modal de paiement redesign */
.payment-modal {
    max-width: 600px;
}

.modal-header i {
    margin-right: 8px;
}

.payment-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.payment-steps::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.payment-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
}

.payment-step.active .step-number,
.payment-step.completed .step-number {
    background-color: #4CAF50;
    color: white;
}

.step-text {
    font-size: 0.9rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.payment-step.active .step-text {
    color: #4CAF50;
    font-weight: bold;
}

.payment-step-content {
    display: none;
    padding: 15px 0;
}

.payment-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 4px;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-prepend, 
.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.input-group .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.payment-contact-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.payment-tab {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.payment-tab.active {
    background-color: #ffffff;
    border-bottom: 3px solid #4CAF50;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.payment-tab i {
    margin-right: 5px;
    font-size: 1rem;
}

.payment-summary {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.payment-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #4CAF50;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.summary-label {
    font-weight: bold;
    color: #6c757d;
}

.summary-value {
    color: #212529;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.pending-payments {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

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

.pending-payments-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.pending-count {
    background-color: #4CAF50;
    color: white;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pending-payment-item {
    background: #ffffff;
    border-left: 4px solid #4CAF50;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.pending-payment-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.payment-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: #212529;
}

.payment-recipient {
    font-size: 0.9rem;
    color: #495057;
    margin: 5px 0;
}

.payment-date {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.payment-date i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.expired-soon {
    color: #fd7e14;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Modal SMS redesign */
.sms-modal {
    max-width: 600px;
}

.sms-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.sms-steps::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.sms-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.sms-step .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
}

.sms-step.active .step-number,
.sms-step.completed .step-number {
    background-color: #17a2b8;
    color: white;
}

.sms-step .step-text {
    font-size: 0.9rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.sms-step.active .step-text {
    color: #17a2b8;
    font-weight: bold;
}

.sms-step-content {
    display: none;
    padding: 15px 0;
}

.sms-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.sms-char-count {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.sms-part-count {
    font-weight: bold;
}

.sms-templates {
    margin-top: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
}

.sms-templates h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #17a2b8;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-item {
    background: white;
    border-left: 3px solid #17a2b8;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.template-item:hover {
    background-color: #f0f7fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.template-text {
    font-size: 0.9rem;
}

.sms-summary {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.sms-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #17a2b8;
}

.message-preview {
    margin-top: 15px;
}

.message-preview h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #6c757d;
}

.preview-content {
    background: white;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

.pending-sms {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

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

.pending-sms-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.pending-sms-list {
    max-height: 200px;
    overflow-y: auto;
}

.pending-sms-item {
    background: #ffffff;
    border-left: 4px solid #17a2b8;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.pending-sms-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.sms-recipient {
    font-weight: bold;
    color: #212529;
}

.sms-content {
    font-size: 0.9rem;
    color: #495057;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sms-date {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.sms-date i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Styles pour l'étape "Avec qui" */
.related-person-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.related-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(25% - 12px);
    min-width: 120px;
    height: 100px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-option:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.related-option.selected {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.related-option i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #6c757d;
}

.related-option.selected i {
    color: #1890ff;
}

.related-option span {
    text-align: center;
}

.related-persons-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.person-items-list {
    display: flex;
    flex-direction: column;
}

.person-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.person-item:hover {
    background-color: #f8f9fa;
}

.person-item.selected {
    background-color: #e6f7ff;
}

.person-name {
    font-weight: bold;
}

.person-info {
    font-size: 0.9em;
    color: #6c757d;
}

.selected-person {
    padding: 8px 12px;
    background-color: #e6f7ff;
    border-radius: 4px;
    font-weight: bold;
}
