/* SalesPro - Sales Pipeline Management Application Styles */

/* Application layout */
html, body, #app, .v-application, .v-application__wrap {
  min-height: 100vh;
  position: relative;
}

.v-footer--absolute {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Custom theme overrides and adjustments */
:root {
  --blue-accent: #1976d2;
  --blue-accent-light: #64b5f6;
  --green-accent: #4caf50;
  --green-accent-light: #81c784;
  --amber-accent: #ffc107;
  --red-accent: #f44336;
  --purple-accent: #9c27b0;
  --cyan-accent: #00bcd4;
  --grey-border: rgba(0, 0, 0, 0.12);
  --card-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
}

[data-theme="dark"] {
  --grey-border: rgba(255, 255, 255, 0.12);
}

/* Global Styles */
.theme-toggle-icon {
  transform: rotate(0deg);
  transition: transform 0.5s ease-in-out;
}

.theme-toggle-icon--dark {
  transform: rotate(180deg);
}

/* Hide screen reader only text but keep it available for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Format helper for form inputs */
.format-helper {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  margin-top: -12px;
  margin-left: 12px;
}

[data-theme="dark"] .format-helper {
  color: rgba(255, 255, 255, 0.7);
}

/* Pipeline specific styles */
.pipeline-stage {
  min-height: 300px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.pipeline-stage-header {
  font-weight: bold;
  padding: 12px 16px;
  border-bottom: 1px solid var(--grey-border);
}

.pipeline-card {
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.pipeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.stage-new .pipeline-stage-header {
  background-color: var(--blue-accent-light);
  color: white;
}

.stage-qualified .pipeline-stage-header {
  background-color: var(--cyan-accent);
  color: white;
}

.stage-proposition .pipeline-stage-header {
  background-color: var(--purple-accent);
  color: white;
}

.stage-negotiation .pipeline-stage-header {
  background-color: var(--amber-accent);
  color: black;
}

.stage-won .pipeline-stage-header {
  background-color: var(--green-accent);
  color: white;
}

.stage-lost .pipeline-stage-header {
  background-color: var(--red-accent);
  color: white;
}

/* Dashboard metrics */
.metric-card {
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
}

.metric-trend-up {
  color: var(--green-accent);
}

.metric-trend-down {
  color: var(--red-accent);
}

/* Contact indicator badges */
.contact-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  margin-right: 8px;
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .contact-badge {
  color: rgba(255, 255, 255, 0.7);
}

.contact-badge .v-icon {
  margin-right: 4px;
  font-size: 16px;
}

/* Lead quality indicators */
.lead-hot {
  border-left: 4px solid var(--red-accent);
}

.lead-warm {
  border-left: 4px solid var(--amber-accent);
}

.lead-cold {
  border-left: 4px solid var(--blue-accent-light);
}

/* Activity timeline styles */
.activity-timeline {
  position: relative;
  padding-left: 36px;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background-color: var(--grey-border);
}

.activity-item {
  position: relative;
  padding-bottom: 16px;
}

/* Remove scrollbars from detail view */
.v-dialog--active .v-card {
  max-height: none;
  overflow: visible;
}

.v-dialog--active .v-card-text {
  overflow: visible;
}

/* Prevent address overflow in contact card */
.v-card-text a,
.v-card-text div {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Add additional padding to contact information cards */
.v-card-text .d-flex.align-start {
  padding-right: 8px;
  margin-bottom: 16px;
}

.activity-icon {
  position: absolute;
  left: -36px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px white;
  z-index: 1;
}

[data-theme="dark"] .activity-icon {
  background-color: #121212;
  box-shadow: 0 0 0 3px #121212;
}

.activity-date {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Drag and drop styles for pipeline */
.pipeline-draggable {
  cursor: move;
  user-select: none;
}

.pipeline-drop-zone {
  min-height: 100px;
  transition: background-color 0.2s ease;
}

.pipeline-drop-zone.highlight {
  background-color: rgba(25, 118, 210, 0.1);
}