/*
 * This is a manifest file that'll be compiled into application.css, which will include 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.
 *


 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
}

/* Scoped styles for the main application layout */
html:has(body.app-body) {
  height: 100vh;
}

body.app-body {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #FFFFFF;
  z-index: 1000;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0; /* Prevent navbar from shrinking */
  border-bottom: 1px solid #e9ecef; /* Add bottom border */
}

.navbar-shadow {
  border-bottom-color: transparent; /* Hide border when shadow is active */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-right {
  display: flex;
  align-items: center;
}

/* Hamburger menu button styles */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-right: 15px;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  outline: none;
}

.hamburger-btn:hover {
  background-color: #f8f9fa;
  transform: scale(1.05);
}

.hamburger-btn:active {
  background-color: #e9ecef;
  transform: scale(0.98);
}

.hamburger-btn img {
  width: 20px;
  height: 20px;
  color: #172f41;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 20px;
}

.logo img {
  height: 40px;
  width: auto;
}

.auth-buttons {
  display: flex;
  align-items: center;
}

.auth-buttons a, .auth-buttons button {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 10px;
  color: #172a3a;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid #172a3a;
  background-color: transparent;
  cursor: pointer;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
}

.auth-buttons a:hover, .auth-buttons button:hover {
  background-color: #f5f5f5;
  color: #5f6061;
}

/* Make selector more specific to override default button styles */
.auth-buttons .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-left: 10px;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.2s;
  border: none; /* Remove border */
  outline: none; /* Remove outline */
}

/* Make selector more specific */
.auth-buttons .btn-icon:hover {
  background-color: #f0f0f0;
}

.btn-icon img {
  height: 24px;
  width: 24px;
}

.content {
  padding: 20px 30px;
}

/* Regras para dispositivos móveis */
@media (max-width: 768px) {
  .sidebar {
    display: none; /* Hide sidebar by default on mobile */
    position: fixed; /* Keep it in the viewport when toggled */
    left: -260px; /* Start off-screen */
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1100;
    transition: left 0.3s ease;
  }

  .sidebar.active {
    display: block;
    left: 0; /* Slide in */
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* black with 30% opacity */
    z-index: 1050; /* Below sidebar (1100), above content */
  }

  .sidebar-overlay.active {
    display: block;
  }

  .navbar-left {
    flex-direction: row;
    align-items: center;
  }
  
  .hamburger-btn {
    padding: 6px;
    margin-right: 12px;
  }
  
  .hamburger-btn img {
    width: 18px;
    height: 18px;
  }
  
  .auth-buttons {
    display: flex;
  }
  
  .auth-buttons a, .auth-buttons button {
    margin-left: 0;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    width: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 15px;
  }
  
  .hamburger-btn {
    padding: 4px;
    margin-right: 10px;
  }
  
  .hamburger-btn img {
    width: 16px;
    height: 16px;
  }
  
  .logo img {
    height: 32px;
  }
  
  .auth-buttons a, .auth-buttons button {
    padding: 6px 10px;
    font-size: 14px;
  }
}

/* --- Sidebar Styles --- */
.main-body {
  display: flex;
  flex-grow: 1;
  height: 1px; /* Flexbox hack to allow children to fill height */
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background-color: #FFFFFF;
  padding: 20px;
  border-right: 1px solid #dee2e6;
  overflow-y: auto; /* Allow sidebar to scroll its own content if needed */
}

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

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #343a40;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 5px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background-color: #e9ecef;
  color: #172f41;
}

.sidebar-menu li a img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-menu li a span {
  margin-left: 12px;
}

.main-content {
  flex-grow: 1;
  padding: 20px 30px;
  background-color: #FFFFFF;
  overflow-y: auto; /* This is now the main scrolling container */
}
/* --- End Sidebar Styles --- */

/* --- Responsive Design --- */
/* Hide hamburger menu on large screens */
@media (min-width: 769px) {
  .hamburger-btn {
    display: none;
  }
} 
