/* SMS Center Frontend Styles */
.sms-center-wrapper {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    max-width: 480px;
    margin: 20px auto;
}

.sms-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.sms-header {
    text-align: center;
    margin-bottom: 24px;
}

.sms-title {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.sms-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin: 0 4px;
    background: #f3f4f6;
    color: #374151;
}

.sms-badge-type {
    background: #ede9fe;
    color: #5b21b6;
}

.sms-form-group {
    margin-bottom: 16px;
}

.sms-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #374151;
}

.sms-input-group {
    display: flex;
    gap: 8px;
}

.sms-phone-input,
.sms-code-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    direction: ltr;
    text-align: center;
}

.sms-phone-input:focus,
.sms-code-input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.sms-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
    white-space: nowrap;
}

.sms-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sms-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.sms-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
}

.sms-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.sms-btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.sms-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    font-size: 16px;
    margin-top: 16px;
}

.sms-btn-download:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sms-help-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

.sms-info-text {
    background: #eff6ff;
    padding: 10px;
    border-radius: 8px;
    border-right: 3px solid #3b82f6;
    font-size: 14px;
    color: #1e40af;
}

.sms-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
}

.sms-link-btn {
    background: none;
    border: 1px solid #d1d5db;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    transition: all 0.2s;
}

.sms-link-btn:hover {
    border-color: #6366f1;
    color: #4f46e5;
    background: #f5f3ff;
}

.sms-timer {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 12px;
    font-weight: bold;
}

.sms-countdown {
    color: #ef4444;
}

.sms-success-box {
    text-align: center;
    padding: 24px 0;
}

.sms-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    animation: scaleIn 0.3s ease;
}

.sms-success-message {
    font-size: 16px;
    color: #065f46;
    margin-bottom: 8px;
}

.sms-message {
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    display: none;
}

.sms-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sms-message-success {
    background: #f0fdf4;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.sms-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .sms-card {
        padding: 16px;
    }
    
    .sms-input-group {
        flex-direction: column;
    }
    
    .sms-btn {
        width: 100%;
    }
}