/* Kaizen Painting LLC — Custom Theme Variables */
/* Compatible con cualquier servidor (DreamHost, Apache, etc.) */

:root {
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-light: rgba(99, 102, 241, 0.1);
  --color-brand-dark: #ffffff;
  --color-brand-gray: #27272a;
  --color-brand-cream: #18181b;
  --color-bg-base: #09090b;
  --color-bg-surface: #18181b;
  --color-bg-surface-hover: #27272a;
  --color-border: rgba(255, 255, 255, 0.1);
  --font-sans: 'Outfit', ui-sans-serif, system-ui, sans-serif;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  background-color: var(--color-bg-base);
  color: #ffffff;
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar oculta */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Animaciones CSS estándar (antes requerían Tailwind animate-in) */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInFromTop {
  from { transform: translateY(-1rem); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes slideInFromRight {
  from { transform: translateX(1rem); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInFromLeft {
  from { transform: translateX(-1rem); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes zoomIn95 {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Clases de utilidad de animación (reemplazan animate-in de Tailwind) */
.animate-in { animation-duration: 250ms; animation-fill-mode: both; animation-timing-function: ease-out; }
.fade-in            { animation-name: fadeIn; }
.slide-in-from-top-4  { animation-name: slideInFromTop; }
.slide-in-from-right-4{ animation-name: slideInFromRight; }
.slide-in-from-left   { animation-name: slideInFromLeft; }
.zoom-in-95         { animation-name: zoomIn95; }
.duration-300       { animation-duration: 300ms; }

/* Dashboard Premium Components */
.card-premium {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-premium:hover {
  border-color: rgba(0, 114, 188, 0.2);
  transform: translateY(-2px);
}

.attendance-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.attendance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); /* Inactive dots explicitly visible */
  transition: all 0.3s ease;
}

.attendance-dot.active {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.bg-gradient-premium {
  /* Exact gradient requested: Blue top-left to Orange bottom-right */
  background: linear-gradient(135deg, #0072BC 0%, #004D80 50%, #F78F1E 100%);
  border: none !important; /* Eliminate border clipping/misalignment issues */
}

.gradient-text {
  background: linear-gradient(135deg, #0072BC, #F78F1E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-premium {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.progress-premium-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard Grid System (Fix for missing Tailwind classes) */
.dash-grid-12 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 1024px) {
  .dash-grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .dash-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.span-3 { grid-column: span 1 / span 1; }
.span-4 { grid-column: span 1 / span 1; }
.span-5 { grid-column: span 1 / span 1; }
.span-12 { grid-column: span 1 / span 1; }

@media (min-width: 1024px) {
  .span-3 { grid-column: span 3 / span 3; }
  .span-4 { grid-column: span 4 / span 4; }
  .span-5 { grid-column: span 5 / span 5; }
  .span-12 { grid-column: span 12 / span 12; }
}

/* Custom Spacing & Fixes */
.hero-stats-container {
  display: flex;
  gap: 3rem;
}

@media (max-width: 768px) {
  .hero-stats-container {
    display: none; /* Hide on mobile to save space if needed, or stack */
  }
  .bg-hero-dashboard {
    padding: 2rem !important;
    height: auto !important;
    min-height: 300px;
  }
}

.card-premium {
  min-height: 200px;
}

.progress-premium {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.h-half { height: 50%; }
.rotate-45 { transform: rotate(45deg); }

.bg-hero-dashboard {
  /* Improved gradient transition to eliminate bottom gap and blend perfectly with dark theme */
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  
  /* Exotic Gradient Border Effect */
  border: 2px solid transparent;
  background-image: url('../imagen/41811.webp'),
                    linear-gradient(135deg, #0072BC, #F78F1E);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: cover, auto;
  background-position: center, center;
}

/* Background overlay pseudo-element for professional branding depth */
.bg-hero-dashboard::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, var(--color-bg-base) 0%, rgba(9, 9, 11, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Calendar Layout Overrides */
.calendar-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .calendar-layout {
    flex-direction: row;
    height: calc(100vh - 120px) !important;
    min-height: 600px;
    overflow: hidden;
  }
}

.calendar-sidebar {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .calendar-sidebar {
    width: 380px;
    height: 100%;
    overflow-y: auto;
  }
}

.calendar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .calendar-main {
    height: 100%;
    overflow: hidden;
  }
}

.calendar-grid-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Stats Badges (Budget/Duration) */
.stats-badge-container {
  display: flex;
  gap: 1rem;
}

.stats-badge {
  background: #1A1A1A;
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.stats-badge-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  color: #71717a;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.stats-badge-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

/* Worker card refinement */
.worker-card-premium {
  background: #1A1A1A;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.worker-card-premium:hover {
  border-color: rgba(0, 114, 188, 0.3);
  background: #1e1e1e;
}

.worker-performance-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.worker-performance-fill {
  height: 100%;
  background: #0072BC;
  box-shadow: 0 0 8px rgba(0, 114, 188, 0.4);
  transition: width 1s ease-out;
}

/* Project Color Selection Checkmarks */
.project-color-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-color-option input:checked + .color-circle * {
  opacity: 1;
  transform: scale(1);
}

.color-circle * {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: white;
  pointer-events: none;
}

