/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

html {
  color-scheme: light only; /* Turning off dark mode*/
}

 .sidebar {
  background-color: #4682B4;
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  overflow-y: auto;
}

.sidebar .menu-label {
  color: #FFFFFF;
  font-weight: bold;
  padding: 0.5rem 1rem;
}

.sidebar .menu-list a {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0.1rem 0;
  display: block;
  position: relative;
}

.sidebar .menu-list a:hover {
  color: #E0FFFF;
  background-color: #1E4D7A;
}

.sidebar .menu-list .submenu {
  padding-left: 1rem;
  display: none;
}

.sidebar .menu-list .submenu.active {
  display: block;
}

.main-content {
  margin-left: 260px;
}

@media screen and (max-width: 1023px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .main-content {
    margin-left: 0;
  }
  .main-content .column {
    padding: 4.5rem;
  }
  .main-content .title {
    padding: 2.5rem;
  }
}

.sidebar-header {
  text-align: center;
  padding: 10px 0;
}

.sidebar-header img {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto;
}

.sidebar-header span {
  color: #FFFFFF;
  font-size: 14px;
  display: block;
  margin-top: 5px;
}

.navbar {
  background-color: #4682B4;
}

.navbar-item, .navbar-link {
  color: #FFFFFF;
}

.navbar-item:hover, .navbar-link:hover {
  background-color: #1E4D7A;
  color: #E0FFFF;
}

.navbar-burger {
  color: #FFFFFF;
}

.sidebar .menu-list a.toggle-submenu::after {
  content: ">";
  color: #FFFFFF;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.sidebar .menu-list a.toggle-submenu.active::after {
  transform: translateY(-50%) rotate(90deg);
}

.table-container.is-scrollable {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto; /* Fallback for horizontal scrolling */
}

.card-content {
  padding: 1.5rem;
}

.field .control {
  position: relative;
  max-width: 100%; /* Prevent overflow */
}

.input {
  width: 100%;
  max-width: 400px; /* Constrain search box width */
  box-sizing: border-box;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 400px;
  z-index: 10;
  display: none; /* Hidden by default */
}

.dropdown.is-active {
  display: block; /* Shown when active */
}

.dropdown-menu {
  width: 100%;
}

.dropdown-content {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-item.is-focused {
  background-color: #e0e0e0;
}

/* Reduce text size and adjust padding for the table */
.table.is-fullwidth {
  font-size: 0.655rem; /* 14px if base is 16px; adjust as needed */
}

/* Adjust cell padding for a denser look */
.table.is-fullwidth th,
.table.is-fullwidth td {
  padding: 0.5rem 0.75rem; /* Slightly tighter than Bulma's default 0.75rem 1rem */
}

.table.is-fullwidth th.id-column,
.table.is-fullwidth td.id-column {
  max-width: 200px; /* Approx 32 characters */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table.is-fullwidth th.title-column,
.table.is-fullwidth td.title-column {
  max-width: 200px; /* Approx 32 characters */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* New column styles */
.table.is-fullwidth th.bucket-name-column,
.table.is-fullwidth td.bucket-name-column {
  max-width: 300px; /* Wider for longer bucket names */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table.is-fullwidth th.aws-acct-id-column,
.table.is-fullwidth td.aws-acct-id-column {
  max-width: 150px; /* Fixed width for 12-digit AWS account IDs */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table.is-fullwidth th.account-name-column,
.table.is-fullwidth td.account-name-column {
  max-width: 200px; /* Flexible for account names */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table.is-fullwidth th.region-column,
.table.is-fullwidth td.region-column {
  max-width: 120px; /* Narrow for regions like "us-west-2" */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table.is-fullwidth th.size-column,
.table.is-fullwidth td.size-column {
  max-width: 100px; /* Medium width for size */
  text-align: right !important; /* Right-align numbers */
  white-space: nowrap;
}

.table.is-fullwidth th.object-count-column,
.table.is-fullwidth td.object-count-column {
  max-width: 120px; /* Medium width for counts */
  text-align: right !important; /* Right-align numbers */
  white-space: nowrap;
}

.table.is-fullwidth th.public-access-column,
.table.is-fullwidth td.public-access-column {
  max-width: 150px; /* Medium width for public access status */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table.is-fullwidth th.has-versioning-column,
.table.is-fullwidth td.has-versioning-column {
  max-width: 100px; /* Narrow for Yes/No */
  text-align: center; /* Center-align for clarity */
  white-space: nowrap;
}

.table.is-fullwidth th.created-at-column,
.table.is-fullwidth td.created-at-column {
  max-width: 120px; /* Narrow for date */
  white-space: nowrap;
}

.table.is-fullwidth th.details-column,
.table.is-fullwidth td.details-column {
  max-width: 80px; /* Narrow for button */
  text-align: center; /* Center the button */
  white-space: nowrap;
}
