/* assets/css/style.css - تصميم متميز */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #d4af37;
    --accent-color: #8b4513;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #2c3e50;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* الهيدر المتميز */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), #1a365d);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.1)"><path d="M20,20 C40,0 60,0 80,20 C100,40 100,60 80,80 C60,100 40,100 20,80 C0,60 0,40 20,20 Z"/></svg>');
    background-size: 200px;
    opacity: 0.1;
}

/* الفوتر المتميز */
.site-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.05)"><path d="M20,20 C40,0 60,0 80,20 C100,40 100,60 80,80 C60,100 40,100 20,80 C0,60 0,40 20,20 Z"/></svg>');
    background-size: 150px;
    opacity: 0.1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.designer-credit {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.designer-credit h5 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.designer-phone {
    direction: ltr;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.3rem 0;
}

/* البطاقات والإحصائيات */
.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
}

.stat-card:hover::before {
    animation: shine 1.5s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* الأزرار المتميزة */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a365d);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, #1a365d, var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* النماذج */
.form-container {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* التنقل */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color) !important;
}

/* أنيميشن اللمعان */
@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* تأثيرات خاصة */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .site-footer {
        padding: 2rem 0 1rem;
    }
}

/* شجرة العائلة */
.family-tree {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* تخصيص الشريط الجانبي */
.sidebar .card {
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: none;
    overflow: hidden;
}

.sidebar .card-header {
    background: linear-gradient(135deg, var(--primary-color), #1a365d);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

/* تخصيص الجداول */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background: linear-gradient(135deg, var(--primary-color), #1a365d);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    border-color: var(--border-color);
    vertical-align: middle;
}

/* تنبيهات مخصصة */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* شارة التصميم */
.badge {
    border-radius: 15px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a365d);
}

.badge-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #b8941f);
}

/* تقدم مخصص */
.progress {
    border-radius: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
