/* app/styles/app.css or similar */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg-main: #f8fafc;
  --sidebar-bg: #1e293b;
  --sidebar-text: #f1f5f9;
  --text-main: #334155;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  
  /* Nexus Theme */
  --nexus-dark: #0d0f12;
  --nexus-gold: #ff9d00;
  --nexus-gold-dim: #cc7a00;
  --nexus-card-bg: rgba(20, 22, 26, 0.85);
  --nexus-input-bg: rgba(255, 255, 255, 0.05);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--sidebar-text);
  opacity: 0.8;
  transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-bar {
  height: 64px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
}

.content-area {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

/* Login Page - Nexus Style */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--nexus-dark);
  position: relative;
  overflow: hidden;
}

.login-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-card {
  position: absolute;
  width: 140px;
  height: 196px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 157, 0, 0.1) 0%, rgba(255, 157, 0, 0.02) 100%);
  border: 1px solid rgba(255, 157, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 157, 0, 0.1);
  animation: float 10s infinite ease-in-out;
  opacity: 0.6;
}

.floating-card::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.login-card {
  z-index: 10;
  width: 100%;
  max-width: 420px;
  padding: 3rem;
  background: var(--nexus-card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 157, 0, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 157, 0, 0.05);
  color: white;
}

.nexus-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--nexus-gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.nexus-header {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nexus-divider {
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--nexus-gold), transparent);
  margin: 0 auto 2rem;
}

.nexus-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.nexus-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.nexus-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--nexus-input-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: white;
  transition: all 0.3s;
  box-sizing: border-box;
}

.nexus-input:focus {
  outline: none;
  border-color: var(--nexus-gold);
  background: rgba(255, 157, 0, 0.05);
}

.nexus-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nexus-gold);
  opacity: 0.7;
}

.btn-nexus {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(to bottom, #ff9d00, #e67e00);
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 10px 20px rgba(230, 126, 0, 0.2);
  transition: all 0.3s;
}

.btn-nexus:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(230, 126, 0, 0.3);
  filter: brightness(1.1);
}

.btn-nexus:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Kanban Board */
.sales-board {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.board-header { margin-bottom: 2rem; }
.kanban-columns {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.kanban-column {
  flex: 1;
  min-width: 300px;
  background: #f1f5f9;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kanban-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  border-left: 4px solid var(--primary);
}
.kanban-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.card-top { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.folio { font-size: 0.8rem; font-weight: bold; color: #64748b; }
.card-body { display: flex; justify-content: space-between; align-items: center; }
.amount { font-weight: bold; color: #10b981; }

/* Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-value { font-size: 2rem; font-weight: 800; margin-top: 0.5rem; }
.text-green { color: #10b981; }
.text-amber { color: #f59e0b; }
.text-blue { color: #3b82f6; }
.top-products-list { list-style: none; padding: 0; }
.top-products-list li { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid #e2e8f0; }

/* Detail Panel */
.sales-detail-panel { max-width: 800px; }
.status-badge { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-scheduled { background: #dbeafe; color: #2563eb; }
.status-completed { background: #d1fae5; color: #059669; }
.status-cancelled { background: #fee2e2; color: #dc2626; }
.btn-success { background: #10b981; color: white; border: none; padding: 0.5rem 1rem; border-radius: 0.25rem; cursor: pointer; }
.btn-danger { background: #ef4444; color: white; border: none; padding: 0.5rem 1rem; border-radius: 0.25rem; cursor: pointer; }
.btn-whatsapp { display: inline-block; background: #25D366; color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 0.25rem; font-weight: bold; margin-top: 1rem; }
.action-buttons { display: flex; gap: 1rem; margin-top: 1rem; }
