@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg-deep:      #0f0a07;
  --bg-mahogany:  #1d120c;
  --bg-card:      rgba(35, 22, 16, 0.7);
  --bg-input:     rgba(255, 255, 255, 0.04);
  --bg-hover:     rgba(255, 255, 255, 0.04);
  --gold:         #d4af37;
  --gold-glow:    rgba(212, 175, 55, 0.3);
  --orange:       #f08a29;
  --text-primary: #f5f0e8;
  --text-secondary: #c9b9a8;
  --text-muted:   rgba(201, 185, 168, 0.45);
  --border:       rgba(212, 175, 55, 0.15);
  --glass-border: rgba(255, 255, 255, 0.05);
  --success:      #4caf50;
  --error:        #ff5252;
  --radius:       12px;
  --radius-lg:    16px;
  --sidebar-width: 280px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(240, 138, 41, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Glassmorphism */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Login Page Styles */
.login-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-image: url('../assets/luxury_bg.png'); /* We'll use the generated image */
  background-size: cover;
  background-position: center;
  position: relative;
}

.login-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 7, 0.7);
  z-index: 1;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 48px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.login-card header h1 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--gold-glow);
}

.login-card header p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 1px;
}

.form-group {
  text-align: left;
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
  margin-left: 4px;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(240, 138, 41, 0.1);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--orange), #d37115);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(240, 138, 41, 0.2);
}

/* Dashboard Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: var(--bg-mahogany);
  border-right: 1px solid var(--border);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 50px;
  padding-left: 15px;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  background: rgba(240, 138, 41, 0.1);
  color: var(--orange);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 40px 60px;
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  padding: 24px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: white;
}

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

/* ── Selects globais — fundo escuro em todas as páginas ── */
select {
  background-color: #1d120c !important;
  color: var(--text-primary);
}
select option {
  background-color: #1d120c;
  color: #f5f0e8;
}
select option:checked,
select option:hover {
  background-color: #2d1a0e;
}