/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 1400px; /* حد أقصى مناسب */
  width: 90%; /* يسمح بالمرونة على الشاشات الصغيرة */
  margin: 1rem auto;
  padding: 1rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.custom-container-bg {
    background-color: #1565c0; 
  }

header {
  background: #0d47a1 !important; 
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(13, 71, 161, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-dark .navbar-nav .nav-link {
  color: #bbdefb;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: inset 0 0 0 0 #fff;
}


.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  background-color: #1565c0;
  color: #f5deb3;
  box-shadow: inset 0 0 10px 2px #90caf9;
  outline: none;
}



.navbar-brand {
  font-weight: 900;
  font-size: 1.8rem;
  color: #fff !important;
  letter-spacing: 1px;
  user-select: none;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}


.btn-logout {
  background: #e53935 !important;
  padding: 0.4rem 1rem;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(229, 57, 53, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-left: 1rem;
}

.btn-logout:hover,
.btn-logout:focus {
  background: #b71c1c !important;
  box-shadow: 0 6px 12px rgba(183, 28, 28, 0.8);
  outline: none;
}

h1 {
  margin-bottom: 1.5rem;
  color: #0d47a1;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.section-links ul {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.section-links ul li a {
  text-decoration: none;
  color: #1976d2;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #e3f2fd;
  box-shadow: 0 2px 5px rgba(25, 118, 210, 0.2);
  transition: background-color 0.3s ease, color 0.3s ease;
  display: block;
  text-align: center;
}

.section-links ul li a:hover,
.section-links ul li a:focus {
  background-color: #1565c0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(21, 101, 192, 0.7);
  outline: none;
}

.alert {
  border-radius: 6px;
  font-weight: 600;
  max-width: 400px;
  margin: 1rem auto;
  text-align: center;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}


footer {
      background-color: #0d47a1;
      color: #fff;
      user-select: none;
    }
    footer a {
      color: #ffd54f;
      text-decoration: none;
      transition: color 0.3s ease;
    }
    footer a:hover,
    footer a:focus {
      color: #fff;
      text-decoration: underline;
      outline: none;
    }

/* Responsive */

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-links ul {
    max-width: 100%;
  }
}



