:root {
    --primary-color: #007cba;
    --secondary-color: #313131;
    --accent-color: #0693e3;
    --light-gray: #f4f4f4;
    --border-color: #e9ecef;
    --text-color: #313131;
    --text-secondary: #555;
    --card-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Readex Pro', 'Figtree', 'Segoe UI', sans-serif;
    background-color: white;
    color: var(--text-color);
    line-height: 1.6;
}

header {
    border-bottom: 1px solid var(--border-color);
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    padding-bottom: 0;
}

header h1 {
    font-family: 'Readex Pro', sans-serif;
    font-weight: 650;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

header h2 {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.main-content {
    min-height: 500px;
}

.hype-cycle-container {
    position: relative;
    height: 600px;
    margin-bottom: 24px;
    background-color: white;
    border-radius: 3px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed) ease;
}

#hypeCycleChart {
    width: 100%;
    height: 100%;
}

.hype-phase-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    margin-top: -40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: -0.01em;
}

.phase-label {
    flex: 1;
    text-align: center;
}

.filters-panel {
    background-color: white;
    border-radius: 3px;
    box-shadow: var(--card-shadow);
    padding: 24px;
    height: 100%;
    transition: all var(--transition-speed) ease;
}

.filter-section {
    margin-bottom: 28px;
}

.filter-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 600;
}

.use-case-details {
    margin-bottom: 30px;
}

.use-case-details .card-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-family: 'Readex Pro', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.card {
    border-radius: 3px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Tooltip styles */
.tooltip {
    position: fixed; /* Changed from absolute to fixed for stable positioning */
    padding: 12px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    max-width: 300px;
    box-shadow: var(--card-shadow);
    transition: opacity var(--transition-speed) ease;
    transform: translate3d(0, 0, 0); /* Force hardware acceleration */
}

.tooltip h4 {
    margin-top: 0;
    font-size: 1rem;
}

.tooltip p {
    margin-bottom: 5px;
    font-size: 0.8rem;
}

/* Chart point styles */
.chart-point {
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.chart-point:hover {
    stroke-width: 2;
    stroke: var(--primary-color);
    transform: scale(1.1);
}

.chart-point-low {
    fill: #FF7F7F;
}

.chart-point-medium {
    fill: #FFD580;
}

.chart-point-high {
    fill: var(--accent-color);
}

.chart-path {
    fill: none;
    stroke: #ccc;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
}

/* Matrix styles */
#complexityMatrixChart {
    width: 100%;
    height: 300px;
}

.matrix-cell {
    stroke: #fff;
    stroke-width: 1;
}

.matrix-cell:hover {
    stroke: #333;
    stroke-width: 2;
}

.matrix-text {
    font-size: 0.7rem;
    font-weight: 600;
    dominant-baseline: middle;
    text-anchor: middle;
}

/* Table styles */
#useCasesTable {
    box-shadow: var(--card-shadow);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 3px;
    overflow: hidden;
}

#useCasesTable th {
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    padding: 12px 15px;
}

#useCasesTable td {
    font-size: 0.9rem;
    vertical-align: middle;
    padding: 12px 15px;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
}

#useCasesTable tbody tr {
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

#useCasesTable tbody tr:hover {
    background-color: rgba(6, 147, 227, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--card-shadow);
}

#useCasesTable tbody tr.selected {
    background-color: rgba(6, 147, 227, 0.1);
    border-left: 3px solid var(--primary-color);
}

/* Maturity and complexity tags */
.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.tag-low {
    background-color: #ffeeba;
    color: #856404;
    transition: all var(--transition-speed) ease;
}

.tag-medium {
    background-color: rgba(6, 147, 227, 0.15);
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.tag-high {
    background-color: rgba(6, 147, 227, 0.25);
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

/* AWS service icon */
.service-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 3px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.2);
}

/* Navigation styles */
.navbar {
    padding: 0.5rem 0;
    border-radius: 3px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--secondary-color) !important;
    transition: all var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hype-cycle-container {
        height: 500px;
    }
    
    .hype-phase-labels {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .hype-cycle-container {
        height: 400px;
    }
    
    .hype-phase-labels {
        font-size: 0.6rem;
    }
    
    .filters-panel {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hype-cycle-container {
        height: 300px;
    }
}