// ============================================
// Ana Pano - Modern Dashboard Styles
// ============================================

// Color Variables
$color-blue: #2185d0;
$color-orange: #f2711c;
$color-green: #21ba45;
$color-purple: #a333c8;
$color-red: #db2828;
$color-teal: #00b5ad;
$color-yellow: #fbbd08;
$color-violet: #6435c9;

// Gradient Variables
$gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
$gradient-blue: linear-gradient(135deg, #2185d0 0%, #1678c2 100%);
$gradient-green: linear-gradient(135deg, #21ba45 0%, #16ab39 100%);
$gradient-orange: linear-gradient(135deg, #f2711c 0%, #e85d04 100%);

// ============================================
// Main Container
// ============================================
.ana-pano-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 0;
  overflow-x: hidden;
}

// ============================================
// Hero Header with Animated Background
// ============================================
.hero-header {
  position: relative;
  background: $gradient-purple;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);

  .animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;

    .gradient-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.4;
      animation: float 20s ease-in-out infinite;

      &.orb-1 {
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
        top: -200px;
        left: -100px;
        animation-delay: 0s;
      }

      &.orb-2 {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255, 200, 255, 0.6) 0%, transparent 70%);
        top: 50%;
        right: -50px;
        animation-delay: 7s;
      }

      &.orb-3 {
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(200, 220, 255, 0.5) 0%, transparent 70%);
        bottom: -100px;
        left: 30%;
        animation-delay: 3s;
      }
    }
  }

  .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .hero-title-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;

    .icon-wrapper {
      width: 80px;
      height: 80px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

      &.pulse {
        animation: pulse-grow 2s ease-in-out infinite;
      }

      i {
        font-size: 3rem;
      }
    }

    .title-content {
      .main-title {
        color: white;
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0 0 0.5rem 0;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      }

      .subtitle {
        color: rgba(255, 255, 255, 0.95);
        font-size: 1.1rem;
        margin: 0 0 1rem 0;
        font-weight: 300;
      }

      .live-indicator {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.2);
        padding: 0.4rem 1rem;
        border-radius: 20px;
        backdrop-filter: blur(10px);

        .pulse-dot {
          width: 10px;
          height: 10px;
          background: #4ade80;
          border-radius: 50%;
          animation: pulse-dot 1.5s ease-in-out infinite;
        }

        .live-text {
          color: white;
          font-size: 0.9rem;
          font-weight: 600;
        }
      }
    }
  }

  .hero-actions {
    display: flex;
    gap: 1rem;

    .glass-button {
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: white;
      padding: 0.8rem 1.5rem;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

      &:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
      }

      &:active {
        transform: translateY(0);
      }

      i {
        font-size: 1.1rem;
      }
    }
  }
}

// ============================================
// Stats Grid
// ============================================
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  &:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);

    &::before {
      opacity: 1;
    }
  }

  &.card-blue { border-top-color: $color-blue; }
  &.card-orange { border-top-color: $color-orange; }
  &.card-green { border-top-color: $color-green; }
  &.card-purple { border-top-color: $color-purple; }
  &.card-red { border-top-color: $color-red; }
  &.card-teal { border-top-color: $color-teal; }

  .stat-card-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
  }

  &.card-blue .stat-icon { background: $gradient-blue; }
  &.card-orange .stat-icon { background: $gradient-orange; }
  &.card-green .stat-icon { background: $gradient-green; }
  &.card-purple .stat-icon { background: $gradient-purple; }
  &.card-red .stat-icon { background: linear-gradient(135deg, #db2828 0%, #c21f1f 100%); }
  &.card-teal .stat-icon { background: linear-gradient(135deg, #00b5ad 0%, #009c95 100%); }

  .stat-content {
    .stat-value {
      font-size: 2.5rem;
      font-weight: 700;
      line-height: 1;
      margin-bottom: 0.3rem;
      background: linear-gradient(135deg, #333 0%, #666 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .stat-label {
      font-size: 1rem;
      font-weight: 600;
      color: #555;
      margin-bottom: 0.2rem;
    }

    .stat-description {
      font-size: 0.85rem;
      color: #888;
    }
  }

  .stat-progress {
    .progress-circle {
      width: 80px;
      height: 80px;

      svg {
        transform: rotate(-90deg);
        width: 100%;
        height: 100%;

        .circle-bg {
          fill: none;
          stroke: #f0f0f0;
          stroke-width: 3;
        }

        .circle {
          fill: none;
          stroke-width: 3;
          stroke-linecap: round;
          animation: progress 2s ease-out forwards;
        }

        .percentage {
          font-size: 0.5rem;
          font-weight: 700;
          fill: #333;
          transform: rotate(90deg);
          transform-origin: center;
        }
      }
    }
  }

  &.card-blue .circle { stroke: $color-blue; }
  &.card-orange .circle { stroke: $color-orange; }
  &.card-green .circle { stroke: $color-green; }
  &.card-purple .circle { stroke: $color-purple; }
  &.card-red .circle { stroke: $color-red; }
  &.card-teal .circle { stroke: $color-teal; }

  .stat-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;

    &.urgent {
      background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
      color: white;
    }

    &.vip {
      background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
      color: #333;
    }
  }

  .capacity-bar {
    grid-column: 1 / -1;
    position: relative;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;

    .capacity-fill {
      height: 100%;
      background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
      border-radius: 10px;
      transition: width 1s ease-out;
      position: relative;

      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
        animation: shimmer 2s infinite;
      }
    }

    .capacity-text {
      position: absolute;
      top: -20px;
      right: 0;
      font-size: 0.8rem;
      font-weight: 600;
      color: #666;
    }
  }

  &.card-purple .capacity-fill { background: $gradient-purple; }
  &.card-red .capacity-fill { background: linear-gradient(90deg, #db2828 0%, #ff4444 100%); }
  &.card-teal .capacity-fill { background: linear-gradient(90deg, #00b5ad 0%, #00d4cc 100%); }

  .stat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;

    .trend {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      font-weight: 600;

      &.trend-up {
        color: $color-green;
      }
    }

    .stat-time {
      color: #888;
    }

    .stat-detail {
      color: #666;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
  }
}

// ============================================
// Section Headers
// ============================================
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  margin: 3rem auto 2rem;
  max-width: 1400px;

  .section-icon {
    width: 50px;
    height: 50px;
    background: $gradient-purple;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }

  .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
  }

  .section-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.5) 0%, transparent 100%);
    border-radius: 10px;
  }
}

// ============================================
// Quick Access Grid
// ============================================
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.access-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
    transition: all 0.4s ease;
  }

  &.gradient-purple::before { background: $gradient-purple; }
  &.gradient-blue::before { background: $gradient-blue; }
  &.gradient-green::before { background: $gradient-green; }
  &.gradient-orange::before { background: $gradient-orange; }

  &:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);

    .card-glow {
      opacity: 1;
    }

    .access-btn {
      background: rgba(0, 0, 0, 0.1);
      transform: translateX(5px);
    }
  }

  .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  .access-header {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;

    .access-icon {
      width: 60px;
      height: 60px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 2rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .access-badge {
      background: rgba(255, 255, 255, 0.9);
      color: #333;
      padding: 0.4rem 0.8rem;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

      &.urgent {
        background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
        color: white;
      }

      &.vip {
        background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
        color: #333;
      }
    }
  }

  .access-title {
    position: relative;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding: 0 2rem;
    z-index: 1;
  }

  .access-description {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
    padding: 0 2rem 1.5rem;
    z-index: 1;
  }

  .access-stats {
    position: relative;
    background: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1;

    .access-stat {
      text-align: center;

      .stat-num {
        display: block;
        font-size: 2rem;
        font-weight: 700;
        line-height: 1;
        margin-bottom: 0.3rem;
        background: linear-gradient(135deg, #333 0%, #666 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .stat-label {
        display: block;
        font-size: 0.85rem;
        color: #888;
        font-weight: 500;
      }
    }

    .stat-divider {
      width: 1px;
      height: 40px;
      background: linear-gradient(180deg, transparent 0%, #e0e0e0 50%, transparent 100%);
    }
  }

  .report-types {
    position: relative;
    background: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    z-index: 1;

    .report-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      color: #666;
      font-size: 0.9rem;
      font-weight: 500;

      i {
        font-size: 1.8rem;
      }

      &:nth-child(1) i { color: #dc3545; }
      &:nth-child(2) i { color: #28a745; }
      &:nth-child(3) i { color: #007bff; }
    }
  }

  .access-footer {
    position: relative;
    padding: 0 2rem 2rem;
    z-index: 1;
    background: white;

    .access-btn {
      width: 100%;
      background: rgba(0, 0, 0, 0.05);
      border: none;
      color: #333;
      padding: 0.9rem 1.5rem;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;

      &:hover {
        background: rgba(0, 0, 0, 0.1);
      }
    }
  }
}

// ============================================
// Departments Grid
// ============================================
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  margin-bottom: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.department-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;

  &:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }

  .dept-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;

    .dept-icon {
      width: 50px;
      height: 50px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
    }

    .dept-title {
      font-size: 1.3rem;
      font-weight: 700;
      margin: 0;
    }
  }

  &.dept-purple .dept-header { background: $gradient-purple; }
  &.dept-red .dept-header { background: linear-gradient(135deg, #db2828 0%, #c21f1f 100%); }
  &.dept-teal .dept-header { background: linear-gradient(135deg, #00b5ad 0%, #009c95 100%); }

  .dept-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

    .dept-progress-ring {
      svg {
        width: 120px;
        height: 120px;

        .ring-bg {
          fill: none;
          stroke: #f0f0f0;
          stroke-width: 4;
        }

        .ring-progress {
          fill: none;
          stroke-width: 4;
          stroke-linecap: round;
          transform-origin: center;
          animation: ring-progress 2s ease-out forwards;
        }

        .ring-text {
          font-size: 1.2rem;
          font-weight: 700;
          fill: #333;
          text-anchor: middle;
        }
      }
    }

    .dept-stats-table {
      width: 100%;

      .dept-stat-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid #f0f0f0;

        &:last-child {
          border-bottom: none;
        }

        .stat-icon-label {
          display: flex;
          align-items: center;
          gap: 0.5rem;
          color: #666;
          font-size: 0.95rem;

          i {
            font-size: 1.1rem;
          }
        }

        .stat-value {
          font-size: 1.2rem;
          font-weight: 700;
          color: #333;
        }

        &.success {
          .stat-icon-label { color: $color-green; }
          .stat-value { color: $color-green; }
        }

        &.info {
          .stat-icon-label { color: $color-blue; }
          .stat-value { color: $color-blue; }
        }
      }
    }
  }

  &.dept-purple .ring-progress { stroke: $color-purple; }
  &.dept-red .ring-progress { stroke: $color-red; }
  &.dept-teal .ring-progress { stroke: $color-teal; }

  .dept-footer {
    padding: 0 1.5rem 1.5rem;

    .dept-btn {
      width: 100%;
      border: none;
      color: white;
      padding: 0.9rem 1.5rem;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      }
    }
  }

  &.dept-purple .dept-btn { background: $gradient-purple; }
  &.dept-red .dept-btn { background: linear-gradient(135deg, #db2828 0%, #c21f1f 100%); }
  &.dept-teal .dept-btn { background: linear-gradient(135deg, #00b5ad 0%, #009c95 100%); }
}

// Small Department Cards
.departments-grid-half {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.department-card-small {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }

  .dept-header-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;

    .dept-icon-small {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: white;
    }

    .dept-title-small {
      font-size: 1.1rem;
      font-weight: 700;
      color: #333;
      margin: 0;
    }
  }

  &.dept-yellow .dept-icon-small { background: linear-gradient(135deg, #fbbd08 0%, #f2b100 100%); }
  &.dept-violet .dept-icon-small { background: linear-gradient(135deg, #6435c9 0%, #5829bb 100%); }

  .dept-mini-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;

    .mini-stat {
      flex: 1;
      text-align: center;
      padding: 1rem;
      background: #f8f9fa;
      border-radius: 12px;

      .mini-stat-value {
        font-size: 1.8rem;
        font-weight: 700;
        color: #333;
        line-height: 1;
        margin-bottom: 0.3rem;
      }

      .mini-stat-label {
        font-size: 0.85rem;
        color: #666;
      }
    }

    .mini-capacity {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      justify-content: center;

      .mini-capacity-bar {
        height: 8px;
        background: #f0f0f0;
        border-radius: 10px;
        overflow: hidden;

        .mini-capacity-fill {
          height: 100%;
          border-radius: 10px;
          transition: width 1s ease-out;
        }
      }

      .mini-capacity-text {
        font-size: 0.85rem;
        font-weight: 600;
        color: #666;
        text-align: center;
      }
    }
  }

  &.dept-yellow .mini-capacity-fill { background: linear-gradient(90deg, #fbbd08 0%, #ffd700 100%); }
  &.dept-violet .mini-capacity-fill { background: linear-gradient(90deg, #6435c9 0%, #8b5cf6 100%); }

  .dept-btn-small {
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #333;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    &:hover {
      background: rgba(0, 0, 0, 0.1);
      transform: translateY(-2px);
    }
  }
}

// ============================================
// Activity Feed
// ============================================
.activity-feed {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 2rem 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;

  .activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    border-radius: 12px;

    &:last-child {
      border-bottom: none;
    }

    &:hover {
      background: #f8f9fa;
      transform: translateX(5px);
    }

    .activity-icon {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: white;

      &.blue { background: $gradient-blue; }
      &.green { background: $gradient-green; }
      &.orange { background: $gradient-orange; }
      &.purple { background: $gradient-purple; }
      &.red { background: linear-gradient(135deg, #db2828 0%, #c21f1f 100%); }
    }

    .activity-content {
      flex: 1;

      .activity-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 0.5rem;

        strong {
          font-size: 1.05rem;
          color: #333;
        }

        .activity-badge {
          padding: 0.3rem 0.8rem;
          border-radius: 20px;
          font-size: 0.8rem;
          font-weight: 600;

          &.new {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
          }

          &.success {
            background: linear-gradient(135deg, #21ba45 0%, #16ab39 100%);
            color: white;
          }

          &.approved {
            background: linear-gradient(135deg, #f2711c 0%, #e85d04 100%);
            color: white;
          }

          &.warning {
            background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
            color: white;
          }
        }
      }

      .activity-description {
        font-size: 0.95rem;
        color: #666;
        margin-bottom: 0.5rem;
      }

      .activity-time {
        font-size: 0.85rem;
        color: #999;
        display: flex;
        align-items: center;
        gap: 0.3rem;
      }
    }

    .activity-action {
      .action-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        color: #666;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;

        &:hover {
          background: $gradient-purple;
          color: white;
          transform: scale(1.1);
        }
      }
    }
  }

  .activity-footer {
    margin-top: 2rem;
    text-align: center;

    .load-more-btn {
      background: rgba(0, 0, 0, 0.05);
      border: none;
      color: #666;
      padding: 0.9rem 2rem;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;

      &:hover {
        background: $gradient-purple;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
      }
    }
  }
}

// ============================================
// Animations
// ============================================
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes pulse-grow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes progress {
  from {
    stroke-dashoffset: 100;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes ring-progress {
  from {
    stroke-dashoffset: 339.292;
  }
}

// ============================================
// Responsive Design
// ============================================
@media (max-width: 768px) {
  .hero-header {
    padding: 2rem 1rem;

    .hero-content {
      flex-direction: column;
      align-items: stretch;
    }

    .hero-title-section {
      flex-direction: column;
      text-align: center;

      .title-content .main-title {
        font-size: 1.8rem;
      }
    }

    .hero-actions {
      justify-content: center;
    }
  }

  .stats-grid,
  .quick-access-grid,
  .departments-grid,
  .departments-grid-half {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .section-header {
    padding: 0 1rem;

    .section-title {
      font-size: 1.4rem;
    }
  }

  .activity-feed {
    margin: 0 1rem 2rem;
    padding: 1rem;

    .activity-item {
      grid-template-columns: auto 1fr;
      gap: 1rem;
      padding: 1rem;

      .activity-action {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
      }
    }
  }
}
