/*
 * 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 or any subdirectory
 * of this directory, or vendor/assets/stylesheets of plugins, if any, 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 file in this directory.
 *
 *= require_self
 *= require primeta_base
 *= require primeta_forms
 *= require primeta_navbar
 *= require primeta_repositories
 *= require primeta_landing
 *= require ai_assistant
 *= require file_explorer_fix
 *= require file_explorer_fix_layout
 *= require fix_dropdown
 *= require_tree .
 */

:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #f9f9f9;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --border-radius: 4px;
  --light-bg-color: #f9f9f9;
  --dark-bg-color: #2c3e50;
  --text-light-color: #f9f9f9;
  --error-color: #e74c3c;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light-color);
  background-color: var(--dark-bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  background-color: var(--dark-bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--text-light-color);
}

p {
  margin-bottom: 0.75rem;
  color: var(--text-light-color);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header Styles */
.main-header {
  background-color: var(--dark-bg-color);
  padding: 0.75rem 0;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  text-decoration: none;
}

.logo a:hover {
  text-decoration: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  transition: opacity 0.3s;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-color);
  opacity: 1;
  text-decoration: none;
}

.user-menu {
  margin-left: 1.5rem;
  position: relative;
}

.user-name {
  cursor: pointer;
  font-weight: 500;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--dark-bg-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  min-width: 200px;
  display: none;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Updated dropdown display - using .show class instead of hover */
.dropdown-menu.show,
.user-menu.active .dropdown-menu {
  display: block;
}

.dropdown-menu a, 
.dropdown-menu button {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-light-color);
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

/* Flash Messages */
.flash-messages {
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0.5rem auto;
}

.notice, .alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notice {
  background-color: var(--success-color);
  color: white;
}

.alert {
  background-color: var(--error-color);
  color: white;
}

/* Auth Section */
.auth-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.features {
  margin: 2rem 0;
}

.features ul {
  padding-left: 1.5rem;
}

.features li {
  margin-bottom: 0.5rem;
}

.divider {
  margin: 1rem 0;
  text-align: center;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  display: inline-block;
  width: 40%;
  height: 1px;
  background-color: #ddd;
  margin: 0 0.5rem;
  vertical-align: middle;
}

/* Code syntax with brand colors */
code, pre {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  background-color: var(--dark-bg-color);
  color: var(--text-light-color);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
}
