/**
 * SMS System Styles
 * استایل‌های سیستم پیامکی
 */

/* استایل‌های صفحه تنظیمات پیامکی */
.sms-settings-container {
    max-width: 1200px;
}

.sms-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.sms-section h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sms-messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sms-message-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.sms-message-item h4 {
    margin-top: 0;
    color: #0073aa;
}

.sms-message-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.sms-message-item textarea {
    width: 100%;
    margin-bottom: 10px;
}

.sms-test-section {
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.sms-test-section h3 {
    margin-top: 0;
    color: #0073aa;
}

.sms-test-section p {
    margin-bottom: 10px;
}

.sms-test-section input {
    margin-left: 10px;
}

#test-sms-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#test-sms-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#test-sms-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* استایل‌های شورت‌کدها */
.antique-sms-manual-send,
.antique-sms-stats,
.antique-sms-history,
.antique-sms-test,
.antique-sms-status {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.antique-sms-manual-send h3,
.antique-sms-stats h3,
.antique-sms-history h3,
.antique-sms-test h3,
.antique-sms-status h3 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.stat-label {
    font-weight: bold;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
}

.stat-value.success {
    color: #46b450;
}

.stat-value.error {
    color: #dc3232;
}

.history-table {
    margin-top: 15px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
}

.status-items {
    margin-top: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
}

.status-label {
    font-weight: bold;
}

.status-value {
    font-weight: bold;
}

.status-value.enabled {
    color: #46b450;
}

.status-value.disabled {
    color: #dc3232;
}

.status-value.configured {
    color: #46b450;
}

.status-value.not-configured {
    color: #dc3232;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .sms-messages-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sms-test-section input {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        width: 100%;
    }
}

/* استایل‌های دکمه‌ها */
.antique-sms-manual-send .button,
.antique-sms-test .button {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.antique-sms-manual-send .button:hover,
.antique-sms-test .button:hover {
    background: #005a87;
    border-color: #005a87;
}

/* استایل‌های فرم‌ها */
.antique-sms-manual-send input,
.antique-sms-manual-send textarea,
.antique-sms-test input,
.antique-sms-test textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.antique-sms-manual-send input:focus,
.antique-sms-manual-send textarea:focus,
.antique-sms-test input:focus,
.antique-sms-test textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* استایل‌های جدول */
.antique-sms-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.antique-sms-history th,
.antique-sms-history td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.antique-sms-history th {
    background: #f9f9f9;
    font-weight: bold;
    color: #23282d;
}

.antique-sms-history tr:hover {
    background: #f9f9f9;
}

/* استایل‌های پیام‌ها */
.notice {
    padding: 12px;
    margin: 15px 0;
    border-radius: 3px;
    border-left: 4px solid;
}

.notice-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #46b450;
}

.notice-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3232;
}

.notice-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}
