/* استيراد الخط */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* إعداد عام */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ألوان الموقع */
:root {
    --main-color: #16a34a;
    --main-dark: #15803d;
    --bg-color: #f3f4f6;
    --text-color: #1f2937;
    --card-bg: #ffffff;
}

/* الجسم */
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    padding: 16px;
}

/* الحاوية */
.container {
    max-width: 900px;
    margin: auto;
}

/* كرت */
.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 14px;
}

/* عناوين */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

/* نصوص */
p {
    font-size: 15px;
    color: #4b5563;
}

/* أزرار */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    background: var(--main-color);
    color: #fff;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--main-dark);
}

/* زر ثانوي */
.btn-secondary {
    background: #1f2937;
}

/* روابط */
a {
    color: inherit;
}

/* حقول الإدخال */
input, select {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    margin-bottom: 10px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: 0.2s;
}

input:focus, select:focus {
    border-color: var(--main-color);
}

/* جدول */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
    font-size: 14px;
}

th {
    color: #6b7280;
}

/* حالات */
.success {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 10px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 10px;
}

/* تحسين النقر للجوال */
button, .btn, input {
    -webkit-tap-highlight-color: transparent;
}

/* استجابة للجوال */
@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    h1 {
        font-size: 20px;
    }

    .btn {
        font-size: 14px;
        padding: 12px;
    }
}
/* =========================
   لوحة خصائص العناصر
========================= */

.vezo-elements-controls{
    position:fixed;
    left:12px;
    right:12px;
    bottom:82px;
    z-index:99999;

    background:rgba(255,255,255,.96);
    backdrop-filter:blur(16px);

    border:1px solid rgba(45,212,191,.15);

    border-radius:22px;

    padding:12px;

    box-shadow:
    0 10px 35px rgba(15,23,42,.12);

    max-height:170px;

    overflow:auto;

    animation:vezoControlsUp .22s ease;
}

@keyframes vezoControlsUp{
    from{
        opacity:0;
        transform:translateY(18px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.vezo-elements-title{
    display:none;
}

.vezo-control-field{
    margin-bottom:8px;
}

.vezo-control-field label{
    display:block;
    font-size:11px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:4px;
}

.vezo-control-field input[type="range"]{
    width:100%;
    height:18px;
    accent-color:#0f766e;
}

.vezo-control-field input[type="color"]{
    width:100%;
    height:34px;
    border:none;
    border-radius:12px;
    overflow:hidden;
    background:none;
    padding:0;
}

.vezo-delete-element{
    width:100%;
    border:none;
    background:#fee2e2;
    color:#b91c1c;
    padding:10px;
    border-radius:14px;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}

/* =========================
   مكتبة العناصر
========================= */

.vezo-elements-library{
    background:#fff;
    border-radius:28px 28px 0 0;
    padding:18px;
    margin-top:18px;
    box-shadow:
    0 -10px 40px rgba(15,23,42,.08);
}

.vezo-elements-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.vezo-element-card{
    border:1px solid rgba(45,212,191,.18);
    background:#fff;
    border-radius:20px;
    min-height:76px;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.18s;

    cursor:pointer;
}

.vezo-element-card:active{
    transform:scale(.96);
}

.vezo-element-card svg{
    width:32px;
    height:32px;
    stroke:#0f172a;
}

/* =========================
   زر العناصر العائم
========================= */

.vezo-open-elements{
    position:fixed;
    left:14px;
    bottom:118px;

    width:88px;
    height:52px;

    border:none;
    border-radius:999px;

    background:
    linear-gradient(135deg,#0f172a,#0b4f75);

    color:#fff;

    font-size:18px;
    font-weight:800;

    box-shadow:
    0 10px 30px rgba(15,23,42,.25);

    z-index:9999;
}

/* =========================
   توافق الجوال
========================= */

@media(max-width:768px){

    .vezo-elements-grid{
        grid-template-columns:repeat(4,1fr);
        gap:10px;
    }

    .vezo-element-card{
        min-height:68px;
        border-radius:18px;
    }

    .vezo-element-card svg{
        width:28px;
        height:28px;
    }

    .vezo-elements-controls{
        bottom:78px;
    }

}