/* Base Layout & Theme Reset */
body { 
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  margin: 0; 
  background-color: #fafafa; 
  color: #333; 
}

/* Flexbox Layout Context Boxes */
.center-viewport {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  height: 100vh;
}

.dashboard-container {
  display: flex; 
  gap: 40px; 
  margin: 20px 40px;
}

/* Cards & Panel Layout Blocks */
.card { 
  background: white; 
  padding: 30px; 
  border-radius: 8px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
  width: 320px; 
}

.form-section { 
  background: white; 
  padding: 20px; 
  border-radius: 6px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
  width: 300px; 
  height: fit-content; 
}

.table-section { 
  flex-grow: 1; 
  background: white; 
  padding: 20px; 
  border-radius: 6px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.info-notice-box {
  background: #f9f9f9; 
  color: #777; 
  font-size: 14px; 
  text-align: center;
}

/* Typography & Navigation Elements */
.header-nav { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-bottom: 2px solid #eee; 
  padding: 15px 40px;
  background: white;
}

.error-banner { 
  color: #d9534f; 
  margin-bottom: 15px; 
  font-size: 14px; 
}

.alert-banner { 
  padding: 10px; 
  background: #d9edf7; 
  color: #31708f; 
  border-radius: 4px; 
  margin: 20px 40px 0 40px; 
}

/* Grid & List Tables */
table { 
  width: 100%; 
  border-collapse: collapse; 
}

th, td { 
  padding: 12px; 
  text-align: left; 
  border-bottom: 1px solid #ddd; 
}

th { 
  background: #f4f4f4; 
}

/* Form Controls */
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
}

input, select { 
  width: 100%; 
  padding: 10px; 
  margin: 6px 0 14px; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
  box-sizing: border-box; 
}

/* Action Buttons & Status Badges */
.btn { 
  padding: 8px 14px; 
  border-radius: 4px; 
  text-decoration: none; 
  color: white; 
  cursor: pointer; 
  border: none; 
  font-size: 13px; 
  display: inline-block;
}

.btn-primary { background-color: #5cb85c; }
.btn-primary:hover { background-color: #4cae4c; }
.btn-warn { background-color: #f0ad4e; color: black; }
.btn-warn:hover { background-color: #ec971f; }
.btn-danger { background-color: #d9534f; }
.btn-danger:hover { background-color: #c9302c; }
.btn-logout { background-color: #333; }
.btn-logout:hover { background-color: #111; }

.badge { 
  padding: 4px 8px; 
  border-radius: 4px; 
  font-size: 11px; 
  font-weight: bold; 
  text-transform: uppercase; 
}

.badge-admin { background-color: #d9534f; color: white; }
.badge-user { background-color: #5bc0de; color: white; }

/* Password container grouping context rules */
.password-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-group input {
  padding-right: 45px; /* Prevent text rendering underneath the eye button icon */
  margin: 0; 
}

/* Structural placement for the eye icon container button */
.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

.password-toggle-btn:hover {
  color: #333;
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
}
