/* DeveloperDashboard.css */

/* Main Container */
.developer-dashboard {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.dev-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #f3f4f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #374151;
  font-size: 14px;
  transition: all 0.2s ease;
}

.back-button:hover {
  background-color: #e5e7eb;
}

.dev-dashboard-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

/* Controls Section */
.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.date-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-picker-wrapper span {
  color: #6b7280;
  font-size: 14px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  margin-bottom: 12px;
}

.stat-card h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  margin: 0;
}

.stat-value.green {
  color: #28a745;
}

.stat-value.yellow {
  color: #ffc107;
}

.stat-subtitle {
  font-size: 12px;
  color: #666;
  margin: 4px 0 0 0;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
}

.tab-button {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tab-button.active {
  background: white;
  border-bottom: 2px solid #667eea;
  font-weight: 600;
  color: #667eea;
}

.tab-button:hover:not(.active) {
  color: #374151;
  background-color: #f9fafb;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Chart Container */
.chart-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.chart-container h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reports Section */
.report-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.report-card h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.report-stat-item {
  text-align: center;
  padding: 16px;
  background-color: #f0f9ff;
  border-radius: 8px;
}

.report-stat-item.green {
  background-color: #ecfdf5;
}

.report-stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0ea5e9;
}

.report-stat-item.green .report-stat-value {
  color: #10b981;
}

.report-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 4px;
}

/* Daily Hours List */
.daily-hours-list {
  display: grid;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.daily-hour-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  background-color: #f8fafc;
  border-left: 4px solid;
  transition: background-color 0.2s ease;
}

.daily-hour-item:hover {
  background-color: #f1f5f9;
}

.daily-hour-item.excellent {
  border-left-color: #10b981;
}

.daily-hour-item.good {
  border-left-color: #f59e0b;
}

.daily-hour-item.fair {
  border-left-color: #f97316;
}

.daily-hour-item.low {
  border-left-color: #ef4444;
}

.daily-hour-date {
  font-weight: 500;
  color: #1f2937;
}

.daily-hour-activities {
  font-size: 0.875rem;
  color: #64748b;
  margin-left: 8px;
}

.daily-hour-value {
  font-weight: bold;
}

.daily-hour-value.excellent {
  color: #10b981;
}

.daily-hour-value.good {
  color: #f59e0b;
}

.daily-hour-value.fair {
  color: #f97316;
}

.daily-hour-value.low {
  color: #ef4444;
}

/* Productivity Analysis */
.productivity-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.productivity-card h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.productivity-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.productivity-metric {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}

.productivity-metric.primary {
  background-color: #f0f9ff;
}

.productivity-metric.success {
  background-color: #ecfdf5;
}

.productivity-metric.warning {
  background-color: #fefce8;
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
}

.metric-value.primary {
  color: #0ea5e9;
}

.metric-value.success {
  color: #10b981;
}

.metric-value.warning {
  color: #eab308;
}

.metric-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 4px;
}

/* Category Breakdown */
.category-breakdown h4 {
  margin-bottom: 12px;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
}

.category-item {
  margin-bottom: 12px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.category-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.category-stats {
  font-size: 0.875rem;
  color: #6b7280;
}

.category-progress {
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.category-progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.category-progress-bar.development {
  background-color: #10b981;
}

.category-progress-bar.browsing {
  background-color: #3b82f6;
}

.category-progress-bar.productivity {
  background-color: #f59e0b;
}

/* Window Titles Section */
.window-titles-section {
  margin-bottom: 30px;
}

.live-data-badge {
  font-size: 12px;
  color: #666;
  font-weight: normal;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 12px;
}

.window-titles-grid {
  display: grid;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.window-title-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.window-title-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.window-title-info {
  flex: 1;
}

.window-title-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.project-type-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.project-type-badge.development {
  background-color: #dcfce7;
  color: #166534;
}

.project-type-badge.web-development {
  background-color: #dbeafe;
  color: #1e40af;
}

.project-type-badge.server-management {
  background-color: #fef3c7;
  color: #92400e;
}

.project-type-badge.database {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.project-type-badge.general {
  background-color: #f3f4f6;
  color: #374151;
}

.project-name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.window-title-details {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 2px;
}

.application-info {
  font-size: 11px;
  color: #9ca3af;
}

.window-title-duration {
  text-align: right;
}

.duration-value {
  font-size: 16px;
  font-weight: 600;
  color: #059669;
  margin-bottom: 2px;
}

.last-seen-time {
  font-size: 10px;
  color: #9ca3af;
}

/* Accordion Section */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 16px 0;
  user-select: none;
}

.accordion-header.open {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.accordion-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.accordion-icon {
  transition: transform 0.2s ease;
}

.accordion-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  0% { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state-icon {
  margin-bottom: 20px;
}

.empty-state h3 {
  margin-bottom: 12px;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.empty-state p {
  margin-bottom: 20px;
  color: #6b7280;
}

/* Loading State */
.loading-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px 20px;
}

.loading-spinner {
  margin-bottom: 16px;
}

.loading-text {
  color: #666;
  font-size: 14px;
}

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

@media (max-width: 768px) {
  .developer-dashboard {
    padding: 12px;
  }

  .dev-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dev-dashboard-title {
    font-size: 24px;
  }

  .dashboard-controls {
    width: 100%;
    flex-direction: column;
  }

  .date-picker-wrapper {
    width: 100%;
  }

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

  .tab-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-button {
    white-space: nowrap;
    padding: 8px 16px;
  }

  .report-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Scrollbar for Lists */
.daily-hours-list::-webkit-scrollbar,
.window-titles-grid::-webkit-scrollbar {
  width: 6px;
}

.daily-hours-list::-webkit-scrollbar-track,
.window-titles-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.daily-hours-list::-webkit-scrollbar-thumb,
.window-titles-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.daily-hours-list::-webkit-scrollbar-thumb:hover,
.window-titles-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* No Data Container */
.no-data-container {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-data-icon {
  margin-bottom: 20px;
}

.no-data-container h3 {
  margin-bottom: 12px;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.no-data-text {
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

/* Category Summary Section */
.category-summary {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.category-summary h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.category-card.productive {
  background-color: #d1fae5;
  border-color: #10b981;
}

.category-card.browser {
  background-color: #dbeafe;
  border-color: #3b82f6;
}

.category-card.server {
  background-color: #ede9fe;
  border-color: #8b5cf6;
}

.category-card.uncategorized {
  background-color: #f3f4f6;
  border-color: #6b7280;
}

.category-card.non-work {
  background-color: #fee2e2;
  border-color: #ef4444;
}

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

.category-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.category-percentage {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

.category-card.productive .category-percentage {
  color: #10b981;
}

.category-card.browser .category-percentage {
  color: #3b82f6;
}

.category-card.server .category-percentage {
  color: #8b5cf6;
}

.category-card.uncategorized .category-percentage {
  color: #6b7280;
}

.category-card.non-work .category-percentage {
  color: #ef4444;
}

.category-time {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Add these styles to your DeveloperDashboard.css */

/* Activity Details Styling */
.activity-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 500px;
}

.activity-title {
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
  word-break: break-word;
}

.activity-project {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.project-badge, .project-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.project-badge {
  background-color: #e0e7ff;
  color: #4338ca;
}

.project-type-badge {
  background-color: #fef3c7;
  color: #92400e;
}

/* Category Badge Styling */
.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
}

.category-productive {
  background-color: #d1fae5;
  color: #065f46;
}

.category-productivity {
  background-color: #d1fae5;
  color: #065f46;
}

.category-development {
  background-color: #dbeafe;
  color: #1e3a8a;
}

.category-browser {
  background-color: #e0e7ff;
  color: #312e81;
}

.category-server {
  background-color: #fce7f3;
  color: #831843;
}

.category-uncategorized {
  background-color: #f3f4f6;
  color: #4b5563;
}

.category-server-management {
  background-color: #ede9fe;
  color: #5b21b6;
}

/* Update table styling for better layout */
.top-activities table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-activities th {
  background-color: #f9fafb;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.top-activities td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.top-activities tr:last-child td {
  border-bottom: none;
}

.top-activities tr:hover {
  background-color: #f9fafb;
}

/* Column widths */
.top-activities th:nth-child(1),
.top-activities td:nth-child(1) {
  width: 50%;
}

.top-activities th:nth-child(2),
.top-activities td:nth-child(2) {
  width: 20%;
}

.top-activities th:nth-child(3),
.top-activities td:nth-child(3) {
  width: 15%;
}

.top-activities th:nth-child(4),
.top-activities td:nth-child(4) {
  width: 15%;
}

.all-activities {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  max-height: 600px;
  overflow-y: auto;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.activity-info {
  flex: 1;
}

.activity-main-title {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 6px;
}

.activity-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
}

.activity-app {
  font-weight: 500;
  color: #4b5563;
}

.activity-url {
  color: #3b82f6;
}

.activity-time {
  color: #9ca3af;
}

.activity-stats {
  display: flex;
  gap: 8px;
  align-items: center;
}

.duration-badge {
  background-color: #f3f4f6;
  color: #374151;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.activity-footer {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subcategory-badge {
  background-color: #f0fdf4;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}
/* Add to your DeveloperDashboard.css */

/* TAB STYLES */
.category-tabs {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-headers {
  display: flex;
  background-color: #f3f4f6;
  border-bottom: 2px solid #e5e7eb;
  overflow-x: auto;
}

.tab-header {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.tab-header:hover {
  background-color: #e5e7eb;
}

.tab-header.active {
  background-color: white;
  border-bottom: 2px solid #3b82f6;
}

.tab-header.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #3b82f6;
}

.tab-name {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.tab-header.active .tab-name {
  color: #1f2937;
  font-weight: 600;
}

.tab-percentage {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
}

.tab-header.active .tab-percentage {
  color: #3b82f6;
}

.tab-content {
  padding: 24px;
}

.category-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.overview-stat {
  background-color: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.overview-stat .stat-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.overview-stat .stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.category-activity-list h4 {
  margin: 0 0 16px 0;
  color: #374151;
  font-size: 16px;
}

.activity-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.activity-scroll::-webkit-scrollbar {
  width: 6px;
}

.activity-scroll::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.activity-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.category-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 8px;
  background-color: #f9fafb;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.category-activity-item:hover {
  background-color: #f3f4f6;
}

.activity-info {
  flex: 1;
  min-width: 0;
}

.activity-app {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.activity-detail {
  font-size: 13px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-duration {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  margin-left: 16px;
}

/* ACCORDION STYLES (Alternative) */
.category-accordion {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background-color: #f9fafb;
}

.accordion-header.active {
  background-color: #eff6ff;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.accordion-category-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.accordion-stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
}

.accordion-arrow {
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 600px;
}

.accordion-body {
  padding: 20px;
  background-color: #f9fafb;
}

/* Add these styles to your existing DeveloperDashboard.css file */

/* Projects Summary Styles */
.projects-summary {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.projects-summary h4 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: #d0d0d0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.project-name {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-time {
  color: #10b981;
  font-weight: 600;
  font-size: 14px;
  background: #d1fae5;
  padding: 4px 8px;
  border-radius: 4px;
}

.project-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #666;
}

.project-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-stat strong {
  color: #333;
  font-weight: 600;
}

/* Ensure uncategorized is hidden */
.tab-header:has(.tab-name:contains("Uncategorized")) {
  display: none;
}

/* Responsive design for projects grid */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .project-name {
    max-width: 100%;
  }
}