:root {
  --txt-color-white: #fff;
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;

  /* Variáveis para Dark Mode */
  --company-color: #3cbda1;
  --accent-color: #3cbda1;
  --company-color-dark: #2ea574;
  --bg-color: #ffffff;
  --loader-bg: #ffffff;
  --card-bg: rgb(240 242 249);
  --text-primary: #0000;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  --footer-bg: #f8f9fa;
  --nav-bg: #ffffff;
  --alert-bg: #d1ecf1;
  --alert-text: #0c5460;
  --breadcrumb-bg: transparent;
  --loader-bg: #ffffff;
  --modal-bg: #ffffff;
  --ticket-error: #e72929;
  --ticket-bg: #ffffff;
  --senha-bg: #a70000;
  --black-act: black;
}

[data-theme="dark"] {
  --company-color: #3cbda1;
  --company-color-dark: #36c387;
  --bg-color: #000000;
  --loader-bg: #000000;
  --card-bg: #2d2d2d;
  --text-primary: #f0f0f0;
  --text-secondary: #cccccc;
  --border-color: #444444;
  --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  --footer-bg: #222222;
  --nav-bg: #333333;
  --alert-bg: #1e3a3f;
  --alert-text: #b8daff;
  --breadcrumb-bg: rgba(255, 255, 255, 0.05);
  --loader-bg: #000000;
  --modal-bg: #2d2d2d;
  --ticket-error: #ff6b6b;
  --ticket-bg: #2d2d2d;
  --senha-bg: #ffffffff;
  --black-act: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--secondary);
  line-height: 1.6;
}

html,
body {
  height: 100%;
  min-height: 130vh; /* garante pelo menos 100% da altura visível */
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  html,
  body {
    min-height: 160vh; /* Ajusta para 100% da altura visível em telas menores */
  }
}


/* Sidebar */
.sidebar {
  background: linear-gradient(135deg, var(--primary), #2eaa8a);
  min-height: 100vh;
  padding: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 0;
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--nav-bg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateX(5px);
}

.sidebar-nav .nav-link i {
  margin-right: 0.75rem;
  width: 20px;
}

/* Main Content */
.main-content {
  padding: 0;
  background-color: var(--bg-color);
}

.header-section {
  background: var(--card-bg);
  padding: 0rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 0rem;
}

body {
  background-color: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.header-section {
  background: var(--bg-color);
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

/* Specific styles for header content layout and typography */
.header-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--company-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.header-section h2 i {
  font-size: 1.6rem;
  margin-right: 12px;
}

.header-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

.header-section .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.header-section .btn:hover {
  transform: translateY(-1px);
}

.modern-card {
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header-modern {
  padding: 18px 25px;
  border-bottom: none;
}

.card-header-modern h6 {
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.card-body-modern {
  padding: 30px 25px;
}

.form-group-modern {
  margin-bottom: 25px;
}

.form-label-modern {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.5px;
}

.form-control-modern {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--bg-color);
}

.form-control-modern:focus {
  outline: none;
}

.form-control-modern.disabled {
  background-color: var(--bg-color);
  color: var(--text-primary);
  cursor: not-allowed;
}

.form-text-muted {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 5px;
  display: block;
}

.form-check-modern {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-color);
  border-radius: 8px;
}

.form-check-label-modern {
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 8px;
}

.password-section {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.password-info {
  background: #e3f2fd;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  color: #1976d2;
  margin-top: 15px;
}

.btn-modern-primary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-modern-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.danger-zone {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #dee2e6;
}

.danger-title {
  color: #dc3545;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.danger-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.5;
}

.btn-modern-danger {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-modern-danger:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-1px);
}

.me-1 {
  margin-right: 4px;
}

.me-2 {
  margin-right: 8px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: 24px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.content-wrapper {
  padding: 0 2rem 2rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, var(--primary), #2eaa8a);
  border: none;
  padding: 1.5rem;
}

.card-title {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.card-title i {
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.card-body {
  padding: 2rem;
}

/* Form Styling */
.form-label {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(60, 189, 161, 0.25);
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
}

.input-group-text {
  background-color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-right: none;
  color: var(--primary);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #2eaa8a;
  border-color: #2eaa8a;
  transform: translateY(-2px);
}

.btn-outline-danger:hover {
  transform: translateY(-2px);
}

/* Action Card */
.action-card .card-body {
  padding: 2rem;
}

.danger-zone {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--card-bg);
  border: 1px solid #fed7d7;
  border-radius: 8px;
}

.danger-zone h6 {
  margin-bottom: 0.75rem;
}

/* Profile Summary */
.profile-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-primary);
}

.profile-avatar {
  font-size: 4rem;
  color: var(--text-primary);
}

.profile-summary .card-body h6 {
  color: var(--bg-color);
  font-weight: 600;
}

/* Password Strength */
.password-strength {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--text-primary);
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 0;
  }

  .header-section {
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .header-section h2 {
    font-size: 1.2rem;
    margin-bottom: 3px;
    font-weight: 600;
  }

  .header-section h2 i {
    font-size: 0.8rem;
    margin-right: 4px;
  }

  .header-section p {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .header-section .btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 500;
  }

  .header-section .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px;
  }

  .header-section .btn {
    align-self: flex-end;
  }

  .modern-card {
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .card-header-modern {
    padding: 12px 15px;
  }

  .card-header-modern h6 {
    font-size: 0.75rem;
    font-weight: 500;
  }

  .card-body-modern {
    padding: 15px;
  }

  .form-group-modern {
    margin-bottom: 15px;
  }

  .form-label-modern {
    font-size: 0.7rem;
    margin-bottom: 4px;
    font-weight: 500;
  }

  .form-control-modern {
    padding: 6px 8px;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  .form-text-muted {
    font-size: 0.65rem;
    margin-top: 3px;
  }

  .form-check-modern {
    padding: 10px;
    margin-bottom: 12px;
  }

  .form-check-label-modern {
    font-size: 0.75rem;
    margin-left: 6px;
  }

  .btn-modern-primary {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .danger-zone {
    margin-top: 20px;
    padding-top: 15px;
  }

  .danger-title {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .danger-text {
    font-size: 0.7rem;
    margin-bottom: 10px;
  }

  .btn-modern-danger {
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 500;
  }

  .password-section {
    margin-top: 15px;
    padding-top: 15px;
  }

  .password-info {
    padding: 8px 12px;
    font-size: 0.65rem;
    margin-top: 10px;
  }
}

/* Ultra-compact styles for very small screens with minimal text sizes */
/* @media (max-width: 480px) {
  .header-section {
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 4px;
  }

  .header-section h2 {
    font-size: 0.8rem;
    margin-bottom: 2px;
    font-weight: 600;
  }

  .header-section h2 i {
    font-size: 0.7rem;
    margin-right: 3px;
  }

  .header-section p {
    font-size: 0.6rem;
    line-height: 1.0;
  }

  .header-section .btn {
    padding: 3px 6px;
    font-size: 0.6rem;
  }

  .modern-card {
    border-radius: 6px;
    margin-bottom: 8px;
  }

  .card-header-modern {
    padding: 8px 12px;
  }

  .card-header-modern h6 {
    font-size: 0.65rem;
  }

  .card-body-modern {
    padding: 12px;
  }

  .form-group-modern {
    margin-bottom: 10px;
  }

  .form-label-modern {
    font-size: 0.6rem;
    margin-bottom: 3px;
  }

  .form-control-modern {
    padding: 4px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
  }

  .form-text-muted {
    font-size: 0.55rem;
    margin-top: 2px;
  }

  .form-check-modern {
    padding: 8px;
    margin-bottom: 8px;
  }

  .form-check-label-modern {
    font-size: 0.65rem;
    margin-left: 4px;
  }

  .btn-modern-primary {
    padding: 6px 12px;
    font-size: 0.65rem;
  }

  .danger-zone {
    margin-top: 15px;
    padding-top: 12px;
  }

  .danger-title {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .danger-text {
    font-size: 0.6rem;
    margin-bottom: 8px;
  }

  .btn-modern-danger {
    padding: 4px 8px;
    font-size: 0.6rem;
  }

  .password-info {
    padding: 6px 8px;
    font-size: 0.55rem;
    margin-top: 8px;
  }
} */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2eaa8a;
}
