:root {
  --primary-color: #3498db;
  --tab-bg-color: #c3e18b;
  --font-size-base: 12px;
  --transparent_bg: transparent;
  --border_radius: 12px;
  --box_shadow: 1px 1px 1px lightgrey;
}

body {
  background-color: var(--transparent_bg);
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
}

header {
  width: 97%; /* Sets the width to 90% of its parent (the body) */
  margin-left: auto; /* Centers the header horizontally */
  margin-right: auto; /* Centers the header horizontally */
  background-color: var(--transparent_bg);
  text-align: center;
  align-items: center;
}

.header_div {
  padding: 1px;
  background-color: var(--transparent_bg);
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.header_img {
  max-height: 300px;
  background-color: var(--transparent_bg);
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.page_div {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5px;
  background-color: var(--transparent_bg);
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
  width: 95%;
  box-sizing: border-box;
}

.main_div {
  padding: 10px;
  background-color: var(--transparent_bg);
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
}

.footer_div {
  padding: 10px;
  background-color: var(--transparent_bg);
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.passkey_button_class {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border_radius);
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border_radius);
  box-shadow: var(--box_shadow);
  font-weight: bold;
  width: 200px;
  height: 40px;
  box-sizing: border-box;
  text-align: center;
}

.passkey_button_class:hover {
  background-color: #2980b9;
}

#passkey-section,
#device-section,
#device_form_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.empty_div_class {
  height: 20px;
}

#tabs-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.tab_button_class {
  padding: 10px 20px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border_radius);
  background-color: white;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: bold;
}

.tab_button_class.active {
  background-color: var(--tab-bg-color);
  color: white;
}

.tab_content_class {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tab_content_class.active {
  display: flex;
}

.form_group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px;
  width: 100%;
  max-width: 400px;
}

.form_group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form_group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--border_radius);
  width: 100%;
  box-sizing: border-box;
}

.required-indicator {
  color: #e74c3c;
  margin-left: 3px;
}

.devices_table_wrapper {
  width: 100%;
  overflow-x: auto;
}

.devices_table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: var(--box_shadow);
}

.devices_table th,
.devices_table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.devices_table th {
  background-color: #f2f2f2;
}

.state-active {
  background-color: green;
  color: white;
  font-weight: bold;
  text-align: center;
}

.state-inactive {
  background-color: darkgray;
  color: white;
  font-weight: bold;
  text-align: center;
}

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

.action-btn {
  padding: 4px 8px;
  margin: 0 2px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  font-size: 14px;
}

.action-btn:hover {
  background-color: #e2e6ea;
}

.btn-view {
  background-color: #3498db;
  color: white;
}

.btn-edit {
  color: #007bff;
}

.btn-activate {
  color: #28a745;
}

.btn-deactivate {
  color: #ffc107;
}

.btn-delete {
  color: #dc3545;
}

.tag-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
  width: 100%;
}

.tag-key, .tag-value {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: var(--border_radius);
  flex: 1;
}

.remove-tag {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.remove-tag:hover {
  background-color: #cc0000;
}
