/* user.css */

.user-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Keep header content above overlay */
.user-wrapper > header {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  height: 40px;
  padding: 5px 10px;
  display: flex;
}

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.user-header h2 {
  margin: 0;
  color: black;
  font-size: 20px;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 10px; /* spacing between icons */
}

/* Modal styles for dropdown menu on header*/
.modal-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-inner {
  background: #fff;
  color: #302d2d;
  width: 100%;
  max-width: 380px;
  min-width: 250px;
  padding: 2rem;
  border-radius: 5px;
  position: relative;
}

.close-btn {
  all: unset; 
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #333;
}

.modal-inner form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-inner input,
.modal-inner textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: small;
}



.submit-btn {
  background: rgb(105, 105, 106);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%
}

.submit-btn:hover {
  background: rgb(137, 137, 138);
}


/* Layout below header (sidebar + main content) */
.user-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  flex: 1; /* allows it to take remaining space */
  overflow: hidden;
}

/* Area where we see table*/
.main-content {
  flex: 1;
  min-width: 0; /* prevents overflow */
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar {
  flex: 0 0 200px;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px;
  height: auto; /* ❗ remove 100% if it breaks layout */
  overflow-y: auto;
  display: flex;                  /* ✅ make it flex container */
  flex-direction: column;         /* stack content vertically */
  justify-content: space-between; /* ✅ push bottom element down */
}

.sidebar .submit-btn {
  align-self: center;  /* center horizontally */
  margin-top: auto;    /* ✅ forces button to bottom */
  width: 90%;
  background: rgb(82, 82, 122);
  font-size: 15px;
}

.sidebar .submit-btn:hover {
  background: rgb(137, 137, 138);
}

.sidebar .search-input {
  padding: 0.4rem 0.6rem;
  border: 1px solid #bcc9d8;
  border-radius: 15px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: rgb(82, 82, 122);
}

/* Hamburger button */
.hamburger-btn {
  all: unset;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
  display: none;
}

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2500;
}

/* Close button inside sidebar */
.close-sidebar {
  all: unset;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 10px;
  display: none;
}
