/*
Theme Name: مقاولات أبوظبي
Theme URI: https://muqawalat.ae
Author: MiniMax Agent
Author URI: https://minimax.ai
Description: قالب ووردبريس مخصص لمنصة مقاولات أبوظبي - دليل شركات المقاولات والمقاولين في أبوظبي مع نظام إدارة المشاريع والشركات.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muqawalat
Tags: rtl, custom-background, custom-logo, custom-menu, featured-images, translation-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ====================================
   أنماط المشروع الأصلي
   ==================================== */

:root {
    --primary-color: #0056D2;
    --primary-dark: #003d7a;
    --primary-light: #3385ff;
    --secondary-color: #F97316;
    --secondary-dark: #d97706;
    --accent-orange: #F97316;
    --accent-blue: #0056D2;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #0056D2;
    --light-bg: #f8fafc;
    --border-color: #e5e7eb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* تكبير الشعار وتنسيقه */
.navbar-brand img {
    height: 80px !important;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.footer-logo {
    max-height: 100px !important;
    margin-bottom: 1.5rem;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
}

/* ====================================
   الرؤوس والنصوص
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Cairo', sans-serif;
}

h1 { 
    font-size: 2.25rem; 
    color: var(--accent-blue);
    border-bottom: 3px solid var(--accent-orange);
    padding-bottom: 0.5rem;
    display: inline-block;
}

h2 { 
    font-size: 1.875rem; 
    color: var(--accent-blue);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

h3 { 
    font-size: 1.5rem; 
    color: var(--accent-orange);
    font-weight: 600;
}

h4 { 
    font-size: 1.25rem; 
    color: var(--accent-orange);
    font-weight: 600;
}

h5 { font-size: 1.1rem; color: var(--text-color); }
h6 { font-size: 1rem; color: var(--text-color); }

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.25rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    display: block;
    border: none;
    padding: 0;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
    border-radius: 2px;
}

.section-heading p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* ====================================
   الأزرار
   ==================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0044a8 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0044a8 0%, var(--accent-blue) 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e55b0f 100%);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e55b0f 0%, var(--accent-orange) 100%);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 12px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================================
   النماذج
   ==================================== */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ====================================
   الجداول
   ==================================== */

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
}

.table th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: var(--text-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: rgba(20, 184, 166, 0.05);
}

.table-striped tbody tr:nth-child(odd) {
    background-color: var(--light-bg);
}

/* ====================================
   البطاقات
   ==================================== */

.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.25rem;
}

.card-body {
    padding: 0;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.card-title {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-subtitle {
    color: var(--accent-orange);
    font-weight: 500;
}

/* ====================================
   التنبيهات
   ==================================== */

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-right: 4px solid;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: var(--success-color);
}

.alert-danger {
    background-color: #fee2e2;
    color: #7f1d1d;
    border-color: var(--danger-color);
}

.alert-warning {
    background-color: #fef3c7;
    color: #78350f;
    border-color: var(--warning-color);
}

.alert-info {
    background-color: #dbeafe;
    color: #0c2340;
    border-color: var(--info-color);
}

/* ====================================
   الشريط العلوي
   ==================================== */

.navbar {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    box-shadow: var(--shadow-md);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent-blue);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-menu a {
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.navbar-menu a:hover {
    color: var(--accent-blue);
    background: rgba(0, 86, 210, 0.1);
}

/* ====================================
   الشريط الجانبي
   ==================================== */

.sidebar {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: white;
}

/* ====================================
   الحاويات والتخطيط
   ==================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
    width: calc(100% + 1.5rem);
}

[class*="col-"] {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    width: 100%;
}

.col {
    flex: 1;
    min-width: 250px;
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ====================================
   الترقيم
   ==================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ====================================
   الفيديوهات والصور
   ==================================== */

img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.img-thumbnail {
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

/* ====================================
   الحالات الخاصة
   ==================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-muted {
    color: var(--text-light);
}

.text-primary {
    color: var(--primary-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-success {
    color: var(--success-color);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ====================================
   الوسائط المستجيبة
   ==================================== */

@media (max-width: 768px) {
    .col-4 { flex: 0 0 50%; max-width: 50%; }
    .col-6 { flex: 0 0 100%; max-width: 100%; }
    .col-8 { flex: 0 0 100%; max-width: 100%; }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .col { flex: 0 0 100%; max-width: 100%; }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .btn {
        width: 100%;
    }
}

/* ====================================
   أنماط تسجيل الدخول
   ==================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 86, 210, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(1deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.login-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
}

.login-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.login-logo-text span {
    color: var(--secondary-orange);
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid #e2e8f0;
}

.login-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 8px;
}

.login-card-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 18px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 86, 210, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.input-with-icon .form-input {
    padding-right: 48px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 15px;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-size: 15px;
}

.register-link a {
    color: var(--primary-blue);
    font-weight: 700;
    transition: color 0.3s;
}

.register-link a:hover {
    color: var(--secondary-orange);
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.back-home a:hover {
    color: var(--primary-blue);
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
}

.social-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 86, 210, 0.05);
}

.social-btn.google {
    color: #ea4335;
}

.social-btn.apple {
    color: #000000;
}

/* ====================================
   أنماط لوحة التحكم
   ==================================== */

.dashboard-header {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent-blue);
}

.dashboard-content {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

.stat-icon.blue {
    background: rgba(0, 86, 210, 0.1);
    color: var(--primary-blue);
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--secondary-orange);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ====================================
   أنماط الصفحة الرئيسية
   ==================================== */

.hero-section {
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.95) 0%, rgba(0, 61, 122, 0.95) 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background: var(--secondary-orange);
    color: white;
}

.hero-btn-primary:hover {
    background: #e55b0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.hero-btn-secondary {
    background: white;
    color: var(--primary-blue);
}

.hero-btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ====================================
   أنماط الشركات والمشاريع
   ==================================== */

.company-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.company-logo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8fafc;
}

.company-info {
    padding: 1.5rem;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.company-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--secondary-orange);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.company-details {
    color: var(--text-light);
    font-size: 0.875rem;
}

.company-details p {
    margin-bottom: 0.5rem;
}

.company-details i {
    margin-left: 0.5rem;
    color: var(--primary-blue);
}

.project-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.project-status.completed {
    background: rgba(0, 86, 210, 0.1);
    color: var(--primary-blue);
}

.project-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.project-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.875rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ====================================
   أنماط الفوتر
   ==================================== */

.site-footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ====================================
   تحسينات التوافق مع الهواتف
   ==================================== */

@media (max-width: 992px) {
    .col-3, .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sidebar {
        margin-bottom: 1rem;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sidebar-menu li {
        flex: 1;
        min-width: 120px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .navbar-menu {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        display: block;
        width: 100%;
    }
    
    .login-card {
        padding: 30px 24px;
    }
    
    .login-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .login-logo-text {
        font-size: 24px;
    }
    
    .login-card-title {
        font-size: 22px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
