body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0A0F1E;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  padding: 0;
  min-height: calc(100vh - 140px);
}

/* Dashboard layout */
.dashboard-container {
  display: flex;
  width: 100%;
  height: 100%; /* يمتلئ ارتفاع الـmain بالكامل */
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #0d1322;
  padding: 20px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* هذا يجعلها تغطي ارتفاع الـmain بالكامل */
}

.sidebar h2 {
  color: #00E5FF;
  text-align: center;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar ul li:hover,
.sidebar ul li.active {
  background: rgba(0,229,255,0.2);
  color: #00E5FF;
}

/* Main content area */
.dashboard-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  background-color: #0A0F1E;
  width: 100%;
}

/* Tab content */
.tab-content {
  width: 100%;
  display: none;
}

.tab-content.active {
  display: block;
}

/* Card styles */
.card {
  width: 100%;
  max-width: 800px;
  background: linear-gradient(160deg, #0A0F1E, #0d1322);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  color: white;
  padding: 40px 30px;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Card Titles */
.card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00E5FF;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Form inside card */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #1F2A44;
  border-radius: 6px;
  background-color: #162032;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.submit-btn {
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #45a049, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }

  .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .sidebar ul li {
    margin-bottom: 0;
    flex: 1;
    text-align: center;
  }

  .dashboard-content {
    padding: 20px;
  }
}
