/* Style pour le récepteur SMS temporaire */
.temp-sms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.temp-sms-header {
    text-align: center;
    margin-bottom: 30px;
}

.temp-sms-header h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.temp-sms-header .description {
    color: #7f8c8d;
    font-size: 1.1em;
}

.temp-sms-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Boutons */
.btn-primary, .btn-secondary, .btn-select, .btn-copy {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: block;
    margin: 0 auto 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #3498db;
    color: white;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: #2980b9;
}

.btn-select {
    background: #27ae60;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-select:hover {
    background: #229954;
}

.btn-copy {
    background: #95a5a6;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    margin-left: 10px;
}

.btn-copy:hover {
    background: #7f8c8d;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Grille de numéros */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.numbers-grid h3 {
    grid-column: 1 / -1;
    color: #2c3e50;
    margin-bottom: 10px;
}

.number-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.number-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.number-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.number-source {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Affichage SMS */
.sms-display {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.selected-number-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.selected-number-info h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.number-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.big-number {
    font-size: 2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 8px;
}

/* Messages */
.messages-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.messages-container h3 {
    color: #2c3e50;
    margin-top: 0;
}

.messages-list {
    max-height: 600px;
    overflow-y: auto;
}

.message-card {
    background: white;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.message-card:hover {
    transform: translateX(5px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.message-from {
    color: #2c3e50;
    font-size: 0.95em;
}

.message-time {
    color: #95a5a6;
    font-size: 0.85em;
}

.message-body {
    color: #34495e;
    line-height: 1.6;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    word-wrap: break-word;
}

/* Messages d'état */
.no-messages, .loading-messages, .error-message, .info-message {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 1.1em;
}

.error-message {
    color: #e74c3c;
    background: #fadbd8;
    border-radius: 8px;
}

.info-message {
    color: #3498db;
    background: #d6eaf8;
    border-radius: 8px;
}

/* Warning box */
.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .temp-sms-container {
        padding: 10px;
    }
    
    .temp-sms-content {
        padding: 20px;
    }
    
    .numbers-grid {
        grid-template-columns: 1fr;
    }
    
    .temp-sms-header h2 {
        font-size: 1.5em;
    }
    
    .big-number {
        font-size: 1.5em;
        padding: 10px 15px;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .number-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-copy {
        margin-left: 0;
    }
}

/* Animation pour les nouveaux messages */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-card {
    animation: slideIn 0.3s ease;
}

/* Scrollbar personnalisé */
.messages-list::-webkit-scrollbar {
    width: 8px;
}

.messages-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.messages-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}
