/* ============================================
   Gansynor Dashboard — Audi-Inspired Theme
   Vuetify 3 Custom Overrides
   Colors: Black, White, Progressive Red (#F50537)
   ============================================ */

/* --- Audi Typography & Base --- */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Login page background */
.v-application .fill-height {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
}

/* Accent color for active elements */
.v-list-item--active .v-list-item__prepend .v-icon {
  color: #F50537 !important;
}

/* --- Timeline / Calendar Styles --- */
.tl-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
}

.tl-nav-label {
  font-size: 18px;
  font-weight: 500;
  min-width: 200px;
  text-align: center;
}

.tl-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tl-header-row {
  display: flex;
  border-bottom: 2px solid rgba(var(--v-border-color), var(--v-border-opacity));
  position: sticky;
  top: 0;
  z-index: 10;
}

.tl-header-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tl-day-headers {
  display: flex;
  flex: 1;
}

.tl-day-header {
  flex: 1;
  min-width: 28px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 2px;
  border-left: 1px solid rgba(var(--v-border-color), 0.12);
}

.tl-day-header.tl-weekend {
  opacity: 0.5;
}

.tl-day-header.tl-today {
  background: rgba(245, 5, 55, 0.1);
  color: #F50537;
  font-weight: 700;
}

.tl-dev-name {
  width: 180px;
  min-width: 180px;
  padding: 8px 12px;
  font-size: 13px;
  border-right: 2px solid rgba(var(--v-border-color), 0.12);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-project-header {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.tl-project-header .tl-dev-name {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tl-row {
  display: flex;
  border-bottom: 1px solid rgba(var(--v-border-color), 0.08);
  min-height: 36px;
}

.tl-cells-row {
  flex: 1;
  display: flex;
  position: relative;
  min-height: 36px;
}

.tl-cell {
  flex: 1;
  min-width: 28px;
  border-left: 1px solid rgba(var(--v-border-color), 0.08);
  min-height: 36px;
}

.tl-cell.tl-weekend {
  opacity: 0.5;
}

.tl-cell.tl-today-col {
  background: rgba(245, 5, 55, 0.04);
}

.tl-bar {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  overflow: hidden;
  cursor: default;
  transition: opacity 0.15s;
  z-index: 2;
  min-height: 24px;
}

.tl-bar:hover {
  opacity: 0.85;
  z-index: 5;
}

.tl-bar-label {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* --- Kanban Board Styles --- */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 400px;
  align-items: flex-start;
}

.kanban-column {
  min-width: 300px;
  max-width: 340px;
  flex-shrink: 0;
}

.kanban-column-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .tl-dev-name {
    width: 120px;
    min-width: 120px;
    font-size: 11px;
    padding: 6px 8px;
  }
  .tl-day-header {
    min-width: 20px;
    font-size: 9px;
    padding: 4px 1px;
  }
  .tl-cell {
    min-width: 20px;
  }
  .tl-nav-label {
    font-size: 14px;
    min-width: 140px;
  }
  .tl-bar-label {
    font-size: 9px;
  }
  .kanban-board {
    flex-direction: column;
    align-items: stretch;
  }
  .kanban-column {
    min-width: auto;
    max-width: none;
  }
}

/* ============================================
   Sneat-Inspired Overrides
   ============================================ */

/* Card styling */
.v-card {
  border-radius: 8px !important;
  box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12) !important;
  transition: box-shadow 0.2s ease;
}

.v-card:hover {
  box-shadow: 0 4px 12px 0 rgba(67, 89, 113, 0.16) !important;
}

/* Navigation drawer */
.v-navigation-drawer {
  border-right: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
  box-shadow: none !important;
}

/* Stat card avatar */
.stat-card .v-avatar {
  border-radius: 8px !important;
}

/* Welcome card gradient overlay */
.welcome-card {
  background: linear-gradient(135deg, #333333 0%, #4a4a4a 100%) !important;
  min-height: 180px;
}

/* App bar flat style */
.v-app-bar {
  box-shadow: none !important;
}

/* Active nav item subtle background */
.v-navigation-drawer .v-list-item--active {
  font-weight: 500;
}

/* Compact progress bars in workload section */
.v-progress-linear {
  border-radius: 4px !important;
}

/* Border bottom utility for list items */
.border-b {
  border-bottom: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
}

/* Height utility */
.h-100 {
  height: 100%;
}

/* Cursor pointer utility */
.cursor-pointer {
  cursor: pointer;
}

/* --- Toast Notification Progress Bar --- */
.toast-notification .v-snackbar__wrapper {
  position: relative;
  overflow: hidden;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 30ms linear;
  border-radius: 0 2px 0 0;
}
