/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;}
/* Body & Container */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f7fa;
    display: flex;
    min-height: 100vh;}
/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #000000;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;}
.sidebar img {
    width: 120px;
    margin: 0 auto 20px;}
/* === أزرار القائمة الجانبية (الهيدر) === */
.sidebar a {
    display: block;
    background-color: #000000;
    color: white;
    padding: 12px 20px;
    margin: 10px 15px;
    border: none;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;}
.sidebar a:hover {
    background-color: #0056b3;
    transform: scale(1.03);
    cursor: pointer;}
/* Main content */
.main-content {
    margin-left: 120px;
    padding: 10px;
    flex: 1;
    display: block;
    min-height: calc(100vh - 60px); /* تعويض ارتفاع الفوتر */
    box-sizing: border-box;}
/* Header in main content */
.header-bar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);}
.header-bar h2 {
    color: #333;}
/* Footer */
footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 220px;
    width: calc(100% - 220px);
    z-index: 10;}
/* === إضافة تنسيقات شاملة === */


/* Success & Error messages */
.success,
.error {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;}
.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;}
/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);}
table th,
table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;}
table th {
    background-color: #f0f0f0;
    font-weight: bold;}
/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;}
/* Utilities */
.text-center {
    text-align: center;}
.text-right {
    text-align: right;}
.text-left {
    text-align: left;}
.mt-20 {
    margin-top: 20px;}
.mb-20 {
    margin-bottom: 20px;}
/* Login & Register Box */
.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 30px 25px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;}
.login-box h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #222;}
.login-box img.login-logo {
    width: 120px;
    margin-bottom: 20px;}
.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;}
.login-box label {
    text-align: left;
    font-weight: bold;}
.login-box input,
.login-box select {
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;}
.login-box button {
    padding: 10px;
    font-size: 16px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;}
.login-box button:hover {
    background-color: #003d80;}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;}
.team-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    width: 250px;
    text-align: center;}
.team-card .team-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;}
.whatsapp-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background-color: #25D366;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;}
/* Table Styling */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);}
.table-custom th,
.table-custom td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;}
.table-custom th {
    background-color: #f4f4f4;
    font-weight: bold;}
/* Bootstrap Buttons (Override if needed) */
.btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    font-weight: bold;}
.btn-sm {
    padding: 4px 10px;
    font-size: 13px;}
/* From previous instructions */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);}
.btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    font-weight: bold;}
.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s ease;
    cursor: pointer;}
.thumbnail:hover {
    transform: scale(1.05);}
.table-custom .btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-start;}
.table-custom .btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    transition: 0.2s;
    text-align: center;}
.btn-primary {
    background-color: #0056b3;
    color: white;}
.btn-primary:hover {
    background-color: #004494;}
.btn-danger {
    background-color: #d9534f;
    color: white;}
.btn-danger:hover {
    background-color: #c9302c;}
    
    
    
    .dashboard-container {
    margin-left: 120px; /* 220px عرض القائمة الجانبية + هامش */
    padding: 30px;
}



/* === Meta Keywords Page === */
.meta-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: auto;
}

.meta-form h2 {
    margin-bottom: 15px;
    color: #333;
}

.meta-form .form-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-form .form-inline input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.meta-form .form-inline button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.meta-form .form-inline button:hover {
    background-color: #0056b3;
}

.meta-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-form .checkbox-group label {
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.meta-form .checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}








.sidebar .dropdown-btn {
    background-color: #000;
    color: white;
    padding: 12px 20px;
    margin: 10px 15px;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar .dropdown-btn:hover {
    background-color: #0056b3;
}

.sidebar .dropdown-container {
    display: none;
    flex-direction: column;
    padding-left: 20px;
}

.sidebar .dropdown-container a {
    margin: 5px 0;
    background: none;
    padding: 8px 10px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.sidebar .dropdown-container a:hover {
    background-color: #004080;
}

.sidebar a.active,
.sidebar .dropdown-btn.active {
    background-color: #004080;
    color: #fff;
}



