#smsBadge {
         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;

}


/* S'assurer que le bouton est en position relative pour que le badge soit correctement positionné */
#smsButton {
    position: relative;
}

/* S'assurer que tous les boutons avec des badges sont en position relative */
.action-button {
    position: relative;
}

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

.sms-pending h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.pending-sms-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.pending-sms-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
}

.pending-sms-item:last-child {
    border-bottom: none;
}

.pending-sms-item:hover {
    background-color: #f0f0f0;
}

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

.pending-sms-info {
    display: flex;
    flex-direction: column;
}

.pending-sms-number {
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.pending-sms-user {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.pending-sms-meta {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pending-sms-date {
    font-size: 11px;
    color: #777;
}

.pending-sms-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-pending.pending-sms-status-indicator {
    background-color: #3498db;
}

.status-success.pending-sms-status-indicator {
    background-color: #2ecc71;
}

.status-error.pending-sms-status-indicator {
    background-color: #e74c3c;
}

.pending-sms-content {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 8px;
    word-break: break-word;
}

.pending-sms-status {
    display: flex;
    justify-content: flex-end;
}

.status-pending {
    color: #3498db;
    font-size: 12px;
    font-weight: bold;
}

.status-success {
    color: #2ecc71;
    font-size: 12px;
    font-weight: bold;
}

.status-error {
    color: #e74c3c;
    font-size: 12px;
    font-weight: bold;
}

.no-pending-sms {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Styles pour la page principale de SMS */
.columns-container {
    display: flex;
    gap: 20px;
}

.column-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#sms-column {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#sms-column .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 15px;
}

#sms-column .card-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    background-color: #6c757d;
    color: white;
    margin-left: 5px;
}


/* Style pour la liste des SMS */
.sms-list {
    display: flex;
    flex-direction: column;
}

.sms-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    overflow: hidden;
    border-left: 4px solid #ccc;
}

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

.sms-item.status-success {
    border-left-color: #2ecc71;
}

.sms-item.status-pending {
    border-left-color: #3498db;
}

.sms-item.status-error {
    border-left-color: #e74c3c;
}

.sms-header {
    padding: 12px 15px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.sms-contact {
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sms-mobile {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sms-mobile i {
    color: #6c757d;
    font-size: 12px;
}

.sms-user {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sms-user i {
    color: #6c757d;
    font-size: 11px;
}

.sms-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.sms-date {
    color: #777;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sms-date i {
    color: #6c757d;
    font-size: 11px;
}

.sms-status {
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.status-success .sms-status {
    color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.status-pending .sms-status {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.status-error .sms-status {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.sms-content {
    padding: 15px;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    background-color: #fdfdfd;
}

.sms-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 15px;
    background-color: #f8f9fa;
}

.sms-actions button {
    border-radius: 4px;
    font-size: 12px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: all 0.2s;
}

.sms-actions button i {
    font-size: 11px;
}

.sms-actions button:hover {
    transform: translateY(-1px);
}

/* Loader redesign */
#sms-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 30px 0;
}

#sms-loading i {
    font-size: 30px;
    color: #3498db;
    margin-bottom: 15px;
}

#sms-loading p {
    color: #6c757d;
    font-size: 14px;
}

/* Messages d'erreur et pas de contenu */
.no-sms, .error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #6c757d;
    text-align: center;
}

.no-sms i, .error-message i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.no-sms p, .error-message p {
    font-size: 14px;
    font-weight: 500;
}

/* Modal de SMS */
.country-indicator {
    display: none;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
    animation: fadeIn 0.3s ease;
    border-left: 3px solid #3498db;
}

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

.char-count {
    margin-top: 5px;
    text-align: right;
    color: #6c757d;
    font-size: 0.85rem;
}

.input-group {
    display: flex;
}

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

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem 0 0 0.25rem;
    border-right: 0;
}

.input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Ajout d'un bouton de rafraîchissement */
.refresh-btn {
    color: #6c757d;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background-color: rgba(108, 117, 125, 0.1);
    color: #495057;
}

.btn-icon i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sms-header {
        flex-direction: column;
    }
    
    .sms-meta {
        align-items: flex-start;
        margin-top: 10px;
    }
    
    .sms-actions {
        flex-wrap: wrap;
    }
}

/* Nouveau style pour les SMS en ligne */
.sms-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    gap: 10px;
}

.sms-content-inline {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333;
    padding: 0 10px;
}

.sms-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.sms-contact {
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sms-user-inline {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 3px;
}

.sms-user-inline i {
    font-size: 10px;
    color: #888;
}

.sms-actions {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.sms-actions button {
    padding: 3px 8px;
    font-size: 11px;
}

/* Supprimer l'ancien style de disposition des SMS */
.sms-header {
    display: none;
}

.sms-content {
    display: none;
}

/* Ajustements responsifs */
@media (max-width: 768px) {
    .sms-row {
        flex-wrap: wrap;
    }
    
    .sms-content-inline {
        width: 100%;
        flex: none;
        order: 2;
    }
    
    .sms-meta {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }
    
    .sms-actions {
        order: 4;
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
    
    .sms-contact {
        min-width: auto;
        width: 100%;
        order: 1;
    }
}

/* Ajustement du champ de numéro de téléphone */
#phoneNumber {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Style pour les templates de SMS */
.template-item {
    cursor: pointer;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid #3498db;
}

.template-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

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

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