/* التنسيقات العامة */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-muted: #7f8c8d;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* التنسيقات الخاصة بالشريط العلوي */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    opacity: 0.8;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: calc(100% - 30px);
}

/* تنسيقات الأزرار */
.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* تنسيقات البطاقات */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* تنسيقات الفوتر */
footer {
    background-color: var(--secondary-color);
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: white;
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* تنسيقات خاصة بصفحة الاستضافة */
.hosting-plan {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hosting-plan:hover {
    border-color: var(--primary-color);
}

.hosting-plan.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.hosting-plan.featured:before {
    content: 'الأكثر طلباً';
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.price .currency {
    font-size: 16px;
    font-weight: normal;
}

.price .period {
    font-size: 14px;
    font-weight: normal;
}

/* تنسيقات منطقة العملاء */
.client-sidebar {
    position: sticky;
    top: 20px;
}

.client-menu {
    list-style: none;
    padding: 0;
}

.client-menu li {
    margin-bottom: 5px;
}

.client-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.client-menu li a:hover,
.client-menu li.active a {
    background-color: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
}

.client-menu li a i {
    width: 20px;
    text-align: center;
    margin-left: 5px;
}

/* تنسيقات لوحة التحكم الإدارية */
.admin-sidebar {
    position: sticky;
    top: 20px;
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    margin-bottom: 5px;
}

.admin-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-menu li a:hover,
.admin-menu li.active a {
    background-color: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
}

.admin-menu li a i {
    width: 20px;
    text-align: center;
    margin-left: 5px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
}

.stat-icon {
    font-size: 24px;
    margin-left: 15px;
}

.stat-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-content p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* تنسيقات متجاوبة */
@media (max-width: 767.98px) {
    .navbar-nav {
        padding-top: 15px;
    }
    
    .nav-link {
        padding: 10px 0;
    }
    
    footer .col-lg-4,
    footer .col-lg-2 {
        margin-bottom: 20px;
    }
}