@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: linear-gradient(135deg, #031b4e, #041436);
}

body:not(.login-page) {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  background: rgb(3, 27, 78);
  color: white;
  flex-shrink: 0;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}

.sidebar a:hover {
  background: #052e86;
}

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

.main-content {
  flex-grow: 1;
  width: 100%;
  padding: 40px;
  background: #f7f9fc;
  overflow-y: auto;
}

.card {
  background: rgb(3, 27, 78);
  color: #fff !important;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  background: #031b4e !important;
}

.card h3,
.card p,
.card span,
.card small {
  color: #fff !important;
  padding: 0px 0px 19px 0px;
}

.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

table {
  background: rgb(3, 27, 78);
  color: #fff;
  border-collapse: collapse;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 11px;
  text-align: left;
  border-bottom: 1px solid #333;
  color: #fff !important;
  font-size: 13px;
  text-align: center;
}

th {
  background: rgb(3, 27, 78);
  color: #ececec !important;
  text-align: center;
  font-size: 13px;
}

tr:hover {
  background-color: #222;
}

.container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  padding: 40px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: rgb(3, 27, 78);
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  color: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.modal-content input,
.modal-content select,
.modal-content button {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #555;
  border-radius: 6px;
  background: rgb(3, 27, 78);
  color: white;
}

.close {
  float: right;
  font-size: 24px;
  color: #f44336;
  cursor: pointer;
}

.btn-edit {
  padding: 8px 9px;
  background-color: #27a290;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  width: 155px;
  text-align: center;
}
.btn-small {
  padding: 7px 9px;
  background-color: #27a290;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  width: 62px;
  text-align: center;
}

.btn-delete {
  background-color: #f44336 !important;
}

.password-toggle input {
  width: 100px;
  background: white;
  color: black;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 10px;
}

input#pass {
  border-radius: 10px;
}

.nav-bar {
  width: 100%;
}

.error {
  color: red;
  margin-top: 10px;
  text-align: center;
}

form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

form button {
  width: 100%;
  padding: 12px;
  background: #6a00f4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 30px 20px;
  }

  .dashboard-cards {
    flex-direction: column;
  }
}


.dropdown-content {
  display: none;
  flex-direction: column;
  background-color: #2a2f3a;
  padding-left: 15px;
  margin-top: 5px;
  border-left: 2px solid #4caf50;
}

.dropdown-content a {
  color: #ccc;
  padding: 6px 0;
  text-decoration: none;
}

.dropdown-content a:hover {
  color: white;
}

.main-content h2 {
  margin:
0px 10px 24px 0px;
}
