/* أنماط عامة */
.domain-checker-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    direction: rtl;
}

.domain-search-box {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
}

.domain-input {
    flex: 1;
    max-width: 400px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    direction: ltr;
    text-align: left;
}

.domain-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.domain-check-btn {
    padding: 15px 30px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.domain-check-btn:hover {
    background: #005a87;
}

.domain-result {
    min-height: 100px;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.domain-available {
    background: #d4edda;
    color: #155724;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #c3e6cb;
}

.domain-taken {
    background: #f8d7da;
    color: #721c24;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #f5c6cb;
}

.register-domain-btn {
    padding: 12px 25px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.register-domain-btn:hover {
    background: #218838;
}

/* أنماط النافذة المنبثقة */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    direction: rtl;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

/* أنماط النماذج */
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.price-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.price-row.total {
    font-weight: bold;
    font-size: 18px;
    border-bottom: none;
    padding-top: 15px;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.loading:after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* أنماط لوحة المستخدم */
.dms-dashboard-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #dee2e6;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.domains-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.domains-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: right;
}

.domains-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge.status-active {
    background: #27ae60;
    color: white;
}

.badge.status-pending {
    background: #f39c12;
    color: white;
}

.badge.status-expired {
    background: #e74c3c;
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

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

/* أنماط التحميل */
#payment-processing {
    text-align: center;
    padding: 30px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .domain-search-box {
        flex-direction: column;
    }
    
    .domain-input {
        max-width: 100%;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .domains-table {
        display: block;
        overflow-x: auto;
    }
}
