:root {
  --sp-background: #0D0F17;
  --sp-container: #12141A;
  --sp-navbar: #000000;
  --sp-primary: #3699FF;
  --sp-primary-hover: #187DE4;
  --sp-support: #FF9F43;
  --sp-support-hover: #FF8510;
  --sp-nav:#1C1D24;
}

body {
  background-color: var(--sp-background);
  color: #fff;
  min-height: 100dvh; /* Usando dvh para melhor suporte mobile */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

header {
  background-color: var(--sp-background);
  z-index: 1000;
  position: relative;
}

.sub-titulo {
  font-size: 0.875rem;
  color: #9a9cae;
}

/* Menu Header Nav Links */
.menu-header .nav-link {
  color: #9a9cae;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  font-size: 0.95rem;
}

.menu-header .nav-link:hover {
  color: #fff;
  background-color: var(--sp-nav);
}

.menu-header .nav-link.active {
  color: #fff;
  background-color: var(--sp-nav);
}

/* Steps Container Styles */
.steps-container {
  margin: 2rem 0;
  position: relative;
  padding: 0 1.5rem;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.steps {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  z-index: 2;
}

.step {
  text-align: center;
  position: relative;
}

.step-circle {
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 50%;
  background: var(--sp-container);
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-weight: bold;
  margin: 0 auto 0.5rem;
}

.step.active .step-circle {
  background: var(--sp-primary);
  border-color: var(--sp-primary);
}

.step.complete .step-circle {
  background: #28a745;
  border-color: #28a745;
}

.step-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.step.active .step-label {
  color: var(--sp-primary);
}

.step.complete .step-label {
  color: #28a745;
}

/* Button Styles */
.btn-lg {
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
}

/* Font Sizes */
.fs-7 {
  font-size: 0.875rem;
}

.fs-8 {
  font-size: 0.75rem;
}

/* Menu Header Styles */
.menu-header {
  background-color: var(--sp-navbar);
  position: relative;
  z-index: 100;
}

.menu-header .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  padding: 0.5rem 2rem 0.5rem 1rem;
}

/* Profile Button */
.btn-profile {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  background: transparent;
}

.btn-profile:hover,
.btn-profile:focus {
  border-color: var(--sp-primary);
  background: rgba(54, 153, 255, 0.1);
}

.btn-profile::after {
  margin-left: 0.75rem;
}

/* Header Profile Dropdown Styles */
.dropdown-menu {
  background-color: var(--sp-container);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
          box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
  padding: 0;
  margin-top: 1rem !important;
  border-radius: 0.75rem;
  min-width: 280px;
}

.dropdown-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  -webkit-transition: none;
  transition: none;
}

.dropdown-item:hover {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.dropdown-item:active,
.dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dropdown-item i {
  width: 1.25rem;
  text-align: center;
  margin-right: 0.75rem;
  font-size: 1rem;
  opacity: 0.8;
}

.dropdown-item.text-danger {
  color: #ff3e3e !important;
}

.dropdown-item.text-danger:active,
.dropdown-item.text-danger:focus {
  background-color: rgba(255, 62, 62, 0.1);
}

/* Support Button */
.btn-orange {
  background-color: var(--sp-support);
  border-color: var(--sp-support);
  color: #fff;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.btn-orange:hover {
  background-color: var(--sp-support-hover);
  border-color: var(--sp-support-hover);
  color: #fff;
}

/* Form Controls */
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.input-group-lg .form-select {
  min-height: 50px;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--sp-primary);
  color: #fff;
  -webkit-box-shadow: 0 0 0 0.25rem rgba(54, 153, 255, 0.25);
          box-shadow: 0 0 0 0.25rem rgba(54, 153, 255, 0.25);
}

/* Add placeholder styles */
.form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.form-control::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

/* Form Select Custom Styles */
.form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--sp-primary);
  color: #fff;
  -webkit-box-shadow: 0 0 0 0.25rem rgba(54, 153, 255, 0.25);
          box-shadow: 0 0 0 0.25rem rgba(54, 153, 255, 0.25);
}

.form-select option {
  background-color: var(--sp-container);
  color: #fff;
}

/* Login Form Container */
.sp-container {
  background-color: var(--sp-container);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal-content.sp-container {
  padding: 0;
  background-color: var(--sp-container);
}

/* Override Bootstrap's default modal styles */
[data-bs-theme="dark"] .modal-content,
.modal[data-bs-theme="dark"] .modal-content {
  background-color: var(--sp-container);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--sp-primary);
}

[data-bs-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.modal-header {
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
}

.modal .btn-dark {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.modal .btn-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Offcanvas Styles */
.offcanvas {
  background-color: var(--sp-navbar);
}

.offcanvas-header {
  padding: 1rem;
}

.offcanvas-title {
  color: #fff;
  font-weight: 500;
}

.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
}

/* Table Styles */
.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  background-color: transparent;
  color: #9a9cae;
  padding: 1rem 0.75rem;
  font-size: 0.875rem;
  vertical-align: middle;
}

.table th {
  font-size: 0.8125rem;
  color: #9a9cae;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table td {
  color: #9a9cae;
  font-size: 0.875rem;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table tr:last-child td {
  border-bottom: none;
}

.table .text-link-primary {
  color: #FFC700;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.table .text-link-primary:hover,
.table .text-link-primary:focus {
  text-decoration: underline;
  outline: none;
  color: #FFC700;
}

.table i {
  margin-right: 0.5rem;
}

/* Mobile Styles */
@media (max-width: 767.98px) {
  .menu-header .btn-dark {
    padding: 0.5rem;
    font-size: 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
  }

  .menu-header .btn-dark:focus {
    -webkit-box-shadow: 0 0 0 0.25rem rgba(54, 153, 255, 0.25);
            box-shadow: 0 0 0 0.25rem rgba(54, 153, 255, 0.25);
  }

  .offcanvas {
    max-width: 280px;
  }

  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 575.98px) {
  .btn-profile {
    padding: 0.5rem;
    min-width: auto;
  }

  .dropdown-menu {
    min-width: 280px;
  }
}

/* Adicionando suporte a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-animation-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
            animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Summernote Dark Theme */
.note-editor.note-frame {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.5rem;
}

.note-editor .note-toolbar {
  background-color: var(--sp-background) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  padding: 0.5rem;
}

.note-editor .note-editing-area,
.note-editor .note-editable {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
}

.note-editor .note-statusbar {
  background-color: var(--sp-background) !important;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.note-editor.note-frame .note-editing-area .note-editable[contenteditable="true"]:empty:not(:focus):before {
  color: rgba(255, 255, 255, 0.5);
  content: attr(data-placeholder);
}

.note-editor.note-frame .note-statusbar {
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.note-editor.note-frame .note-statusbar .note-resizebar {
  padding-top: 1px;
  height: 9px;
}

.note-editor.note-frame .note-statusbar .note-resizebar .note-icon-bar {
  width: 20px;
  margin: 1px auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Toolbar Buttons */
.note-editor.note-frame .note-toolbar .note-btn-group .note-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

.note-editor.note-frame .note-toolbar .note-btn-group .note-btn:hover,
.note-editor.note-frame .note-toolbar .note-btn-group .note-btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--sp-primary);
  color: #fff;
}

.note-editor.note-frame .note-toolbar .note-btn-group .note-btn.active {
  background-color: var(--sp-primary);
  border-color: var(--sp-primary);
  color: #fff;
}

/* Dropdown Menus */
.note-editor .note-dropdown-menu {
  background-color: var(--sp-container);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
          box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  min-width: 100px;
}

.note-editor .note-dropdown-menu .note-dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem;
}

.note-editor .note-dropdown-menu .note-dropdown-item:hover,
.note-editor .note-dropdown-menu .note-dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Modal Dialogs */
.note-modal {
  background-color: var(--sp-container);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.note-modal .note-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.note-modal .note-modal-body {
  padding: 1rem;
}

.note-modal .note-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.note-modal .note-modal-title {
  color: #fff;
  font-weight: 500;
}

/* Adicionando suporte a modo de alto contraste */
@media (forced-colors: active) {
  .btn-profile,
  .form-control,
  .form-select {
    border: 1px solid;
  }
}