/* خطوط Google Fonts لمظهر أندرويد */
@import url('https://fonts.googleapis.com/css?family=Cairo:wght@400;700&display=swap');

body {
  font-family: 'Cairo', Arial, sans-serif;
  background: #f5f6fa;
  margin: 0;
  direction: rtl;
  color: #222;
}

.top-navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(33,150,243,0.08);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  color: #2196f3;
  font-weight: bold;
  letter-spacing: 1px;
}

.topbar-actions .btn,
.topbar-actions button {
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 20px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(33,150,243,0.10);
  transition: background 0.2s, box-shadow 0.2s;
  font-weight: bold;
}
.topbar-actions .btn:active,
.topbar-actions button:active {
  background: #1976d2;
  box-shadow: 0 1px 2px rgba(33,150,243,0.18);
}

.icon-menu {
  background: #fff;
  border-bottom: 1px solid #e3e6ea;
  padding: 16px 0;
  box-shadow: 0 1px 4px rgba(33,150,243,0.04);
}
.icons {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 16px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  box-shadow: 0 1px 3px rgba(33,150,243,0.07);
  background: #fff;
  position: relative;
  user-select: none;
}
.icon:hover, .icon:focus-visible {
  background: #e3f2fd;
  box-shadow: 0 4px 16px rgba(33,150,243,0.18), 0 1.5px 6px rgba(33,150,243,0.10);
  transform: translateY(-4px) scale(1.04);
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.icon span {
  font-size: 2em;
  margin-bottom: 4px;
}
.icon p {
  margin: 0;
  font-weight: bold;
  color: #1976d2;
}
.icon small {
  color: #888;
  font-size: 0.95em;
}

.section-content {
  display: none;
  margin-top: 24px;
  animation: fadeIn 0.4s;
}
.section-content:not(.hidden) {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
.hidden {
  display: none !important;
}
.modal {
  display: none;
  background: rgba(0,0,0,0.5);
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  align-items: center; justify-content: center;
  z-index: 1000;
}
.modal[style*="display: block"] {
  display: flex !important;
}
.modal-content-wide {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: popIn .3s;
  position: relative;
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-btn { font-size: 2em; cursor: pointer; position: absolute; top: 16px; left: 24px; }
/* رسالة التنبيه */
#alert-message {
  min-width: 200px;
  text-align: center;
}
/* تحسين التجاوب */
@media (max-width: 600px) {
  .modal-content-wide, .container { padding: 12px !important; }
  .top-navbar, .footer { font-size: 0.95em; }
  .icon-menu .icons { flex-direction: column; gap: 12px; }
  .form-group input, .form-group select { width: 100% !important; }
}
.close-btn {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #2196f3;
  background: #e3f2fd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  transition: background 0.2s;
}
.close-btn:hover {
  background: #bbdefb;
}

.form-group {
  margin-bottom: 18px;
}
input, select, .btn {
  font-family: inherit;
  font-size: 1em;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cfd8dc;
  margin-top: 4px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #f7fbff;
}
input:focus, select:focus {
  border: 1.5px solid #2196f3;
  box-shadow: 0 2px 8px rgba(33,150,243,0.10);
}
.btn {
  background: #2196f3;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 24px;
  padding: 10px 24px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(33,150,243,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn:active {
  background: #1976d2;
  box-shadow: 0 1px 2px rgba(33,150,243,0.18);
}
.full-width-btn {
  width: 100%;
}
.footer {
  background: #fff;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 16px 0;
  margin-top: 40px;
  color: #888;
  font-size: 1em;
}
.language-options button {
  margin: 0 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #2196f3;
  background: #fff;
  color: #2196f3;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.language-options button:hover {
  background: #2196f3;
  color: #fff;
}
.notification-dropdown {
  position: relative;
}
.notification-badge {
  background: #e53935;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  margin-right: 4px;
}
.dropdown-content {
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  min-width: 220px;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.13);
  z-index: 1001;
  display: none;
  animation: fadeIn 0.2s;
}
.notification-items {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
}
.full-width-btn {
  width: 100%;
}