/* Cloudera Black Topbar for NiFi Components - matches topbar.html structure */

/* Change the topbar background
   from NiFi gray #728e9b
   to Cloudera black #132329 */

.contain-to-grid {
  width: 100%;
  background: #132329;
}

.top-bar {
  width: 100%;
  background: #132329 !important;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
  position: relative;
  z-index: 100;
  min-height: 48px;
  font-family: "Segoe UI", "Arial", sans-serif;
}

.top-bar.expanded .title-area {
  background: #132329;
}

.top-bar-section {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-section ul.right {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.top-bar-section ul.right li {
  margin: 0;
  padding: 0;
}

.top-bar-section ul.right li a {
  color: #fff !important;
  background: transparent;
  padding: 0 1.2rem;
  font-size: 1rem;
  height: 48px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar-section ul.right li a:hover,
.top-bar-section ul.right li.active > a {
  color: #f9b233 !important; /* Cloudera accent color */
  background: transparent;
}

/* Title area styles */
.title-area {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 48px;
}

.title-area .name h1 {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

#logo-top-bar {
  height: 32px;
  vertical-align: middle;
  margin-right: 10px;
}

/* Toggle menu icon styles */
.toggle-topbar.menu-icon {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.toggle-topbar.menu-icon a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .title-area {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
  .top-bar-section ul.right {
    flex-direction: column;
    width: 100%;
  }
  .top-bar-section ul.right li a {
    padding: 0.5rem 1rem;
    width: 100%;
  }
}

/* Hide default border and shadow for UIKit navbars if present */
.top-bar,
.uk-navbar-container {
  box-shadow: none !important;
  border: none !important;
}
