/* Jira Projects Dashboard Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #667eea;
  --primary-dark: #764ba2;
  --secondary: #6c757d;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray-100: #f6f8fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
}

/* Dashboard Container */
.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.dashboard-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.header-content p {
  font-size: 16px;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Navigation Tabs */
.dashboard-nav {
  background: white;
  border-bottom: 2px solid var(--gray-200);
  padding: 0 40px;
  display: flex;
  gap: 8px;
}

.nav-tab {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-tab:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Main Content */
.dashboard-main {
  flex: 1;
  padding: 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.view-content {
  display: none;
}

.view-content.active {
  display: block;
}

.view-header {
  margin-bottom: 32px;
}

.view-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.view-subtitle {
  font-size: 16px;
  color: var(--gray-600);
}

/* Calendar */
.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.calendar-title {
  font-size: 20px;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.calendar-weekday {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  padding: 12px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  position: relative;
}

.calendar-day.empty {
  cursor: default;
  opacity: 0;
}

.calendar-day:not(.empty):hover {
  background: var(--gray-100);
}

.calendar-day.has-report {
  background: #e3f2fd;
  color: var(--primary);
  font-weight: 600;
}

.calendar-day.has-report::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.calendar-day.has-report:hover {
  background: var(--primary);
  color: white;
}

.calendar-day.today {
  border-color: var(--primary);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--gray-600);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.has-report {
  background: var(--primary);
}

.legend-dot.no-report {
  background: var(--gray-300);
}

.legend-dot.today {
  border: 2px solid var(--primary);
  background: white;
}

/* Date Selector */
.date-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.nav-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-300);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.nav-arrow:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-100);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-picker-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-dropdown {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.date-dropdown:hover {
  border-color: var(--primary);
}

.date-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Report Container */
.report-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 16px;
  color: var(--gray-600);
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.loading-state p {
  font-size: 16px;
  color: var(--gray-600);
}

/* About Section */
.about-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.about-section {
  margin-bottom: 40px;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gray-800);
}

.about-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.about-section ul {
  list-style: none;
  padding-left: 0;
}

.about-section li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.about-section li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-weight: bold;
}

.about-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.about-section a:hover {
  text-decoration: underline;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
}

.metric-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 13px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .dashboard-nav {
    overflow-x: auto;
    padding: 0 20px;
  }

  .dashboard-main {
    padding: 20px;
  }

  .calendar-grid {
    gap: 4px;
    padding: 16px;
  }

  .calendar-day {
    font-size: 12px;
  }

  .date-selector {
    flex-direction: column;
    gap: 12px;
  }

  .nav-arrow {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
