@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --green: #0c6b3a;
    --green-dark: #075028;
    --bg: #f7f4ec;
    --text: #1f2933;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
    padding: 24px 24px 28px;
    max-width: 460px;
    width: 100%;
}

/* لوجو */
.logo-box {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.logo-box img {
    max-width: 240px;
    height: auto;
}

/* عناوين عامة */
.card-title {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    color: var(--green-dark);
}

.card-subtitle {
    margin: 0 0 24px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* فورم */
.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="url"],
textarea,
select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(12, 107, 58, 0.18);
}

/* أزرار */
button,
.btn {
    border: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--green);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--green-dark);
}

.btn-ghost {
    background-color: transparent;
    color: #9ca3af;
    border: 1px dashed #d1d5db;
    cursor: not-allowed;
}

.actions-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

/* لوحة التحكم */
.admin-layout {
    max-width: 1000px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.admin-header h1 {
    font-size: 20px;
    margin: 0;
    color: var(--green-dark);
}

.admin-header small {
    color: #6b7280;
}

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background-color: #e5f5ea;
    color: var(--green-dark);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
}

.table th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.text-muted {
    color: #9ca3af;
    font-size: 12px;
}

.text-danger {
    color: #dc2626;
}

/* البايو */
.bio-page {
    background-color: var(--bg);
}

.bio-card {
    text-align: center;
    padding-top: 18px;
}

.bio-logo {
    max-width: 220px;
    margin-bottom: 14px;
}

.bio-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    margin-bottom: 10px;
}

.bio-name {
    font-size: 22px;
    font-weight: 700;
    margin: 4px 0;
    color: var(--green-dark);
}

.bio-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* أزرار البايو */
.bio-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.bio-link-btn {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 999px;
    background-color: #ffffff;
    border: 1px solid #d1fae5;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 30px rgba(12, 107, 58, 0.08);
}

.bio-link-btn:hover {
    background-color: #ecfdf5;
}

/* رابط اصداء */
.bio-footer-link {
    margin-top: 2cm;
    font-size: 13px;
    color: #6b7280;
}

.bio-footer-link a {
    color: var(--green-dark);
    font-weight: 600;
}

/* تنبيهات */
.alert {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 12px;
}

.alert-warning {
    background-color: #fef9c3;
    border: 1px solid #facc15;
    color: #854d0e;
}
/* حجم الشعار في الصفحة الرئيسية */
.hero-logo-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    max-width: 260px;   /* صغّر/كبّر الرقم حسب ما يعجبك */
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-logo-img {
        max-width: 200px;   /* حجم أصغر في الجوال */
    }
}
.bio-logo-wrapper,
.bio-avatar-wrapper {
    text-align: center;
}

.bio-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto 14px auto;
}

.bio-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    display: inline-block;
    margin: 0 auto 18px auto;
}

