/* styles.css */

/* General Layout */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  height: 100vh;
  background: #f9f9f9;
}
h2 {
    padding-bottom:0;
    margin-bottom:0;
}
/* Sidebar */
.sidebar {
  width: 200px;
  background: #fefbf7;
  color: #333;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.bid_status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px !important;
  font-weight:100;
  border-radius: 5px;
  margin-left: 5px;
  color: #fff!important; /* white text */
  border: 1px solid transparent;
}
.project-bids{
      font-size: 13px !important;
}
/* Active = light green */
.bid_status.active {
  background-color: #28a745; /* Bootstrap success green */
  border-color: #218838;
}

/* Ended = light grey */
.bid_status.ended {
  background-color: #6c757d; /* Bootstrap secondary grey */
  border-color: #5a6268;
}

/* Canceled = light red */
.bid_status.canceled {
  background-color: #dc3545; /* Bootstrap danger red */
  border-color: #bd2130;
}

.sidebar h3 {
  margin-left: 20px;
  color: #222;
}

.sidebar-logo{
    padding: 15px;
}

.menu-item {
  padding: 15px 20px;
  cursor: pointer;
  color: #333;
}

.menu-item:hover,
.menu-item.active {
  background-color: #ddd;
  font-weight: bold;
}

/* Main Content */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: #fff;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  margin-right: 10px;
  color: #333;
}

.tab.active {
  border-bottom: 3px solid #333;
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.entity-list {
  margin-top: 20px;
}
.entity-item {
  position: relative;
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.entity-item:hover {
  background: #fefbf7;
}
.entity-item.child {
  margin-left: 30px;
  background-color: #fafafa;
}
.entity-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.entity-main:hover .entity-menu-wrapper {
  opacity: 1;
}
.entity-main > div {
  display: flex;
  flex-direction: column;
}
.entity-main strong {
  font-size: 1.1em;
  margin-bottom: 4px;
}
.entity-main span {
  color: #666;
  font-size: 0.9em;
}
.entity-main em {
  color: #999;
  font-size: 0.85em;
}
.entity-menu-wrapper {
  position: relative;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.toggle-btn, .toggle-placeholder {
  cursor: pointer;
  font-size: 20px!important; /* increase size */
  font-weight: bold;
  color: #f68400!important;
  margin-right: 0;
  user-select: none;
}
.toggle-placeholder {
  visibility: hidden;
}
.entity-main > div:first-child {
  display: flex;
  flex-direction: column;
}
.entity-children {
  margin-left: 30px;
  background-color: #fafafa;
  padding-top: 10px;
}
.entity-menu {
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  padding: 5px 10px;
}
.child-count {
  font-size: 0.8em;
  color: #888;
  margin-left: 4px;
}
em {
  font-style: normal;
  font-size:13px!important;
}
.bid_data {
    /* Display & Layout */
    display: inline-block;
    padding: 6px 12px;   /* Reduced padding for a smaller button */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;   /* Slightly smaller border-radius */

    /* Colors - White Button */
    background-color: #ffffff; /* White background */
    color: #333333;       /* Dark grey text for readability on white */

    /* Font */
    font-family: Arial, sans-serif;
    font-size: 12px;      /* Smaller font size */
    font-weight: 100;

    /* Hover Effect */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.bid_data:hover {
    background-color: #f0f0f0; /* Slightly off-white on hover for a subtle effect */
    border-color: #999999; /* Darker border on hover */
    color: #000000;       /* Black text on hover */
}
.bid_status a{
    color:white;
    text-decoration:none;
}
.bid_data:active {
    background-color: #e0e0e0; /* Even darker on click/active state */
    border-color: #666666;
}
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 25px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
}
.dropdown-menu div {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.dropdown-menu div:hover {
  background-color: #f2f2f2;
}
.project-bids {
    font-size: 13px !important;
    background: #ffefdc;
    padding: 18px 0 18px 18px;
    /* color: white; */
    border-radius: 5px;
}
strong .type {
  font-size: 0.8em;
  color: #777;
  font-weight: normal;
  margin-left: 4px;
}
.save-btn {
  background-color: #f68400;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  font-size: 14px;
}

.save-btn:hover {
  background-color: #ff9420; /* lighter orange on hover */
}
p.section-description{
    font-size:13px;
    padding-top:0;
    margin-top:0;
    margin-bottom:12px;
}
.entity-form {
  max-width: 500px;
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.input-field,
.textarea-field,
select.input-field {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.textarea-field {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 10px;
}
.project_description{
    font-size:13px;
}
.save-btn {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.save-btn:hover {
  background-color: #e65c00;
}

.cancel-btn {
  background-color: #ccc;
  color: #333;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cancel-btn:hover {
  background-color: #bbb;
}
/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 1rem;
}

.tab {
  padding: 10px 20px;
  background: #eee;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
}

.tab.active {
  background: #fff;
  border-bottom: 2px solid white;
  font-weight: bold;
}

.tab-content {
  display: none;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ccc;
}

.tab-content.active {
  display: block;
}

/* Form Row Replacing Table Row */
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-row input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
