/* Global Resets */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f5f7fa;
  color: #2c3e50;
}

/* Header Styling - this is all to display the groups (books)
/**********************************************************************/
header {
  box-sizing: border-box;
  height: 50px;
  width: 100%;
  background-color: #1e2a38;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #ecf0f1;
  border-bottom: 2px solid #2c3e50;
  padding-left: 10px;
  padding-right: 10px;
}

.book span, .current_book span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

header .book {
  background-color: #34495e;
  color: #ecf0f1;
  padding: 6px 16px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

header .book:hover {
  background-color: #3d566e;
}

header .current_book {
  background-color: #1abc9c;
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
}

header .current_book span {
  font-family: 'Inter', sans-serif;
  color: white;
}

.header-icons-group {
  margin-left: auto;>
  margin-right: 10px;
  color: #ecf0f1;
}

.header-icons-group i {
  color: #ecf0f1;
}

.header-icons-group i:hover {
  transform: scale(1.1);
}

/* Icons + Filters - these are directly below the groups
/**********************************************************************/
.icons-group {
  display: flex;
  padding: 10px 20px;
  gap: 12px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.icons-group input {
  width: 180px;
  height: 32px;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Action Buttons
/**********************************************************************/
.action-button {
  border: none;
  color: white;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.new-button {
  background-color: #4682B4;
}

.new-button:hover {
  background-color: #36648B;
}

.edit-group-button {
  /* background-color: #e74c3c; */
  background-color: #4682B4;
}

.edit-group-button:hover {
  background-color: #36648B;
}

.action-button i {
  font-size: 18px;
  font-weight: bold;
}

/* Grid Layout of clients
/**********************************************************************/
.grid_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
  gap: 12px;
  padding: 20px;
  justify-content: start;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
}

.grid-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  display: flex;
  gap: 10px;
  align-items: center;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.grid-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.name_text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #1e2a38;
}

/* Status Indicators
/**********************************************************************/
.status_indicator_on {
  width: 12px;
  height: 12px;
  background-color: #2ecc71;
  border-radius: 50%;
  margin-left: 10px;
}

.status_indicator_off {
  width: 12px;
  height: 12px;
  background-color: #f39c12;
  border-radius: 50%;
  margin-left: 10px;
}


/* Dropdown Menus                                                     
/**********************************************************************/

.edit-container {
  display: flex;
  padding-right: 5px;
  padding-left: 10px;
  margin-left: auto;
  margin-top: -12px;
  margin-bottom: -12px;
  align-items: center;
  justify-content: center;
  height: 40px;
  vertical-align: middle;

}

.edit-icon {
  font-size: 20px;
  float: right;
  margin-left: auto;  
}

.dropdown-menu {
  display: none;
  position: absolute;
  font-family: 'Inter', sans-serif;
  top: 30px; /* Adjust based on icon position */
  right: 10px;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 150px;
  max-width: 150px;
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
}


/* Logout Icon
/**********************************************************************/
.logout-icon {
  position: relative;
  margin-left: auto;
  margin-right: 10px;
  background-color: #c0392b;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.logout-icon a {
  color: white;
  background-color: #a93226;
  transform: scale(1.1);
}

.logout-icon a:hover {
  color: #f1f1f1;
}


/* Dialog Defaults
/**********************************************************************/
#create_entry_diag, #create-book-diag {
  display: none;
}

