
/* ────────────── DASHBOARD ────────────── */
.sms-dashboard {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    direction: rtl;
    font-family: "Tahoma", sans-serif;
}

.sms-balance {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.sms-user-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.sms-user-actions a {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.sms-logout {
    background: #dc3545;
    color: white;
}

.sms-charge {
    background: #28a745;
    color: white;
}

/* ────────────── FORMS ────────────── */
.sms-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.sms-form label {
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
    color: #343a40;
}

.sms-form textarea,
.sms-form input[type="file"],
.sms-form input[type="text"],
.sms-form input[type="tel"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
}

/* ────────────── PHONEBOOK ────────────── */
.sms-phonebook {
    margin-top: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sms-phonebook th {
    background: #007bff;
    color: white;
    padding: 1.5rem;
}

.sms-phonebook td {
    padding: 1.2rem;
}

/* ────────────── NOTICES ────────────── */
.sms-notice {
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
    font-size: 1.1rem;
}

.sms-notice.success {
    background: #d4edda;
    color: #155724;
    border-left: 6px solid #28a745;
}

.sms-notice.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 6px solid #dc3545;
}

.sms-notice.info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 6px solid #90caf9;
}

/* ────────────── HISTORY TABLE ────────────── */
.sms-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.sms-history th,
.sms-history td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.sms-history th {
    background: #f5f5f5;
}

.status-pending { color: #f57c00; font-weight: bold; }
.status-sent    { color: #2e7d32; font-weight: bold; }
.status-failed  { color: #d32f2f; font-weight: bold; }

/* ────────────── AUTH / LOGIN & REGISTER ────────────── */
.sms-auth-container {
    max-width: 480px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.sms-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.sms-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.sms-tab.active {
    border-bottom: 3px solid #0073aa;
    color: #0073aa;
}

.sms-tab-content {
    display: none;
}

.sms-tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ────────────── RESPONSIVE ────────────── */
@media (max-width: 768px) {
    .sms-user-actions { flex-direction: column; gap: 1rem; }
    .sms-form { padding: 1.5rem; }
    .sms-dashboard { padding: 2rem; margin: 2rem auto; }
}
/* اضافه به انتهای فایل */
button, .button {
    transition: background 0.3s ease, transform 0.1s ease;
}

button:active {
    transform: scale(0.98);
}

/* در responsive */
@media (max-width: 480px) {
    .sms-auth-container {
        padding: 1.5rem;
        margin: 3rem auto;
    }
    .sms-form input, .sms-form textarea {
        font-size: 1rem;
    }
}