/* EGATE Unified CSS */

/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Layout */
.layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

nav {
  width: 250px;
  background-color: #1e1e2f;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

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

nav a {
  color: #ddd;
  text-decoration: none;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 4px;
}

nav a:hover {
  background-color: #333;
}
.nav-item-with-submenu {
  display: flex;
  flex-direction: column;
  margin: 5px 0;
}

.parent-link {
  color: #ddd;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 16px;
}

.submenu.always-expanded {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid #444;
}

.submenu.always-expanded a {
  color: #ddd;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
}

.submenu.always-expanded a:hover {
  background-color: #444;
}
main {
  flex: 1;
  padding: 30px;
  background-color: #f9f9f9;
  overflow: auto;
}

/* Login */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-container {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-container h1 {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
  color: #333;
}

.login-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.login-container input[type="email"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.login-container button:hover {
  background-color: #005fa3;
}

.login-container .forgot {
  text-align: right;
}

.login-container .forgot a {
  text-decoration: none;
  color: #0078d4;
  font-size: 14px;
}

.login-container .forgot a:hover {
  text-decoration: underline;
}

.login-container .version {
  text-align: center;
  margin-top: 30px;
  color: #888;
  font-size: 13px;
}

/* Dashboard stats */
.stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
}

.stat-box h2 {
  font-size: 32px;
  margin: 0;
}

.stat-box p {
  margin: 5px 0 0 0;
  color: #666;
}

/* Google Map */
#map {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Tables */
table {
  width: 100%;
  background-color: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  border-collapse: collapse;
}

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

th {
  background-color: #f1f1f1;
}

/* Buttons */
button {
  background-color: #0078d4;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

/* Site Details Page */
.site-details-container {
  display: flex;
  flex-wrap: nowrap; /* align horizontally: site-info left, data-section right */
  gap: 20px;
  margin-top: 20px;
  align-items: flex-start;
}

.site-info {
  flex: 1 1 300px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.site-map {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.data-section {
  flex: 2 1 600px;
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 20px;
}

.card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 5px;
}


/* CSS */
.button-10 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  border-radius: 6px;
  border: none;

  color: #fff;
  background: linear-gradient(180deg, #4B91F7 0%, #367AF6 100%);
   background-origin: border-box;
  box-shadow: 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-10:focus {
  box-shadow: inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2), 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), 0px 0px 0px 3.5px rgba(58, 108, 217, 0.5);
  outline: 0;
}

.dt-center {
  text-align: center;
}

.device-details-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.device-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.device-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 5px;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.customer-dropdown label {
  font-weight: bold;
  margin-right: 5px;
}

.customer-dropdown select {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}