/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de cores - Nova Identidade MonetizaDark */
  --gold-metallic: #ffd700;
  --gold-secondary: #ffb800;
  --black-deep: #0d0d0d;
  --gray-graphite: #2e2e2e;
  --blue-digital: #0097d8;
  --white: #ffffff;
  --gray-light: #999999;
  --gray-border: #404040;
  --success: #22c55e;
  --error: #dc2626;
  --warning: #f59e0b;

  /* Gradientes atualizados */
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
  --gradient-gold-hover: linear-gradient(135deg, #ffe44d 0%, #ffc933 100%);
  --gradient-dark: linear-gradient(135deg, #0d0d0d 0%, #2e2e2e 100%);
  --gradient-blue: linear-gradient(135deg, #0097d8 0%, #006ba6 100%);
  --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --gradient-error: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);

  /* Sombras com nova paleta */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-gold-intense: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3);
  --shadow-blue: 0 0 20px rgba(0, 151, 216, 0.3);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);

  /* Transições */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--black-deep);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced container with animated background */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

.auth-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 151, 216, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.auth-card {
  width: 100%;
  max-width: 460px;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced logo with glow effect */
.auth-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
  animation: pulse-glow 3s ease-in-out infinite;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6));
  }
}

.auth-logo p {
  color: var(--gray-light);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Enhanced cards with glassmorphism */
.card {
  background: rgba(46, 46, 46, 0.9);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(30px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: var(--shadow-card-hover), var(--shadow-gold);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

/* Formulários */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--white);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: var(--transition-fast);
}

/* Enhanced input fields with better focus states */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(13, 13, 13, 0.8);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-metallic);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15), 0 0 20px rgba(255, 215, 0, 0.2);
  background: rgba(13, 13, 13, 0.95);
  transform: translateY(-1px);
}

.form-input:focus + .form-label {
  color: var(--gold-metallic);
}

.form-input::placeholder {
  color: var(--gray-light);
  transition: var(--transition-fast);
}

.form-input:focus::placeholder {
  opacity: 0.5;
  transform: translateX(5px);
}

/* Input validation states */
.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.form-input:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

/* Enhanced buttons with advanced effects */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--black-deep);
  box-shadow: var(--shadow-gold);
  position: relative;
  z-index: 1;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-gold-hover);
  opacity: 0;
  transition: var(--transition);
  border-radius: 10px;
  z-index: -1;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-intense);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(46, 46, 46, 0.8);
  color: var(--white);
  border: 1px solid var(--gray-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(64, 64, 64, 0.9);
  border-color: var(--gold-metallic);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-danger {
  background: var(--gradient-error);
  color: var(--white);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--white);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

/* Button sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Enhanced alerts with icons and animations */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  animation: slideInDown 0.4s ease-out;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.1);
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.alert-info {
  background: rgba(0, 151, 216, 0.15);
  border: 1px solid rgba(0, 151, 216, 0.4);
  color: #7dd3fc;
  box-shadow: 0 0 20px rgba(0, 151, 216, 0.1);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

/* Layout principal */
.main-container {
  min-height: 100vh;
  background: var(--black-deep);
  position: relative;
}

.main-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 151, 216, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Enhanced header with glassmorphism */
.header {
  background: rgba(46, 46, 46, 0.85);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  padding: 1rem 0;
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Enhanced logo with animation */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: -0.025em;
}

.logo:hover {
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Enhanced navigation links */
.nav-links a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold-metallic);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links span {
  color: var(--gray-light);
  font-size: 0.875rem;
}

/* Conteúdo principal */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Enhanced page title */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.2));
  animation: fadeInUp 0.6s ease-out;
  letter-spacing: -0.025em;
}

/* Enhanced grid with better animations */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.course-card {
  background: rgba(46, 46, 46, 0.85);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  position: relative;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 151, 216, 0.1) 100%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.course-card:nth-child(1) {
  animation-delay: 0.1s;
}
.course-card:nth-child(2) {
  animation-delay: 0.2s;
}
.course-card:nth-child(3) {
  animation-delay: 0.3s;
}
.course-card:nth-child(4) {
  animation-delay: 0.4s;
}
.course-card:nth-child(5) {
  animation-delay: 0.5s;
}
.course-card:nth-child(6) {
  animation-delay: 0.6s;
}

.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card-hover), var(--shadow-gold);
  border-color: var(--gold-metallic);
}

.course-card:hover::before {
  opacity: 1;
}

/* Enhanced course image with overlay */
.course-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  position: relative;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 151, 216, 0.1) 100%);
  opacity: 0;
  transition: var(--transition);
}

.course-card:hover .course-image::before {
  opacity: 1;
}

.course-content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
  transition: var(--transition);
}

.course-card:hover .course-title {
  color: var(--gold-metallic);
}

.course-description {
  color: var(--gray-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Enhanced modules list */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.module-card {
  background: rgba(46, 46, 46, 0.85);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-gold);
  transform: scaleY(0);
  transition: var(--transition);
}

.module-card:hover {
  border-color: var(--gold-metallic);
  transform: translateX(8px);
  box-shadow: var(--shadow-card);
}

.module-card:hover::before {
  transform: scaleY(1);
}

.module-card.completed {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.module-card.completed::before {
  background: var(--gradient-success);
  transform: scaleY(1);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.module-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.module-card:hover .module-title {
  color: var(--gold-metallic);
}

/* Enhanced status badges */
.module-status {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.module-status.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.module-status.pending {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold-metallic);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.module-description {
  color: var(--gray-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Enhanced video container */
.video-container {
  background: var(--black-deep);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.video-player {
  width: 100%;
  height: auto;
  min-height: 400px;
  background: var(--black-deep);
}

/* Enhanced tables */
.table-container {
  background: rgba(46, 46, 46, 0.85);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(64, 64, 64, 0.5);
}

.table th {
  background: rgba(13, 13, 13, 0.8);
  font-weight: 600;
  color: var(--gold-metallic);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.table tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background: rgba(255, 215, 0, 0.08);
}

.table tr:last-child td {
  border-bottom: none;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-error {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
  background: rgba(0, 151, 216, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(0, 151, 216, 0.3);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: rgba(46, 46, 46, 0.95);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: var(--shadow-card-hover);
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-metallic);
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

/* Utilitários */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.5rem;
}
.mt-6 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.5rem;
}
.mb-6 {
  margin-bottom: 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.5rem;
}
.gap-6 {
  gap: 2rem;
}

.w-full {
  width: 100%;
}

.hidden {
  display: none;
}

/* Enhanced loading states */
.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-top-color: var(--gold-metallic);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, rgba(46, 46, 46, 0.8) 25%, rgba(64, 64, 64, 0.8) 50%, rgba(46, 46, 46, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(46, 46, 46, 0.8);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 4px;
  transition: width 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-border), transparent);
  margin: 2rem 0;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-graphite);
  border-radius: 5px;
  border: 2px solid var(--black-deep);
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
}

/* Selection styling */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: var(--white);
}

::-moz-selection {
  background: rgba(255, 215, 0, 0.3);
  color: var(--white);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--gold-metallic);
  outline-offset: 2px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-light);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.empty-state-description {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  background: rgba(13, 13, 13, 0.95);
  color: var(--white);
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  border: 1px solid var(--gray-border);
  opacity: 0;
  transition: var(--transition);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Admin access button */
.admin-access-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  color: #0d0d0d;
  border-radius: 50%;
  border: none;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.admin-access-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.admin-access-btn:active {
  transform: scale(0.95);
}

/* Responsividade */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-card {
    max-width: 100%;
  }

  .auth-logo h1 {
    font-size: 2rem;
  }

  .card {
    padding: 2rem;
  }

  .admin-access-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-logo h1 {
    font-size: 1.75rem;
  }

  .card {
    padding: 1.5rem;
  }
}
