/* Aulo Style Framework
   Theme: Minimalist & Clean
   Primary Color: #a018cb
*/

:root {
    --primary-color: #a018cb;
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --secondary-text: #757575;
    --border-color: #f0f0f0;
    --skeleton-bg: #eeeeee;
    --error-color: #ff3b30;
    --safe-area-bottom: env(safe-area-inset-bottom);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* إزالة الوميض عند النقر في الهاتف */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    direction: rtl; /* دعم اللغة العربية */
}

/* --- الهيدر (Header) الثابت --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
}

.logo-container img {
    height: 35px; /* مقاس لوجو logo.png */
    vertical-align: middle;
}

.not-icon {
    position: relative;
    cursor: pointer;
}

.not-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
}

/* --- النافبار السفلي (Bottom Navbar) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: calc(60px + var(--safe-area-bottom));
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-area-bottom);
    z-index: 1000;
}

.nav-item {
    color: var(--secondary-text);
    font-size: 24px;
    text-decoration: none;
    transition: 0.3s;
}

.nav-item.active {
    color: var(--primary-color);
}

/* --- العناصر العامة (Components) --- */
.container {
    padding: 70px 15px 80px 15px; /* مساحة للهيدر والنافبار */
    max-width: 600px;
    margin: 0 auto;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.3s;
}

.btn-primary:disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
}

input, textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: var(--primary-color);
}

/* --- نظام الـ Skeleton Loading (Shimmer) --- */
.skeleton {
    background: var(--skeleton-bg);
    background-image: linear-gradient(90deg, var(--skeleton-bg) 0px, #f5f5f5 40px, var(--skeleton-bg) 80px);
    background-size: 600px;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -150px; }
    100% { background-position: 450px; }
}

/* --- الإشعارات (Snackbars) --- */
.snackbar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 2000;
    display: none;
}