@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #f0f4ff 0%, #faf5ff 30%, #f8f9fe 60%, #eef2ff 100%);
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0693e3, #7c3aed);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0574b8, #6d28d9);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(124, 58, 237, 0.03);
    transition: box-shadow 0.3s ease;
}

.gradient-text {
    background: linear-gradient(135deg, #0693e3 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-btn {
    background: linear-gradient(135deg, #0693e3 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.gradient-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 147, 227, 0.3), 0 4px 12px rgba(124, 58, 237, 0.2);
}

.gradient-btn:hover::before {
    opacity: 1;
}

.gradient-btn:active {
    transform: translateY(0);
}

.gradient-btn-outline {
    background: transparent;
    color: #0693e3;
    border: 2px solid rgba(6, 147, 227, 0.3);
    border-radius: 12px;
    padding: 10px 24px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.gradient-btn-outline:hover {
    background: rgba(6, 147, 227, 0.08);
    border-color: rgba(6, 147, 227, 0.5);
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    opacity: 0;
    animation: scaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 16px;
}

.login-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.login-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 32px;
}

.login-btn {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    justify-content: center;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.app-header {
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0693e3, #7c3aed, transparent);
    background-size: 200% 100%;
    animation: headerShimmer 6s ease-in-out infinite;
    opacity: 0.4;
}

.app-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(6, 147, 227, 0.2);
    box-shadow: 0 2px 8px rgba(6, 147, 227, 0.1);
}

.logout-btn {
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 8px;
    background: rgba(100, 116, 139, 0.08);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.12);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'Satoshi', sans-serif;
}

.logout-btn:hover {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}

.main-content {
    padding: 0 32px 32px;
    max-width: 1600px;
    margin: 0 auto;
}

.mode-toggle {
    display: inline-flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(6, 147, 227, 0.15);
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.mode-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s;
    white-space: nowrap;
}

.mode-btn.active {
    background: linear-gradient(135deg, #0693e3 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 147, 227, 0.25);
    transform: scale(1.02);
}

.mode-btn:active {
    transform: scale(0.97);
}

.mode-btn:not(.active):hover {
    background: rgba(6, 147, 227, 0.06);
    color: #0693e3;
}

.mode-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.section-caption {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.metric-card {
    padding: 22px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.metric-card:nth-child(1) { animation-delay: 0.02s; }
.metric-card:nth-child(2) { animation-delay: 0.04s; }
.metric-card:nth-child(3) { animation-delay: 0.06s; }
.metric-card:nth-child(4) { animation-delay: 0.08s; }
.metric-card:nth-child(5) { animation-delay: 0.10s; }
.metric-card:nth-child(6) { animation-delay: 0.12s; }
.metric-card:nth-child(7) { animation-delay: 0.14s; }

.metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 147, 227, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(6, 147, 227, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(6, 147, 227, 0.08);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kpi-card {
    padding: 22px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.kpi-card:nth-child(1) { animation-delay: 0.16s; }
.kpi-card:nth-child(2) { animation-delay: 0.18s; }
.kpi-card:nth-child(3) { animation-delay: 0.20s; }
.kpi-card:nth-child(4) { animation-delay: 0.22s; }
.kpi-card:nth-child(5) { animation-delay: 0.24s; }
.kpi-card:nth-child(6) { animation-delay: 0.26s; }

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(6, 147, 227, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

.kpi-card:hover::after {
    opacity: 0.03;
}

.kpi-card.blue::before { background: linear-gradient(135deg, #0693e3, #7c3aed); }
.kpi-card.blue::after { background: linear-gradient(180deg, #0693e3, transparent); }
.kpi-card.teal::before { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.kpi-card.teal::after { background: linear-gradient(180deg, #14b8a6, transparent); }
.kpi-card.green::before { background: linear-gradient(135deg, #22c55e, #16a34a); }
.kpi-card.green::after { background: linear-gradient(180deg, #22c55e, transparent); }
.kpi-card.red::before { background: linear-gradient(135deg, #ef4444, #dc2626); }
.kpi-card.red::after { background: linear-gradient(180deg, #ef4444, transparent); }
.kpi-card.amber::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
.kpi-card.amber::after { background: linear-gradient(180deg, #f59e0b, transparent); }
.kpi-card.purple::before { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.kpi-card.purple::after { background: linear-gradient(180deg, #8b5cf6, transparent); }

.kpi-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.kpi-card.blue .kpi-label { color: #64748b; }
.kpi-card.teal .kpi-label { color: #0d9488; }
.kpi-card.green .kpi-label { color: #16a34a; }
.kpi-card.red .kpi-label { color: #94a3b8; }
.kpi-card.amber .kpi-label { color: #94a3b8; }
.kpi-card.purple .kpi-label { color: #94a3b8; }

.kpi-value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kpi-card.blue .kpi-value { background: linear-gradient(135deg, #0693e3, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.kpi-card.teal .kpi-value { color: #0d9488; }
.kpi-card.green .kpi-value { color: #16a34a; }
.kpi-card.red .kpi-value { color: #dc2626; }
.kpi-card.amber .kpi-value { color: #d97706; }
.kpi-card.purple .kpi-value { color: #7c3aed; }

.refresh-btn {
    background: linear-gradient(135deg, #0693e3 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 12px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 147, 227, 0.3);
}

.refresh-btn:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 8px rgba(6, 147, 227, 0.2);
}

.refresh-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
}

.filters-section {
    padding: 20px 24px;
    margin-bottom: 24px;
    overflow: visible;
    position: relative;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-section:hover {
    box-shadow:
        0 4px 20px rgba(6, 147, 227, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
}

.filters-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.filters-toggle {
    font-size: 0.8rem;
    color: #94a3b8;
    transition: transform 0.3s;
}

.filters-body {
    padding-top: 16px;
    overflow: visible;
}

.filters-body.collapsed {
    display: none;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.filter-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.85rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    outline: none;
}

.filter-group input[type="text"]:focus {
    border-color: rgba(6, 147, 227, 0.4);
    box-shadow: 0 0 0 3px rgba(6, 147, 227, 0.1);
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown .dropdown-toggle {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.custom-dropdown .dropdown-toggle.has-selection {
    color: #1e293b;
}

.custom-dropdown .dropdown-toggle::after {
    content: '\25BC';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.custom-dropdown.open .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown .dropdown-toggle:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.custom-dropdown.open .dropdown-toggle {
    border-color: rgba(6, 147, 227, 0.4);
    box-shadow: 0 0 0 3px rgba(6, 147, 227, 0.1);
}

.custom-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.custom-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 7px 12px;
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
}

.custom-dropdown .dropdown-item span {
    flex: 1;
    text-align: left;
}

.custom-dropdown .dropdown-item:hover {
    background: rgba(6, 147, 227, 0.06);
}

.custom-dropdown .dropdown-item input[type="checkbox"] {
    accent-color: #0693e3;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.custom-dropdown .dropdown-item.selected {
    background: rgba(6, 147, 227, 0.08);
    font-weight: 500;
}

.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card {
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card:not(.genie-close):hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(6, 147, 227, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(6, 147, 227, 0.06);
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.chart-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 16px;
}

.chart-with-legend {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 16px;
}

.chart-with-legend .chart-container {
    flex: 1 1 50%;
    min-width: 0;
    margin-bottom: 0;
}

.custom-chart-legend {
    flex: 0 0 45%;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 8px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 2px 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'Satoshi', sans-serif;
    color: #64748b;
    white-space: nowrap;
    transition: background 0.15s;
    flex: 0 0 auto;
}

.legend-item:hover {
    background: rgba(6, 147, 227, 0.08);
    color: #1e293b;
}

.legend-item-hidden {
    opacity: 0.35;
    text-decoration: line-through;
}

.legend-color {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.chart-table th {
    font-family: 'Outfit', sans-serif;
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: #1e293b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.chart-table th:first-child {
    border-radius: 8px 0 0 0;
}

.chart-table th:last-child {
    border-radius: 0 8px 0 0;
}

.chart-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.chart-table a {
    color: #0693e3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.chart-table a:hover {
    color: #7c3aed;
}

.matrix-section {
    margin-bottom: 24px;
}

.matrix-card {
    padding: 24px;
    overflow-x: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.matrix-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(6, 147, 227, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(6, 147, 227, 0.06);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.matrix-table th {
    font-family: 'Outfit', sans-serif;
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: #1e293b;
    white-space: nowrap;
}

.matrix-table th:first-child {
    text-align: left;
    border-radius: 8px 0 0 0;
}

.matrix-table th:last-child {
    border-radius: 0 8px 0 0;
}

.matrix-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

.matrix-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1e293b;
}

.matrix-table tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.matrix-table tr:last-child td {
    font-weight: 700;
    background: rgba(6, 147, 227, 0.04);
    border-top: 2px solid rgba(6, 147, 227, 0.15);
}

.matrix-table a {
    color: #0693e3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.matrix-table a:hover {
    color: #7c3aed;
}

.issue-list-section {
    margin-bottom: 24px;
}

.issue-list-card {
    padding: 24px;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.issue-list-card:hover {
    box-shadow:
        0 4px 20px rgba(6, 147, 227, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
}

.table-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 8px;
}

.table-filters-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.table-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 12px;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.table-filters.collapsed {
    display: none;
}

.table-filters label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.table-filters .custom-dropdown .dropdown-toggle {
    padding: 6px 28px 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    background: white;
}

.table-filters .custom-dropdown.open .dropdown-toggle {
    border-color: rgba(6, 147, 227, 0.4);
    box-shadow: 0 0 0 2px rgba(6, 147, 227, 0.1);
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-info {
    font-size: 0.8rem;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-controls select {
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.8rem;
    background: white;
    outline: none;
}

.page-btn {
    padding: 6px 14px;
    border: 1px solid rgba(6, 147, 227, 0.2);
    border-radius: 6px;
    background: white;
    color: #0693e3;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: rgba(6, 147, 227, 0.08);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.page-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.page-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.issue-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.issue-table th {
    font-family: 'Outfit', sans-serif;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: #1e293b;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background 0.2s;
}

.issue-table th:hover {
    background: #334155;
}

.issue-table th .sort-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.7rem;
    opacity: 0.5;
}

.issue-table th.sort-active .sort-indicator {
    opacity: 1;
}

.issue-table th:first-child {
    border-radius: 8px 0 0 0;
    text-align: left;
}

.issue-table th:last-child {
    border-radius: 0 8px 0 0;
}

.issue-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

.issue-table tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.issue-table tr:hover {
    background: rgba(6, 147, 227, 0.04);
}

.issue-table a {
    color: #0693e3;
    text-decoration: none;
    font-weight: 600;
}

.issue-table a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.issue-table .summary-col {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue-table .nowrap-col {
    white-space: nowrap;
}

.export-bar {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.export-btn {
    padding: 8px 20px;
    border: 1px solid rgba(6, 147, 227, 0.2);
    border-radius: 8px;
    background: white;
    color: #0693e3;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.export-btn:hover {
    background: rgba(6, 147, 227, 0.08);
    transform: translateY(-1px);
}

.export-btn:active {
    transform: translateY(0) scale(0.97);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.back-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.detail-filter-info {
    padding: 12px 20px;
    margin-bottom: 20px;
    background: rgba(6, 147, 227, 0.06);
    border: 1px solid rgba(6, 147, 227, 0.12);
    border-radius: 12px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.detail-filters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.detail-filters label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.detail-filters select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.8rem;
    background: white;
    outline: none;
}

.detail-filters select:focus {
    border-color: rgba(6, 147, 227, 0.4);
}

.results-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 16px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(6, 147, 227, 0.12);
    border-top-color: #0693e3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 147, 227, 0); }
    50% { box-shadow: 0 0 20px 2px rgba(6, 147, 227, 0.08); }
}

.genie-open {
    animation: fadeSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.genie-close {
    animation: fadeSlideIn 0.15s cubic-bezier(0.22, 1, 0.36, 1) reverse forwards !important;
}

.genie-waiting {
    opacity: 0 !important;
    transform: translateY(12px) scale(0.98) !important;
}

.loading-text {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.loading-fact {
    margin-top: 32px;
    max-width: 480px;
    text-align: center;
    padding: 0 24px;
}

.loading-fact-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0693e3;
    margin-bottom: 8px;
}

.loading-fact-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    font-weight: 400;
    min-height: 48px;
}

.loading-fact-text.fact-fade-in {
    animation: factFadeIn 0.4s ease-out forwards;
}

.loading-fact-text.fact-fade-out {
    animation: factFadeOut 0.4s ease-in forwards;
}

@keyframes factFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes factFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-6px); }
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-todo { background: rgba(100, 116, 139, 0.1); color: #64748b; }
.status-inprogress { background: rgba(6, 147, 227, 0.1); color: #0693e3; }
.status-done { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.status-blocked { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.status-onhold { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.status-cancelled { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }
.status-customerreview { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }

.priority-showstopper, .priority-highest { color: #dc2626; font-weight: 700; }
.priority-high { color: #ea580c; font-weight: 600; }
.priority-medium { color: #d97706; }
.priority-low { color: #16a34a; }
.priority-lowest { color: #64748b; }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 147, 227, 0.1), rgba(124, 58, 237, 0.1), transparent);
    margin: 24px 0;
}

@media screen and (max-width: 768px) {
    .app-header {
        padding: 12px 16px;
    }

    .main-content {
        padding: 0 16px 24px;
    }

    .metrics-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .lifecycle-row-3,
    .lifecycle-row-2 {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-value, .kpi-value {
        font-size: 20px;
    }

    .metric-label, .kpi-label {
        font-size: 9px;
    }

    .app-title {
        font-size: 1.3rem;
    }

    .pagination-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.lifecycle-section {
    margin-bottom: 24px;
}

.lifecycle-row {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.lifecycle-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.lifecycle-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.chart-container-wide {
    height: 320px;
}

.lifecycle-section canvas {
    cursor: pointer;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .metrics-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .metric-value, .kpi-value {
        font-size: 24px;
    }

    .metric-label, .kpi-label {
        font-size: 10px;
    }
}
