/* Dashboard Container */
.dashboard-container {
  min-height: 100vh;
  background-color: #ffffff;
}

/* Hero Section Customization */
.hero.is-white {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.hero.is-white .title {
  color: #363636;
  font-weight: 600;
}

.hero.is-white .subtitle {
  color: #7a7a7a;
}

/* Task Grid */
.task-grid {
  margin-bottom: 2rem;
}

/* Task Card Styles */
.task-card {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 100%;
}

.task-card .card {
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.task-card:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Priority-based borders */
.task-card-urgent .card {
  border-left: 4px solid #f14668;
}

.task-card-high .card {
  border-left: 4px solid #ffe08a;
}

.task-card-medium .card {
  border-left: 4px solid #3e8ed0;
}

.task-card-urgent:hover .card {
  border-color: #f14668;
  box-shadow: 0 8px 24px rgba(241, 70, 104, 0.2);
}

.task-card-high:hover .card {
  border-color: #ffe08a;
  box-shadow: 0 8px 24px rgba(255, 224, 138, 0.2);
}

.task-card-medium:hover .card {
  border-color: #3e8ed0;
  box-shadow: 0 8px 24px rgba(62, 142, 208, 0.2);
}

/* Activity Feed - Table Style */
.activity-feed {
  border-radius: 8px;
  padding: 0;
}

.activity-table {
  border: none;
}

.activity-table tbody tr {
  border: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.activity-table tbody tr:hover {
  background-color: #f9f9f9;
  border-left-color: #3273dc;
}

.activity-table tbody td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}

.activity-row {
  position: relative;
}

/* Activity cells */
.activity-icon-cell {
  width: 50px;
  text-align: center;
}

.activity-icon-cell .icon {
  font-size: 1.25rem;
}

.activity-info-cell {
  width: 100%;
}

.activity-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  width: 100%;
}

.activity-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: #363636;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-meta {
  font-size: 0.8rem;
  color: #7a7a7a;
}

.activity-status-cell {
  width: 140px;
  text-align: right;
  white-space: nowrap;
}

.activity-link:hover .activity-title {
  color: #3273dc;
}

/* Metrics Boxes - compact */
.box .heading {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #7a7a7a;
  margin-bottom: 0.5rem;
}

.box .title.is-5 {
  margin-bottom: 0.5rem;
}

.box .help {
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

/* Section Titles */
.section .title.is-5 {
  font-weight: 600;
  color: #363636;
  margin-bottom: 1rem;
}

.section .title.is-5 .icon-text {
  vertical-align: middle;
}

/* Box Customization */
.box {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.box:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Section Links */
.section-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-links a:hover {
  color: #3273dc !important;
  text-decoration: underline;
}

/* Metric Box Links */
.metric-box-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.metric-box-link:hover .box {
  border-color: #3273dc;
  box-shadow: 0 2px 12px rgba(50, 115, 220, 0.15);
}

.metric-box-link .box {
  transition: all 0.2s ease;
}

/* Quick Actions Buttons */
.buttons .button {
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.buttons .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.buttons .button .icon {
  font-size: 1rem;
}

/* Tags */
.tag {
  border-radius: 6px;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state .title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .hero.is-white .hero-body {
    padding: 1.5rem 1rem;
  }
  
  .hero.is-white .title.is-3 {
    font-size: 1.5rem;
  }
  
  .buttons {
    flex-wrap: wrap;
    width: 100%;
  }
  
  .buttons .button {
    margin-bottom: 0.5rem;
    flex: 1 0 auto;
    min-width: 150px;
  }
  
  .task-table tbody td,
  .activity-table tbody td {
    padding: 0.5rem 0.25rem;
  }
  
  .task-list-title {
    font-size: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .task-list-action {
    font-size: 0.75rem;
  }
  
  .link-indicator {
    display: none;
  }
  
  .box {
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 1.5rem 0.75rem;
  }
  
  .section-links {
    display: none;
  }
  
  .activity-title {
    font-size: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .activity-meta {
    font-size: 0.75rem;
  }
  
  .activity-icon-cell {
    width: 40px;
  }
  
  .activity-status-cell {
    width: 100px;
  }
  
  .activity-status-cell .tag {
    font-size: 0.7rem;
  }
}

/* Loading States */
.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 4px solid #dbdbdb;
  border-top-color: #3273dc;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

/* Turbo Frame Transitions */
turbo-frame {
  display: block;
}

turbo-frame.is-loading {
  min-height: 200px;
}

/* Card Content Spacing */
.card-content .level:last-child {
  margin-bottom: 0;
}

/* Icon Sizes */
.icon.is-large {
  width: 2.5rem;
  height: 2.5rem;
}

/* Task List (Table) Styles */
.task-table {
  border: none;
}

.task-table tbody tr {
  border: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.task-table tbody tr:hover {
  background-color: #f9f9f9;
  border-left-color: #3273dc;
}

.task-table tbody td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}

.task-row {
  position: relative;
}

.task-row-urgent {
  border-left-color: #f14668;
}

.task-row-urgent:hover {
  border-left-color: #f14668 !important;
}

.task-title-cell {
  width: 100%;
}

.task-list-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  width: 100%;
}

.task-list-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: #363636;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-list-action {
  font-size: 0.8rem;
  color: #7a7a7a;
}

.task-list-link:hover .task-list-title {
  color: #3273dc;
}

/* Link Indicator */
.link-indicator {
  opacity: 0;
  color: #3273dc;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.task-list-link:hover .link-indicator,
.activity-link:hover .link-indicator {
  opacity: 1;
}

/* Table Container */
.table-container {
  overflow-x: auto;
}

/* Utility Classes */
.has-text-weight-medium {
  font-weight: 500 !important;
}

.is-clickable {
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Status-specific styling */
.status-urgent {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

