/* styles.css - Versão Otimizada */
:root {
  --primary-blue: #3b82f6;
  --primary-dark: #1e40af;
  --success-green: #10b981;
  --success-dark: #059669;
  --warning-orange: #f59e0b;
  --warning-dark: #d97706;
  --danger-red: #ef4444;
  --danger-dark: #dc2626;
  --secondary-gray: #6b7280;
  --secondary-dark: #4b5563;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --border-radius: 0.5rem;
  --border-radius-sm: 0.25rem;
}

/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  min-height: 100vh;
}

/* LAYOUT */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* GRID SYSTEM */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
  .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-lg-4 { grid-template-columns: repeat(4, 1fr); }
}

/* TYPOGRAPHY */
.text-3xl { font-size: 1.875rem; font-weight: 700; }
.text-2xl { font-size: 1.5rem; font-weight: 700; }
.text-xl { font-size: 1.25rem; font-weight: 700; }
.text-lg { font-size: 1.125rem; font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.text-center { text-align: center; }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-blue-600 { color: var(--primary-dark); }
.text-red-600 { color: var(--danger-dark); }
.text-green-600 { color: var(--success-dark); }

/* FLEXBOX UTILITIES */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* SPACING */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

.mr-1 { margin-right: 0.25rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* BORDERS & BACKGROUNDS */
.rounded-lg { border-radius: var(--border-radius); }
.rounded { border-radius: 6px; }

.border-2 { border-width: 2px; }
.border-gray-200 { border-color: var(--gray-200); }
.border-blue-300 { border-color: #93c5fd; }
.border-green-300 { border-color: #86efac; }

.bg-blue-50 { background-color: #eff6ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }

/* BUTTONS BASE */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--border-radius);
}

/* BUTTON SIZES */
.btn {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 36px;
}

.btn-small {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  min-width: 28px;
  min-height: 28px;
}

.btn-compact {
  padding: 6px 12px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  min-height: 32px !important;
  min-width: 100px !important;
}

/* BUTTON COLORS */
.btn-primary {
  background: var(--primary-blue) !important;
  color: white !important;
}

.btn-primary:hover:not([disabled]) {
  background: var(--primary-dark) !important;
}

.btn-success {
  background: var(--success-green) !important;
  color: white !important;
}

.btn-success:hover:not([disabled]) {
  background: var(--success-dark) !important;
}

.btn-warning {
  background: var(--warning-orange) !important;
  color: white !important;
}

.btn-warning:hover:not([disabled]) {
  background: var(--warning-dark) !important;
}

.btn-secondary {
  background: var(--secondary-gray) !important;
  color: white !important;
}

.btn-secondary:hover:not([disabled]) {
  background: var(--secondary-dark) !important;
}

.btn-danger {
  background: var(--danger-red) !important;
  color: white !important;
}

.btn-danger:hover:not([disabled]) {
  background: var(--danger-dark) !important;
}

/* BUTTON STATES */
.btn[disabled],
.btn-compact[disabled] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.btn-small {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
}

.btn-small:hover {
  background: var(--gray-200);
}

/* FORM ELEMENTS */
.input-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

input, select {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* STATUS BADGES */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-active {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-completed {
  background-color: #e5e7eb;
  color: #374151;
}

/* ACTIVE WARNING */
.active-warning {
  background: #fef3c7;
  border: 2px solid var(--warning-orange);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 1rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.active-warning i {
  font-size: 16px;
  flex-shrink: 0;
}

/* DATA CARD */
.data-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid #667eea;
}

.data-key {
  font-weight: bold;
  color: #333;
}

.data-value {
  color: #666;
  font-family: 'Courier New', monospace;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
  overflow-x: auto;
}

/* UTILITIES */
.hidden {
  display: none;
}

.opacity-50 {
  opacity: 0.6;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

/* ICONS */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.btn i,
.btn-small i,
.btn-compact i {
  font-size: 12px;
  margin-right: 4px;
}

/* LAYOUT SPECIFIC */
.flex-col {
  gap: 6px;
  min-width: 120px;
}

/* Adicione ao final do styles.css */

/* Estilos para rampas */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.to-indigo-50 {
    --tw-gradient-to: #eef2ff;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-800 {
    color: #1e40af;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.text-red-600 {
    color: #dc2626;
}

/* Modal */
.fixed {
    position: fixed;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
}

/* Espaçamento adicional */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.mt-8 {
    margin-top: 2rem;
}

.flex-1 {
    flex: 1 1 0%;
}

.card {
    /* ... seus estilos atuais ... */
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cursor-pointer {
    cursor: pointer;
}

/* Estilos para badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-active {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.badge-waiting {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.badge-completed {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.badge-pending {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Estilo para cards clicáveis */
.card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card.clickable:active {
    transform: translateY(0);
}

.card.clickable::after {
    content: '⚡';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card.clickable:hover::after {
    opacity: 1;
}

/* Adicione ao seu arquivo CSS existente */
.btn-compact {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-compact:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.opacity-50 {
    opacity: 0.5;
}

.cursor-not-allowed {
    cursor: not-allowed;
}