/* Custom styles for Projectbook - Matches exact design */

:root {
  /* Colors */
  --primary-text: #212631;
  --secondary-text: #374151;
  --muted-text: #65758B;
  --light-text: #9CA3AF;
  --menu-hover: #F3F5F7;
  --tab-active: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-50: #EFF6FF;
  --green-500: #10B981;
  --yellow-500: #FFC107;
  --status-active-bg: #D1FAE5;
  --status-active-text: #065F46;
  --status-completed-bg: #DBEAFE;
  --status-completed-text: #1E40AF;
  --status-paused-bg: #FEF3C7;
  --status-paused-text: #92400E;
  --border-divider: #E5E7EB;
  --disabled: #9CA3AF;
  
  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Global Typography */
body {
  font-family: var(--font-sans);
  color: var(--primary-text);
}

/* Main content spacing */
main {
  padding-top: 2rem;
}

/*/* Dashboard Hero Section */
.dashboard-hero {
  padding: 32px 0;
}

.dashboard-greeting {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 8px;
}

.dashboard-stats {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--secondary-text);
  margin-bottom: 32px;
}

.dashboard-stats strong {
  font-weight: 700;
  color: var(--primary-text);
}

/* Financial Overview Card */
.financial-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.financial-header {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.45px;
  color: var(--primary-text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.financial-metric {
  margin-bottom: 20px;
}

.financial-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -0.16px;
  color: var(--muted-text);
  margin-bottom: 4px;
}

.financial-value {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.16px;
  color: var(--primary-text);
}

.financial-indicator {
  display: inline-block;
  margin-left: 8px;
  font-size: 14px;
}

.indicator-up {
  color: var(--green-500);
}

.indicator-pending {
  color: var(--yellow-500);
}

/* Custom button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.16px;
  background-color: var(--blue-500);
  color: white;
  height: 44px;
  border-radius: 8px;
  padding: 0 24px;
  transition: background-color 0.15s;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--blue-600);
}

.btn-primary-full {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.16px;
  border: 1.5px solid var(--blue-500);
  color: var(--blue-500);
  background-color: white;
  height: 44px;
  border-radius: 8px;
  padding: 0 24px;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background-color: var(--blue-50);
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-primary-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--blue-500);
  color: white;
  height: 36px;
  border-radius: 6px;
  padding: 0 16px;
  gap: 4px;
  transition: background-color 0.15s;
}

.btn-primary-small:hover {
  background-color: var(--blue-600);
}

/* Status badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  display: inline-block;
}

.status-active {
  background-color: var(--status-active-bg);
  color: var(--status-active-text);
}

.status-completed {
  background-color: var(--status-completed-bg);
  color: var(--status-completed-text);
}

.status-paused {
  background-color: var(--status-paused-bg);
  color: var(--status-paused-text);
}

/* Cards */
.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: none;
}

.card-compact {
  background-color: white;
  border-radius: 8px;
  border: 1px solid var(--border-divider);
}

/*/* Project Cards */
.project-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.project-card-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--primary-text);
}

.project-card-client {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--muted-text);
}

/* Project Status Badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-active {
  background-color: #d1fae5;
  color: #065f46;
}

.status-completed {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-paused {
  background-color: #fef3c7;
  color: #92400e;
}

/* Navigation */
.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.16px;
  color: #4B5563;
  border-radius: 6px;
  transition: background-color 0.15s;
}

.nav-link:hover {
  background-color: var(--menu-hover);
}

.nav-link-active {
  color: var(--tab-active);
  border-bottom: 2px solid var(--tab-active);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-divider);
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.16px;
  font-family: var(--font-sans);
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Progress bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--blue-500);
  transition: width 0.3s ease;
}

/* Section Headers */
.section-header {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.36px;
  color: var(--primary-text);
  margin-bottom: 16px;
}

/*/* Notifications */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.15s;
  cursor: pointer;
}

.notification-item:hover {
  background-color: #f9fafb;
}

.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

/* Dashboard specific overrides */
.dashboard-container {
  background-color: #f9fafb;
  min-height: 100vh;
}

/* Progress bars for projects */
.progress-track {
  width: 100%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

/* Financial card specific */
.financial-overview {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.financial-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-text);
}

.notification-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.21px;
  color: var(--primary-text);
}

.notification-time {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: -0.16px;
  color: var(--muted-text);
}

/* Utility Classes */
.text-primary {
  color: var(--primary-text);
}

.text-secondary {
  color: var(--secondary-text);
}

.text-muted {
  color: var(--muted-text);
}

.text-light {
  color: var(--light-text);
}

/* Icon adjustments */
.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}