/* style.css - التصميم الأساسي للنظام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7f6;
    color: #2c3e50;
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* البطاقات */
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1e3c72;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 10px;
    display: inline-block;
}

h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

/* النماذج */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1rem;
    background: #fafbfc;
    transition: border 0.3s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
}

.inline-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-group .form-group {
    flex: 1;
    min-width: 150px;
}

.btn {
    background: #1e3c72;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    text-decoration: none;
    margin: 5px;
}

.btn:hover {
    background: #d4af37;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* الجداول */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

table th, table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid #ecf0f1;
}

table th {
    background: #1e3c72;
    color: #fff;
    font-weight: 600;
}

table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-sold {
    background: #f8d7da;
    color: #721c24;
}

.property-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
}

/* رسائل التنبيه */
.message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: bold;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-box {
    max-width: 400px;
    margin: 100px auto;
}

/* قسم المطابقة */
.match-section {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.match-section.active {
    display: block;
}

.match-high {
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.match-medium {
    background: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.match-low {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.score-badge {
    font-size: 0.9rem;
    margin-right: 8px;
}

.client-name {
    font-weight: bold;
    color: #1e3c72;
}