/* DashboardCV Component Styles */

/* CSS Variables for consistent theming */
:root {
  /* Color Palette - Professional Dark Theme */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  --bg-active: #475569;

  /* Accent Colors */
  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-secondary: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #1e293b;

  /* Border Colors */
  --border-primary: #334155;
  --border-secondary: #475569;
  --border-accent: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CV Section */
.cvSection {
  padding: var(--spacing-xl);
}

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.sectionHeader h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* CV Container */
.cvContainer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
}

/* Card Styles */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.cardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.cardHeader h3 {
  margin-bottom: 0;
}

/* Upload Area */
.uploadArea {
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uploadArea:hover,
.uploadArea.dragActive {
  border-color: var(--accent-primary);
  background-color: rgba(59, 130, 246, 0.05);
}

.uploadPlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  color: var(--text-muted);
}

.uploadPlaceholder h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.uploadPlaceholder p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.uploadPlaceholder small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CV Preview */
.cvPreview {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.cvInfo {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background-color: var(--bg-hover);
  border-radius: var(--radius-md);
  position: relative;
}

.cvIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--accent-primary);
  border-radius: var(--radius-md);
  color: white;
  flex-shrink: 0;
}

.cvDetails {
  flex: 1;
}

.cvDetails h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-xs) 0;
  word-break: break-word;
}

.cvDetails p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.removeBtn {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background-color: var(--accent-danger);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.removeBtn:hover {
  background-color: #dc2626;
}

.cvActions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Instructions */
.instructions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.instructions li {
  padding: var(--spacing-sm) 0;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: var(--spacing-lg);
}

.instructions li::before {
  content: "•";
  color: var(--accent-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Button Styles */
.btnPrimary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-primary-hover)
  );
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
}

.btnPrimary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btnSecondary {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
}

.btnSecondary:hover {
  background-color: var(--bg-active);
  border-color: var(--border-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cvContainer {
    grid-template-columns: 1fr;
  }

  .uploadArea {
    min-height: 200px;
    padding: var(--spacing-xl);
  }

  .uploadPlaceholder h4 {
    font-size: 1.1rem;
  }

  .uploadPlaceholder p {
    font-size: 0.9rem;
  }

  .cvInfo {
    flex-direction: column;
    text-align: center;
  }

  .cvActions {
    flex-direction: column;
  }

  .sectionHeader {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }
}

/* Loading Container */
.loadingContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #495057;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Success Message */
.successMessage {
  padding: 15px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Error Message */
.errorMessage {
  padding: 15px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Disabled state for upload area */
.uploadArea.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Disabled state for buttons */
.btnPrimary:disabled,
.btnSecondary:disabled,
.removeBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
