// ========================================
// REPORTS — Shared Utilities
// ========================================

.reports-page {
  .rounded-xl {
    border-radius: 1rem;
  }

  .shadow-soft {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .toolbar-card {
    background: #fff;
  }

  .btn-pill {
    border-radius: 999px;
  }

  .pre {
    white-space: pre-line;
  }

  .w-280 {
    width: 280px;
  }

  .w-250 {
    width: 250px;
  }

  .min-160 {
    min-width: 160px;
  }

  .min-200 {
    min-width: 200px;
  }

  .formula {
    background: #fafbff;
  }

  .cashflow-icon {
    font-size: 28px;
  }

  .error-log-details {
    max-height: 100px;
    overflow-y: auto;
    white-space: pre-wrap;
  }
}

// ========================================
// REPORTS — Date Range Picker
// ========================================

.reports-page {
  .date-range-filter {
    min-width: 240px;
  }

  .date-btn {
    display: inline-flex;
    align-items: center;
  }

  .quick-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    .btn {
      min-width: 60px;
    }
  }

  @media (max-width: 575.98px) {
    .date-range-filter {
      width: 100%;
    }

    .date-btn {
      justify-content: center;
      width: 100%;
      min-width: 0;
    }

    .quick-ranges {
      width: 100%;

      .btn {
        flex: 1 1 calc(50% - 6px);
        margin-bottom: 6px;
        min-width: 0;
      }
    }
  }
}

.daterangepicker {
  z-index: 2055 !important;
}

@media (max-width: 575.98px) {
  .daterangepicker {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
  }

  .daterangepicker .drp-calendar,
  .daterangepicker .ranges {
    float: none !important;
    width: 100% !important;
  }

  .daterangepicker .drp-calendar.right {
    display: none !important;
  }

  .daterangepicker .ranges {
    margin: 8px 0 0 0 !important;
  }
}

// ========================================
// REPORTS — Stat Cards (shared pattern)
// ========================================

.reports-page {
  .stat-card {
    background: linear-gradient(135deg, var(--gradA, #f7f9ff), var(--gradB, #ffffff));
    padding: 14px 16px;
    min-height: 110px;
    position: relative;
  }

  .stat-inner {
    display: flex;
    align-items: center;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.05);

    i {
      font-size: 22px;
    }
  }

  .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .stat-sub {
    font-size: 0.75rem;
    margin-top: -2px;
  }

  .stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
  }

  .stat-hint {
    font-size: 0.75rem;
    margin-top: 2px;
  }

  .theme-blue {
    --gradA: #e6f0ff;
    --gradB: #ffffff;
    color: #0b5fff;
  }

  .theme-teal {
    --gradA: #e6fbf6;
    --gradB: #ffffff;
    color: #138f7a;
  }

  .theme-indigo {
    --gradA: #eef0ff;
    --gradB: #ffffff;
    color: #3949ab;
  }

  .theme-green {
    --gradA: #edf9ee;
    --gradB: #ffffff;
    color: #2e7d32;
  }

  .theme-orange {
    --gradA: #fff4e6;
    --gradB: #ffffff;
    color: #cc6b00;
  }

  .theme-purple {
    --gradA: #f5e6ff;
    --gradB: #ffffff;
    color: #6a2ecc;
  }

  .theme-rose {
    --gradA: #ffe8f0;
    --gradB: #ffffff;
    color: #c2185b;
  }

  .theme-slate {
    --gradA: #eef2f7;
    --gradB: #ffffff;
    color: #455a64;
  }

  .theme-cyan {
    --gradA: #e6fbff;
    --gradB: #ffffff;
    color: #00838f;
  }

  .theme-amber {
    --gradA: #fff8e1;
    --gradB: #ffffff;
    color: #b28704;
  }

  .theme-red .stat-icon {
    color: #c62828;
  }

  .theme-blue .stat-icon {
    color: #0b5fff;
  }

  .theme-teal .stat-icon {
    color: #138f7a;
  }

  .theme-indigo .stat-icon {
    color: #3949ab;
  }

  .theme-green .stat-icon {
    color: #2e7d32;
  }
}

// ========================================
// REPORTS — Print Styles (report_transactions)
// ========================================

@media print {
  .report-transactions-page {
    &.main-content,
    &.main-content * {
      visibility: visible !important;
    }

    position: static !important;
    width: 100% !important;

    .breadcumb,
    .loading_page,
    .spinner,
    button,
    .sidebar,
    #sidebar-right,
    .vgt-global-search,
    .vgt-pagination,
    .vgt-table-actions,
    .date-range-picker,
    .daterangepicker,
    .text-center {
      display: none !important;
      visibility: hidden !important;
    }

    .wrapper,
    .b-card,
    .card {
      display: block !important;
      visibility: visible !important;
    }

    .vue-good-table,
    .vgt-table,
    .vgt-table-wrapper {
      display: block !important;
      visibility: visible !important;
    }

    table,
    .vgt-table table,
    .table {
      display: table !important;
      visibility: visible !important;
    }

    thead,
    .vgt-table thead,
    .vgt-header-row {
      display: table-header-group !important;
      visibility: visible !important;
    }

    tbody,
    .vgt-table tbody,
    .vgt-body {
      display: table-row-group !important;
      visibility: visible !important;
    }

    tbody tr,
    .vgt-table tbody tr,
    .vgt-row,
    .table tbody tr {
      display: table-row !important;
      visibility: visible !important;
    }

    th,
    td,
    .vgt-table th,
    .vgt-table td,
    .table th,
    .table td {
      display: table-cell !important;
      visibility: visible !important;
    }
  }

  body * {
    visibility: hidden !important;
  }

  body {
    margin: 0 !important;
  }

  @page {
    size: A4 landscape;
    margin: 1cm;
  }
}

// ========================================
// REPORTS — Deposits Report
// ========================================

.deposits-report {
  .deposit-summary-card .summary-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
  }

  .deposit-card-total .summary-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  }

  .deposit-card-categories .summary-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  }

  .deposit-card-top .summary-icon {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  }

  .chart-wrapper {
    min-height: 280px;
  }
}

// ========================================
// REPORTS — Expenses Report
// ========================================

.expenses-report {
  .expense-summary-card .summary-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
  }

  .expense-card-total .summary-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  }

  .expense-card-categories .summary-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  }

  .expense-card-top .summary-icon {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  }

  .chart-wrapper {
    min-height: 280px;
  }
}

// ========================================
// REPORTS — Warranty Guarantee Report
// ========================================

.warranty-report {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }
}

// ========================================
// REPORTS — Analytics Report
// ========================================

.analytics-report {
  .analytics-card {
    min-height: 450px;
  }

  .card-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
  }

  .analytics-rows {
    display: flex;
    flex-direction: column;
  }

  .analytics-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;

    &:last-child {
      border-bottom: none;
    }

    .label {
      flex: 1;
      text-align: left;
      color: #555;
      font-size: 0.9rem;
    }

    .value {
      flex: 0 0 auto;
      text-align: right;
      font-weight: 500;
      color: #333;
      font-size: 0.9rem;
      margin-left: 16px;
    }
  }

  .profit-card {
    background: #fafbfc;
  }

  .profit-section {
    padding: 8px 0;
  }

  .profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
  }

  .profit-label {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
  }

  .profit-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
  }

  .profit-formula {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    margin-top: 4px;
  }

  @media (max-width: 767.98px) {
    .analytics-card {
      min-height: auto;
    }

    .analytics-row {
      flex-direction: column;
      align-items: flex-start;

      .value {
        margin-left: 0;
        margin-top: 4px;
        text-align: left;
      }
    }
  }
}

// ========================================
// REPORTS — Return Ratio Report
// ========================================

.return-ratio-report {
  .ratio-card {
    background: #fff;
  }

  .ratio-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
  }

  .display-6 {
    font-size: 1.6rem;
  }
}

// ========================================
// REPORTS — Negative Stock Report
// ========================================

.negative-stock-report {
  .actions-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 12px;

    .warehouse-block {
      flex: 0 1 280px;
      min-width: 220px;
      max-width: 320px;
    }

    .search-block {
      flex: 1 1 360px;
      min-width: 260px;
      max-width: 520px;
    }

    .search-input {
      width: 100%;
    }
  }

  .export-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .btn-group > * + * {
      margin-left: 8px;
    }
  }

  @media (max-width: 576px) {
    .actions-bar {
      flex-wrap: wrap;
      justify-content: flex-start;
      gap: 8px;

      .warehouse-block {
        flex: 1 1 100%;
        max-width: 100%;
      }

      .search-block {
        flex: 1 1 100%;
        max-width: 100%;
      }
    }

    .export-block {
      width: 100%;
      margin-top: 8px;
    }
  }
}

// ========================================
// REPORTS — Detail Customer Report
// ========================================

.detail-customer-report {
  .card-icon-bg .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .card-icon-bg [class^="i-"] {
    font-size: 4rem;
    color: rgba(0, 52, 115, 0.28);
    margin-bottom: 1rem;
  }

  .card-icon-bg .content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    p {
      margin-bottom: 0.5rem;
      text-align: center;
      width: 100%;
    }

    .text-24 {
      font-size: 1.5rem;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}

// ========================================
// REPORTS — Customer Loyalty Points Report
// ========================================

.loyalty-points-report {
  @media (max-width: 576px) {
    .d-flex.flex-wrap.align-items-end > .mr-3 {
      margin-right: 0 !important;
    }
  }
}

// ========================================
// REPORTS — Payments Purchases
// ========================================

.payments-purchases-report {
  .w-sm-auto {
    width: 100%;
  }

  @media (min-width: 576px) {
    .w-sm-auto {
      width: auto;
    }
  }

  @media (max-width: 575.98px) {
    .toolbar {
      flex-direction: column;
      align-items: stretch !important;

      > div {
        width: 100% !important;
        margin-right: 0 !important;
      }

      .ml-auto {
        margin-left: 0 !important;

        &.d-flex {
          flex-wrap: wrap;
          gap: 8px;
        }

        .btn {
          flex: 1 1 calc(50% - 8px);
          min-width: 120px;
        }
      }
    }
  }
}

// ========================================
// REPORTS — AI Reports
// ========================================

.ai-reports {
  .ai-reports-header {
    margin-bottom: 2rem;
  }

  .header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 1rem;
    padding: 1.5rem;

    h4, p, * {
      color: white !important;
    }
  }

  .header-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-icon {
    font-size: 2rem;
    color: white;
  }

  .header-subtitle {
    opacity: 0.9;
  }

  .question-card {
    border-radius: 1rem;
    padding: 1.5rem;
  }

  .card-header-custom {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;

    h5 {
      color: #2c3e50;
      font-weight: 600;
    }
  }

  .custom-select,
  .custom-input {
    border-radius: 0.5rem;
  }

  .font-weight-semibold {
    margin-bottom: 0.2rem !important;
  }

  .btn-run {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    white-space: nowrap;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    &:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
  }

  @media (max-width: 991px) {
    .btn-run {
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
    }
  }

  .question-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
  }

  .loading-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .loading-card {
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
  }

  .loading-content {
    padding: 2rem;
  }

  .spinner-wrapper {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    margin: 0 auto;

    .spinner {
      position: relative;
      z-index: 1;
    }
  }

  .pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  @keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
  }

  .loading-title {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
  }

  .loading-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
  }

  .loading-steps {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: all 0.3s ease;
    flex: 1;

    &.active {
      opacity: 1;
      transform: scale(1.1);
    }

    i {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
      color: white;
    }

    span {
      font-size: 0.875rem;
      color: rgba(255, 255, 255, 0.9);
      text-align: center;
    }
  }

  .results-container {
    animation: fadeInUp 0.5s ease-out;
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .success-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 1rem;
    border: none;
  }

  .success-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    i {
      font-size: 1.5rem;
      color: white;
    }
  }

  .report-timestamp {
    text-align: right;

    small {
      color: rgba(255, 255, 255, 0.9) !important;
    }
  }

  .filters-summary-card {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-left: 4px solid #667eea;
    border-radius: 0.75rem;
    transition: all 0.3s ease;

    &:hover {
      box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15) !important;
    }
  }

  .filters-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
  }

  .filters-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }

  .filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;

    &:hover {
      background: #e9ecef;
      transform: translateY(-2px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    i { color: #667eea; }
    strong { color: #495057; margin-right: 0.25rem; }
    span { color: #6c757d; }
  }

  .insights-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 1rem;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    &::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
      animation: shimmer 3s infinite;
    }

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(240, 147, 251, 0.3) !important;
    }
  }

  @keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .insights-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
    position: relative;
    z-index: 1;
  }

  .insights-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .insights-card:hover .insights-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

  .insights-icon {
    font-size: 1.5rem;
    color: white;
  }

  .insights-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    i {
      font-size: 1.25rem;
      color: white;
      animation: sparkle 2s infinite;
    }
  }

  @keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
  }

  .insights-content {
    padding-top: 1rem;
    position: relative;
    z-index: 1;
  }

  .insights-text-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
  }

  .insights-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    margin: 0;
  }

  .stat-card {
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }
  }

  .stat-inner {
    display: flex;
    align-items: center;
  }

  .stat-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    opacity: 0.9;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
  }

  .stat-content { flex: 1; }
  .stat-label { font-size: 0.875rem; color: #6c757d; margin-bottom: 0.5rem; font-weight: 500; }
  .stat-value { font-size: 1.75rem; font-weight: 700; color: #2c3e50; line-height: 1.2; }

  .theme-blue .stat-icon { color: #007bff; background: rgba(0, 123, 255, 0.1); }
  .theme-green .stat-icon { color: #28a745; background: rgba(40, 167, 69, 0.1); }
  .theme-orange .stat-icon { color: #ffc107; background: rgba(255, 193, 7, 0.1); }
  .theme-purple .stat-icon { color: #6f42c1; background: rgba(111, 66, 193, 0.1); }
  .theme-cyan .stat-icon { color: #17a2b8; background: rgba(23, 162, 184, 0.1); }

  .empty-state-card {
    border-radius: 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .empty-state-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1rem;
  }

  .empty-state-features { margin-top: 2rem; }

  .feature-item {
    padding: 1.5rem;
    text-align: center;

    i { font-size: 2.5rem; display: block; }
    h6 { margin-top: 1rem; margin-bottom: 0.5rem; color: #2c3e50; }
  }

  .report-content { animation: fadeInUp 0.6s ease-out; }
  .report-header { padding: 1rem 0; }
  .report-header h5 { color: #2c3e50; }

  .table-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;

    &.warning { background: #fff3cd; color: #856404; }
    i { font-size: 1rem; }
  }

  .animated-card {
    animation: fadeInUp 0.5s ease-out;
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }
  }

  .vgt-table {
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .gutter-sm > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease; }
  .fade-enter, .fade-leave-to { opacity: 0; }
  .slide-fade-enter-active { transition: all 0.4s ease-out; }
  .slide-fade-enter { opacity: 0; transform: translateY(30px); }
  .fade-up-enter-active { transition: all 0.5s ease-out; }
  .fade-up-enter { opacity: 0; transform: translateY(20px); }
  .scale-in-enter-active { transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .scale-in-enter { opacity: 0; transform: scale(0.8); }

  .scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  @keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }

  .fade-up { animation: fadeInUp 0.6s ease-out; }

  @media (max-width: 768px) {
    .header-card { padding: 1rem; }
    .header-icon-wrapper { width: 50px; height: 50px; }
    .header-icon { font-size: 1.5rem; }
    .stat-card { padding: 1rem; }
    .stat-icon { font-size: 2rem; width: 50px; height: 50px; }
    .stat-value { font-size: 1.5rem; }

    .loading-steps {
      flex-direction: column;
      gap: 1rem;
    }

    .step-item {
      flex-direction: row;
      justify-content: flex-start;

      i { margin-right: 0.75rem; margin-bottom: 0; }
    }

    .success-card .d-flex { flex-direction: column; text-align: center; }
    .report-timestamp { text-align: center; margin-top: 0.5rem; }
    .filters-content { flex-direction: column; }
    .filter-badge { width: 100%; justify-content: flex-start; }

    .report-actions {
      width: 100%;
      margin-top: 1rem;
      justify-content: flex-start;

      .btn { flex: 1; min-width: 80px; }
    }

    .ai-icon-wrapper { width: 40px; height: 40px; }
    .ai-icon-wrapper i { font-size: 1.25rem; }
    .summary-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .summary-value { font-size: 1.25rem; }
    .chart-container { padding: 0.5rem; min-height: 300px; }
  }
}
