/* style.css */
:root {
    --primary-admin: #2563eb;
    --primary-user: #059669; 
    --text-color: #ffffff;
    --border-radius: 12px;
}

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

body { 
    background: linear-gradient(135deg, #0f172a, #064e3b, #059669);
    background-attachment: fixed;
    color: var(--text-color); 
}

.hidden { display: none !important; }

/* تأثيرات الزجاج (Glassmorphism) */
.glass-effect, .glass-panel, .glass-header, .glass-nav {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.glass-input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    backdrop-filter: blur(5px);
}
.glass-input::placeholder { color: rgba(255, 255, 255, 0.6) !important; }
.glass-input option { background: #064e3b !important; color: white !important; }

.glass-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(5px) !important;
    color: white !important;
    transition: all 0.3s ease;
}
.glass-btn:hover { background: rgba(255, 255, 255, 0.3) !important; transform: translateY(-2px); }

.glass-text { color: #ffffff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.section-title { border-bottom: 2px solid rgba(255, 255, 255, 0.3); padding-bottom: 5px; margin: 20px 0 10px; font-size: 1.1rem; }

/* شاشة تسجيل الدخول */
#login-screen { height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-container { padding: 40px; border-radius: 20px; text-align: center; width: 90%; max-width: 400px; }
.login-logo { font-size: 4rem; margin-bottom: 20px; }
.login-container h2 { margin-bottom: 10px; }
.login-container p { margin-bottom: 30px; opacity: 0.8; }
.login-input { width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 6px; font-size: 1rem; }

.btn { display: block; width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.w-100 { width: 100%; }

/* الشريط العلوي */
.top-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.user-info { cursor: pointer; display: flex; align-items: center; gap: 8px; }

/* المحتوى والتبويبات */
main { padding: 20px; padding-bottom: 80px; }
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* النماذج (Forms) */
.data-form { padding: 20px; border-radius: var(--border-radius); margin-bottom: 20px;}
.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap;}
.form-row > * { flex: 1; min-width: 120px;}
label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 10px; border-radius: 6px; font-size: 1rem; }

/* البطاقات والتقارير */
.info-card { padding: 20px; border-radius: var(--border-radius); margin-bottom: 15px; line-height: 1.8; }
.reports-list { list-style: none; }
.reports-list li { background: rgba(0,0,0,0.2) !important; padding: 15px; margin-bottom: 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.1); }

/* شريط التبويبات السفلي */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; justify-content: space-around; padding: 10px 0; flex-wrap: wrap; z-index: 1000; }
.nav-item { text-decoration: none; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; font-size: 0.85rem; width: 25%; text-align: center; }
.nav-item i { font-size: 1.2rem; margin-bottom: 4px; transition: 0.3s; }
.nav-item.active { color: #ffffff; }
.nav-item.active i { transform: scale(1.2); color: #10b981;}

/* نافذة الصور Modal */
.modal { display: none; position: fixed; z-index: 2000; padding-top: 100px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; display: block; width: 80%; max-width: 700px; }
.close-modal { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.clickable-image { cursor: pointer; max-width: 50px; max-height: 50px; border-radius: 4px; }

/* التنبيهات المخصصة */
.custom-alert-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.custom-alert { background: rgba(5, 150, 105, 0.8); backdrop-filter: blur(10px); color: white; padding: 15px 25px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); animation: slideIn 0.3s ease-out forwards, fadeOut 0.3s ease-in forwards 2.7s; font-weight: bold; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }


.screen-container { min-height: 100vh; }
textarea.glass-input { resize: vertical; min-height: 70px; }
@media (max-width: 900px) {
  .nav-item { width: 33.333% !important; font-size: 0.72rem; margin-bottom: 8px; }
  .bottom-nav { padding-bottom: 14px; }
}
