:root {
  --primary-color: #4154f1;
  --primary-hover: #2939b5;
  --bg-color: #f6f9ff;
  --text-color: #1e1e1e;
  --sidebar-bg: #fff;
  --sidebar-border: #ddd;
  --header-bg: #fff;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  /*display: flex;*/
  min-height: 100vh;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: var(--box-shadow);
  z-index: 999;
}

#header .logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.toggle-sidebar-btn {
  font-size: 20px;
  margin-left: 10px;
  color: var(--primary-color);
  cursor: pointer;
}

/* Sidebar */
#sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 80px 20px 20px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 998;
}

#sidebar.sidebar-show {
  transform: translateX(0);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav .nav-title {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.sidebar-nav li {
  margin-bottom: 10px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.sidebar-nav a i {
  width: 18px;
  text-align: center;
}

/* Main content */
#main {
  margin-left: 260px;
  padding: 80px 30px 30px;
  flex: 1;
  width: 100%;
}

.page-title {
  margin-bottom: 20px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 600;
}

.page-title .breadcrumb {
  font-size: 14px;
  color: #777;
  margin-top: 5px;
}

.content {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
}

.user-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-dropdown img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
    position: fixed;
  }

  #main {
    margin-left: 0;
    padding: 80px 20px;
  }

  #sidebar.sidebar-show {
    transform: translateX(0);
  }

  .toggle-sidebar-btn {
    display: inline-block;
  }
}





/* جدول البيانات */
#my_table {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

#my_table th, #my_table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
  transition: background-color 0.3s ease;
}

#my_table th {
  background-color: #4154f1;
  color: #fff;
  font-weight: 600;
  user-select: none;
}

#my_table tbody tr:hover {
  background-color: #f0f4ff;
  cursor: pointer;
}

/* خلايا الجدول القابلة للتعديل */
#my_table td.editable {
  cursor: pointer;
  color: #333;
}

/* شكل الـ input داخل الخلية */
#my_table td.editable input.edit-field {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  padding: 6px 8px;
  border: 1.5px solid #4154f1;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

#my_table td.editable input.edit-field:focus {
  border-color: #1e2ad7;
  background-color: #f0f4ff;
}

/* زر الحفظ */
button.save-btn {
  background-color: #4154f1;
  border: none;
  color: white;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.save-btn:hover {
  background-color: #1e2ad7;
}




