/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS 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/SCSS files in this directory. Styles in this file should be added after the last require_* statement.
 * It is suggested that you use Sass to define your application styles.
 *
 *= require_tree .
 *= require_self
 */

/* Base styles */
:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --text-color: #374151;
  --background-color: #ffffff;
  --border-color: #d1d5db;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #f3f4f6;
  font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 trix-toolbar {
    position: sticky;
    top: 0px;
    background: #fff;
    padding-top: 15px;
    border-bottom: 1px solid #bbb;
}

trix-editor *:hover {
    background: rgb(6 33 251 / 5%);
}

/* trix extensions */
checkbox::before {
    content: "";
    width: 10px;
    display: inline-block;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin-right: 5px;
    cursor: pointer;
}

.page-path {
  border: none;
  border-bottom: 1px solid;
}

.page-delete {
  vertical-align: middle;
}
.navbar {
    display: flex;
    justify-content: space-between;
}

.main-container {
  display: flex;
  justify-content: space-between;
}

.main-container .sidebar-container {
  flex-grow: 0;
}

.main-container .content {
  flex-grow: 2;
  margin-right: 40px;
  margin-left: 3px;
}

.sidebar-toggle {
  cursor: pointer;
  padding-top: 15px;
  margin-right: 15px;
}

.sidebar-toggle + .sidebar {
  display: none;
}

.sidebar-container.open {
  flex-grow: 1;
}

.sidebar-container.open .sidebar {
  display: block;
}

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

.sidebar ul > li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.sidebar ul > li > svg {
    margin-right: 5px;
}

.sidebar ul > li.back ~ li {
    padding-left: 25px;
}

.page-settings {
  position: relative;
}

.page-access-invite-container.active {
    position: absolute;
    background: red;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}
.page-access-invite-role {
    display: flex;
    align-items: center;
}

.page-access-invite-container .email-message-container {
    /* display: none; */
}
.page-access-invite-container.active .email-message-container {
    display: block;
}
.email-message-container label {
    display: block;
}

/* https://composeicons.com/icons/lucide/square-menu */

/* Estilos para a página de login */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background-color: #f9fafb;
}

.login-form {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form h1 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: #111827;
}

.login-form .field {
  margin-bottom: 1rem;
}

.login-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.login-form .actions {
  margin-top: 1.5rem;
}

.login-form .actions input[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #3b82f6;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-form .actions input[type="submit"]:hover {
  background-color: #2563eb;
}

.login-links {
  margin-top: 1.5rem;
  text-align: center;
}

.login-links a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-error {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #fee2e2;
  color: #b91c1c;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* Estilos para validação de senha */
.login-form .password-requirements {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.login-form .field .password-strength {
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.login-form .field .password-strength::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background-color: #ef4444;
  transition: width 0.3s, background-color 0.3s;
}

.login-form .field .password-strength.weak::after {
  width: 33%;
  background-color: #ef4444;
}

.login-form .field .password-strength.medium::after {
  width: 66%;
  background-color: #f59e0b;
}

.login-form .field .password-strength.strong::after {
  width: 100%;
  background-color: #10b981;
}

.login-form input:invalid {
  border-color: #ef4444;
}

.login-form input:invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.login-form .field-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Melhorias visuais para inputs */
.login-form input[type="email"],
.login-form input[type="password"] {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input[type="email"]::placeholder,
.login-form input[type="password"]::placeholder {
  color: #9ca3af;
}

.settings-section-description.quote {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--color-background-subtle);
  border-left: 4px solid var(--color-border);
  border-radius: 4px;
  margin: 1rem 0;
}

.quote-icon {
  font-size: 1.25rem;
  line-height: 1.5;
}

.quote-content {
  flex: 1;
  line-height: 1.5;
}
