:root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --nav-bg: #f8f9fa;
    --border-color: #dee2e6;
    --primary-color: #0d6efd;
    --hover-color: #0b5ed7;
    --footer-text: #495057;
}

html[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f8f9fa;
    --nav-bg: #1f1f1f;
    --border-color: #333333;
    --primary-color: #3d8bfd;
    --hover-color: #6ea8fe;
    --footer-text: #ced4da;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

body.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-wrapper {
    flex: 1;
    width: 100%;
    padding-top: 90px;
}

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

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

.tool-container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 5%;
    width: 100%;
}

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

.tool-header h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.tool-header p {
    color: var(--footer-text);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Fix Cumulative Layout Shift (CLS) for Lucide Icons */
i[data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    /* الحجم الافتراضي للأيقونة */
    height: 20px;
    vertical-align: middle;
}

/* إصلاح حجم أيقونات الأزرار تحديداً */
.btn i[data-lucide] {
    width: 18px;
    height: 18px;
}

.trust-item i[data-lucide] {
    width: 18px;
    height: 18px;
}