/* kpi.html — page-specific styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0b0e13 0%, #141c28 100%);
    min-height: 100vh;
    color: #f2f5f9;
    line-height: 1.6;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar with Enhanced Modern Design */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 24px 0;
    box-shadow: 2px 0 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 80px;
}

/* Ensure main content adjusts when sidebar is collapsed */
.app-container .sidebar.collapsed ~ .main-content .content {
    max-width: calc(100vw - 80px);
    transition: max-width 0.3s ease;
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    height: 32px;
}

.logo .material-icons {
    margin-right: 12px;
    font-size: 28px;
}

.header-buttons {
    margin-top: 16px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #8c99a8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.header-btn:hover {
    background: rgba(43,139,230,0.2);
    border-color: #2b8be6;
    color: #2b8be6;
}

.header-btn .material-icons {
    font-size: 18px;
}

/* Navigation Items with Modern Styling */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    color: white;
    width: 100%;
    text-align: left;
    position: relative;
    border-radius: 0 25px 25px 0;
    margin: 4px 0;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.nav-item.section-header {
    background: rgba(43,139,230,0.2);
    border-left: 4px solid #2b8be6;
    color: #2b8be6;
    font-weight: 600;
    margin: 8px 0 4px 0;
    box-shadow: 0 4px 15px rgba(43,139,230,0.2);
}

.nav-item.active-page {
    background: linear-gradient(135deg, rgba(43,139,230,0.3), rgba(84,104,242,0.3));
    border-left: 4px solid #5468f2;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(84,104,242,0.3);
}

.nav-item .material-icons {
    margin-right: 12px;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .expand-icon {
    display: none;
}

.nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.expand-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.nav-item.section-header.expanded .expand-icon {
    transform: rotate(90deg);
}

.nav-item.section-header.expanded {
    background: #26303f;
}

/* Sub-navigation with Modern Design */
.nav-subitems {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #26303f;
    backdrop-filter: blur(10px);
}

.nav-subitems.expanded {
    max-height: 1000px;
}

.sidebar.collapsed .nav-subitems {
    display: none;
}

.nav-subitems .nav-item {
    background: transparent;
    padding-left: 52px;
    font-weight: 400;
    margin: 2px 0;
}

.nav-subitems .nav-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(8px);
}

.nav-subitems .nav-item.active-page {
    background: rgba(84,104,242,0.2);
    border-left: 3px solid #5468f2;
}

/* Main Content with Enhanced Modern Styling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden; /* Prevent horizontal overflow */
}

.header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    margin-left: 20px;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Enhanced Modern Button Styling */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    box-shadow: 0 4px 15px rgba(43,139,230,0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43,139,230,0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 25px;
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Content Area Enhanced Styling */
.content {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
    position: relative;
    max-width: calc(100vw - 280px); /* Account for sidebar width */
    width: 100%;
}

/* Adjust content when sidebar is collapsed */
.sidebar.collapsed + .main-content .content {
    max-width: calc(100vw - 80px); /* Account for collapsed sidebar width */
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.initiative-selector {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.selector-title {
    font-size: 18px;
    font-weight: 500;
    color: #f2f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.initiative-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.initiative-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #f2f5f9;
}

.initiative-chip.selected {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    border-color: #2b8be6;
}

.initiative-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43,139,230,0.4);
}

.chip-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.chip-status.warning { background: #ff9800; }
.chip-status.critical { background: #f44336; }

.select-all-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #f2f5f9;
}

.select-all-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #f2f5f9;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #c9d2dc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-content-area {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

.kpi-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    flex: 1;
}

.add-btn {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-btn:hover {
    background: rgba(255,255,255,0.35);
}

.kpi-list {
    padding: 24px;
}

.kpi-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
}

.kpi-item:hover {
    border-color: #2b8be6;
    box-shadow: 0 4px 12px rgba(43,139,230,0.4);
    background: rgba(255, 255, 255, 0.12);
}

.initiative-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(43,139,230,0.25);
    color: #5aa6ee;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-info {
    flex: 1;
    margin-right: 60px;
}

.kpi-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: #f2f5f9;
}

.kpi-category {
    font-size: 12px;
    color: #c9d2dc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

.value-number {
    font-size: 24px;
    font-weight: 700;
    color: #f2f5f9;
}

.value-unit {
    font-size: 14px;
    color: #c9d2dc;
}

.kpi-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
}

.status-good { background: #4caf50; }
.status-warning { background: #ff9800; }
.status-critical { background: #f44336; }

.kpi-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #c9d2dc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f2f5f9;
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.form-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #f2f5f9;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f2f5f9;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
    color: #f2f5f9;
}

.form-input:focus {
    outline: none;
    border-color: #2b8be6;
    box-shadow: 0 0 0 3px rgba(43,139,230,0.15);
    background: rgba(255, 255, 255, 0.12);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: #f2f5f9;
}

.form-select:focus {
    outline: none;
    border-color: #2b8be6;
    box-shadow: 0 0 0 3px rgba(43,139,230,0.15);
    background: rgba(255, 255, 255, 0.12);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #c9d2dc;
}

.empty-icon {
    font-size: 48px;
    color: #818d9e;
    margin-bottom: 16px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
}

.filter-tab {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #c9d2dc;
}

.filter-tab.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    color: #2b8be6;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2b8be6, #5468f2);
    transition: width 0.3s ease;
}

.initiatives-overview {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.initiative-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
}

.initiative-item:hover {
    border-color: #2b8be6;
    box-shadow: 0 4px 12px rgba(43,139,230,0.4);
    background: rgba(255, 255, 255, 0.12);
}

.initiative-info h4 {
    font-weight: 500;
    margin-bottom: 4px;
    color: #f2f5f9;
}

.initiative-meta {
    font-size: 12px;
    color: #c9d2dc;
    display: flex;
    gap: 16px;
}

.initiative-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-mini {
    text-align: center;
}

.stat-mini-value {
    font-weight: 700;
    color: #f2f5f9;
}

.stat-mini-label {
    font-size: 10px;
    color: #c9d2dc;
    text-transform: uppercase;
}

/* Enhanced Vertical Slider Styles */
.slider-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.slider-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #f2f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vertical-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    border-radius: 4px;
    transform: rotate(180deg);
    margin: 20px auto;
    display: block;
}

.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(43,139,230,0.4);
    transition: all 0.2s ease;
}

.vertical-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(43,139,230,0.5);
}

.vertical-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(43,139,230,0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 12px;
    color: #c9d2dc;
}

.slider-value {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #2b8be6;
    margin: 8px 0;
}

.slider-controls {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.slider-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #f2f5f9;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }

    .sidebar .nav-text {
        display: none;
    }

    .header-title {
        font-size: 20px;
    }

    .content {
        padding: 20px;
    }

    .main-content-area {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .initiative-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .initiative-chip {
        justify-content: center;
    }
}

/* Enhanced Pria Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
}

.chatbot-trigger {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(43,139,230,0.4);
    transition: all 0.3s ease;
    border: none;
    color: white;
    animation: chatbotPulse 3s infinite;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(43,139,230,0.5);
}

.chatbot-trigger .material-icons {
    font-size: 32px;
}

@keyframes chatbotPulse {
    0% {
        box-shadow: 0 8px 25px rgba(43,139,230,0.5), 0 0 0 0 rgba(43,139,230,0.8);
    }
    70% {
        box-shadow: 0 8px 25px rgba(43,139,230,0.5), 0 0 0 15px rgba(43,139,230,0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(43,139,230,0.5), 0 0 0 0 rgba(43,139,230,0);
    }
}

.chatbot-window {
    position: fixed;
    bottom: 122px;
    right: 32px;
    width: 380px;
    height: calc(100vh - 210px);
    max-height: calc(100vh - 210px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.chatbot-window.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chatbot-header {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
}

.chatbot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-image: url('../pria-avatar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.chatbot-info {
    flex: 1;
}

.chatbot-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
}

.chatbot-status {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.quick-action {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8c99a8;
}

.quick-action:hover {
    background: rgba(43,139,230,0.2);
    border-color: #2b8be6;
    color: #2b8be6;
}

.chatbot-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
}

.message {
    margin-bottom: 20px;
    animation: messageSlideIn 0.4s ease;
}

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

.message.bot {
    display: flex;
    align-items: flex-start;
}

.message.user {
    display: flex;
    justify-content: flex-end;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.message-content {
    max-width: 85%;
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f2f5f9;
    border-bottom-left-radius: 6px;
}

.message.user .message-content {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    border-bottom-right-radius: 6px;
}

.chatbot-input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 14px;
    color: #f2f5f9;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.chatbot-input:focus {
    border-color: #2b8be6;
    background: rgba(255, 255, 255, 0.1);
}

#chatbot-ai-btn:hover {
    background: linear-gradient(135deg, rgba(43,139,230,0.4), rgba(84,104,242,0.5));
    border-color: #5468f2;
    color: #b8c1fa;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(84,104,242,0.4);
}
#chatbot-ai-btn.loading {
    pointer-events: none;
    animation: sparkle-pulse 1.2s ease-in-out infinite;
}
@keyframes sparkle-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(84,104,242,0.3); }
    50% { opacity: 0.6; box-shadow: 0 0 20px rgba(84,104,242,0.6); }
}

.claude-api-bar { display: flex; align-items: center; gap: 12px; }
.claude-api-bar label { font-size: 0.75rem; color: rgba(255,255,255,0.6); white-space: nowrap; }
.claude-api-bar input { flex: 1; min-width: 180px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #c9d2dc; padding: 8px 12px; font-size: 13px; }
.claude-api-bar input:focus { border-color: #5468f2; outline: none; }
.claude-api-bar input::placeholder { color: rgba(255,255,255,0.35); }
.claude-api-bar button { background: linear-gradient(135deg, #2b8be6, #5468f2); color: white; border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.claude-api-bar button:hover { opacity: 0.9; }
.claude-api-bar button.connected { background: linear-gradient(135deg, #059669, #10b981); }
.claude-api-bar.hidden { display: none !important; }

/* AI-powered chatbot response (outcome-results style inside chatbot) */
.message.bot .message-content.ai-styled {
    background: rgba(11,14,19,0.85);
    border: 1px solid rgba(43,139,230,0.25);
    max-width: 92%;
    padding: 20px;
}
.message.bot .message-content.ai-styled .ai-response {
    line-height: 1.7;
    color: #ffffff;
    font-size: 13px;
}
.message.bot .message-content.ai-styled .ai-response h2 {
    font-weight: 700;
    color: #2b8be6;
    margin: 16px 0 8px 0;
    border-bottom: 1px solid rgba(43,139,230,0.3);
    padding-bottom: 6px;
    font-size: 15px;
}
.message.bot .message-content.ai-styled .ai-response h3 {
    color: #2b8be6;
    font-weight: 600;
    margin: 14px 0 6px 0;
    font-size: 14px;
}
.message.bot .message-content.ai-styled .ai-response p {
    margin-bottom: 10px;
    color: #c9d2dc;
}
.message.bot .message-content.ai-styled .ai-response ul,
.message.bot .message-content.ai-styled .ai-response ol {
    padding-left: 20px;
    margin: 8px 0;
}
.message.bot .message-content.ai-styled .ai-response li {
    margin-bottom: 6px;
    color: #c9d2dc;
}
.message.bot .message-content.ai-styled .ai-response ul li {
    list-style-type: disc;
}
.message.bot .message-content.ai-styled .ai-response ul li::marker {
    color: #2b8be6;
}
.message.bot .message-content.ai-styled .ai-response ol li {
    list-style-type: decimal;
}
.message.bot .message-content.ai-styled .claude-stream-text {
    white-space: pre-wrap;
    word-break: break-word;
    color: #c9d2dc;
}

.chatbot-input::placeholder {
    color: #8c99a8;
}

.quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.quick-action {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8c99a8;
}

.quick-action:hover {
    background: rgba(43,139,230,0.2);
    border-color: #2b8be6;
    color: #2b8be6;
}

.quick-action.kpi-help {
    background: rgba(255, 255, 255, 0.08);
    color: #c9d2dc;
}

.quick-action.kpi-help:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.tutorial-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border-color: #10b981;
    color: #10b981;
}

.tutorial-btn:hover {
    background: rgba(16, 185, 129, 0.35);
    border-color: #10b981;
    color: #10b981;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.typing-dots {
    display: flex;
    gap: 6px;
    margin-left: 12px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #8c99a8;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .chatbot-window {
        width: 350px;
        height: calc(100vh - 190px);
        max-height: calc(100vh - 190px);
        right: 16px;
    }
}

/* Enhanced Issues Tracker Styles */
.issues-tracker-container {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1001;
}

.issues-tracker-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50% 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -4px 0 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    border: none;
    color: white;
    animation: issuesPulse 4s infinite;
}

.issues-tracker-trigger:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -8px 0 25px rgba(245, 158, 11, 0.4);
}

.issues-tracker-trigger .material-icons {
    font-size: 24px;
}

@keyframes issuesPulse {
    0% {
        box-shadow: -4px 0 15px rgba(245, 158, 11, 0.4), 0 0 0 0 rgba(245, 158, 11, 0.8);
    }
    70% {
        box-shadow: -4px 0 15px rgba(245, 158, 11, 0.4), 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: -4px 0 15px rgba(245, 158, 11, 0.4), 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.issues-tracker-window {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 400px;
    max-height: 90vh;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 0 0 20px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-50%) translateX(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.issues-tracker-window.active {
    display: flex;
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.issues-tracker-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.issues-tracker-header-info {
    display: flex;
    align-items: center;
}

.issues-tracker-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.issues-tracker-info {
    flex: 1;
}

.issues-tracker-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.issues-tracker-status {
    font-size: 12px;
    opacity: 0.9;
}

.issues-tracker-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.issues-tracker-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.issues-tracker-form {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.15);
    max-height: calc(90vh - 80px);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f2f5f9;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: #f2f5f9;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #c9d2dc;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 20px;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
    color: #10b981;
}

.form-success .material-icons {
    font-size: 48px;
    margin-bottom: 16px;
}

.form-success h3 {
    margin-bottom: 8px;
    color: #f2f5f9;
}

.form-success p {
    color: #c9d2dc;
    font-size: 14px;
}

.hidden {
    display: none;
}

/* Responsive Design for Issues Tracker */
@media (max-width: 768px) {
    .issues-tracker-window {
        width: 320px;
        max-height: 85vh;
        min-height: 400px;
        right: 50px;
    }

    .issues-tracker-container {
        top: 50%;
        right: 0;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .issues-tracker-window {
        width: 280px;
        max-height: 80vh;
        min-height: 350px;
        right: 40px;
    }

    .issues-tracker-form {
        max-height: calc(80vh - 80px);
        padding: 16px;
    }

    .issues-tracker-trigger {
        width: 50px;
        height: 50px;
    }

    .issues-tracker-trigger .material-icons {
        font-size: 20px;
    }
}

/* ─── AI Recommendation Button ─── */
.btn.btn-recommend { background: linear-gradient(135deg, #5468f2, #4255d9); border-color: #1431ed; color: white; }
.btn.btn-recommend:hover { background: linear-gradient(135deg, #8c9bf7, #5468f2); border-color: #4255d9; color: white; box-shadow: 0 4px 15px rgba(84,104,242,0.4); }
.btn.btn-recommend .material-icons { font-size: 16px; vertical-align: middle; margin-right: 4px; }

/* ─── AI Recommendation Modal ─── */
.recommend-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    z-index: 2000; align-items: center; justify-content: center;
}
.recommend-modal-overlay.open { display: flex; }
.recommend-modal {
    background: linear-gradient(135deg, #0b0e13 0%, #141c28 100%);
    border: 1px solid rgba(84,104,242,0.3);
    border-radius: 20px; padding: 0; width: 700px; max-width: 95vw;
    max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(84,104,242,0.15);
    overflow: hidden;
}
.recommend-modal-header {
    background: linear-gradient(135deg, #5468f2, #4255d9);
    padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
    color: white;
}
.recommend-modal-header h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.recommend-modal-header h3 .material-icons { font-size: 24px; }
.recommend-modal-close {
    background: rgba(255,255,255,0.15); border: none; color: white; cursor: pointer;
    padding: 8px; border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.recommend-modal-close:hover { background: rgba(255,255,255,0.25); }
.recommend-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.recommend-input-row {
    display: flex; gap: 12px; align-items: center; margin-bottom: 20px;
}
.recommend-input {
    flex: 1; padding: 14px 20px;
    background: rgba(255,255,255,0.05); border: 2px solid rgba(84,104,242,0.3);
    border-radius: 14px; font-size: 15px; color: #f2f5f9;
    outline: none; transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.recommend-input:focus { border-color: #5468f2; background: rgba(84,104,242,0.1); box-shadow: 0 0 0 4px rgba(84,104,242,0.15); }
.recommend-input::placeholder { color: #838f9f; }
.recommend-ai-btn {
    width: 50px; height: 50px; border-radius: 50%;
    border: 2px solid rgba(84,104,242,0.5);
    background: linear-gradient(135deg, rgba(84,104,242,0.3), rgba(66,85,217,0.4));
    color: #b8c1fa; cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.3s;
}
.recommend-ai-btn:hover {
    background: linear-gradient(135deg, rgba(84,104,242,0.5), rgba(66,85,217,0.6));
    border-color: #8c9bf7; color: white; transform: scale(1.08);
    box-shadow: 0 0 20px rgba(84,104,242,0.5);
}
.recommend-ai-btn.loading { pointer-events: none; animation: sparkle-pulse 1.2s ease-in-out infinite; }
.recommend-ai-btn .material-icons { font-size: 24px; }
.recommend-results {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 24px; min-height: 120px; color: #c9d2dc;
    line-height: 1.7; font-size: 14px;
    max-height: 55vh; overflow-y: auto; scroll-behavior: smooth;
}
.recommend-results.empty {
    display: flex; align-items: center; justify-content: center;
    color: #a1aab6; font-style: italic; min-height: 160px;
}
        .recommend-results h1 { font-weight: 700; color: #8c9bf7; margin: 24px 0 12px 0; font-size: 20px; border-bottom: 2px solid rgba(84,104,242,0.3); padding-bottom: 8px; }
.recommend-results h2 { font-weight: 700; color: #5468f2; margin: 22px 0 10px 0; border-bottom: 1px solid rgba(84,104,242,0.25); padding-bottom: 6px; font-size: 17px; }
.recommend-results h3 { color: #8c9bf7; font-weight: 600; margin: 16px 0 8px 0; font-size: 15px; }
.recommend-results h4 { color: #b8c1fa; font-weight: 600; margin: 12px 0 6px 0; font-size: 14px; }
.recommend-results p { margin-bottom: 10px; color: #cdd4df; line-height: 1.7; }
.recommend-results ul, .recommend-results ol { padding-left: 24px; margin: 8px 0 12px 0; }
.recommend-results li { margin-bottom: 8px; color: #cdd4df; line-height: 1.6; }
.recommend-results li ul, .recommend-results li ol { margin-top: 6px; margin-bottom: 4px; }
.recommend-results ul li { list-style-type: disc; }
.recommend-results ul li::marker { color: #5468f2; }
.recommend-results ul ul li { list-style-type: circle; }
.recommend-results ul ul li::marker { color: #4255d9; }
.recommend-results ol li { list-style-type: decimal; }
.recommend-results ol li::marker { color: #5468f2; font-weight: 600; }
.recommend-results strong { color: #f2f5f9; font-weight: 600; }
.recommend-results em { color: #b8c1fa; font-style: italic; }
.recommend-results blockquote {
    border-left: 3px solid #5468f2; margin: 12px 0; padding: 10px 16px;
    background: rgba(84,104,242,0.08); border-radius: 0 8px 8px 0; color: #b8c1fa;
}
.recommend-results blockquote p { margin-bottom: 4px; color: #b8c1fa; }
.recommend-results table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.recommend-results thead th {
    background: rgba(84,104,242,0.2); color: #b8c1fa; font-weight: 600;
    padding: 10px 12px; text-align: left; border-bottom: 2px solid rgba(84,104,242,0.3);
}
.recommend-results tbody td {
    padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #cdd4df;
}
.recommend-results tbody tr:hover td { background: rgba(84,104,242,0.06); }
.recommend-results > :first-child { margin-top: 0; }
.recommend-results::-webkit-scrollbar { width: 6px; }
.recommend-results::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
.recommend-results::-webkit-scrollbar-thumb { background: rgba(84,104,242,0.3); border-radius: 3px; }
.recommend-results::-webkit-scrollbar-thumb:hover { background: rgba(84,104,242,0.5); }
.recommend-btn-row {
    display: none; margin: 20px auto 0; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.recommend-btn-row.visible { display: flex; }
.recommend-print-btn, .recommend-apply-btn {
    display: flex; padding: 12px 28px;
    border-radius: 12px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    align-items: center; gap: 8px; justify-content: center;
    color: #fff; border: 1px solid;
}
.recommend-print-btn {
    background: linear-gradient(135deg, #5468f2, #4255d9); border-color: #1431ed;
}
.recommend-print-btn:hover { background: linear-gradient(135deg, #8c9bf7, #5468f2); box-shadow: 0 4px 15px rgba(84,104,242,0.4); }
.recommend-apply-btn {
    background: linear-gradient(135deg, #10b981, #059669); border-color: #047857;
}
.recommend-apply-btn:hover { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.recommend-apply-btn.loading { opacity: 0.7; pointer-events: none; }
.recommend-apply-btn.loading::after {
    content: ''; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: rgba(201,209,220,.14); border-radius: 50%; animation: applyBtnSpin 0.8s linear infinite; margin-left: 6px;
}
@keyframes applyBtnSpin { to { transform: rotate(360deg); } }

/* Applied Recommendations Success Modal */
.applied-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    z-index: 100001; align-items: center; justify-content: center;
}
.applied-modal-overlay.open { display: flex; }
.applied-modal {
    background: linear-gradient(145deg, #1f2937, #141c28);
    border: 1px solid rgba(16,185,129,0.3); border-radius: 20px;
    padding: 48px 40px 36px; text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 60px rgba(16,185,129,0.15);
    max-width: 460px; width: 90%; animation: appliedModalIn 0.4s ease forwards;
}
@keyframes appliedModalIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.applied-modal-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.2));
    border: 2px solid rgba(16,185,129,0.4);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; animation: appliedPulse 2s ease-in-out infinite;
}
@keyframes appliedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.3); }
    50% { box-shadow: 0 0 20px 8px rgba(16,185,129,0.15); }
}
.applied-modal-icon .material-icons { font-size: 36px; color: #34d399; }
.applied-modal h2 { font-size: 22px; font-weight: 700; color: #c9d2dc; margin-bottom: 12px; }
.applied-modal p { font-size: 14px; color: #8c99a8; line-height: 1.6; margin-bottom: 28px; }
.applied-modal-continue {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; background: linear-gradient(135deg, #10b981, #059669);
    border: none; border-radius: 12px; color: #fff;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
}
.applied-modal-continue:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 20px rgba(16,185,129,0.4); transform: translateY(-1px);
}
.applied-modal-continue .material-icons { font-size: 20px; }
.recommend-quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.recommend-chip {
    padding: 8px 16px; background: rgba(84,104,242,0.1);
    border: 1px solid rgba(84,104,242,0.25); border-radius: 20px;
    font-size: 12px; cursor: pointer; transition: all 0.3s; color: #8c9bf7;
}
.recommend-chip:hover { background: rgba(84,104,242,0.25); border-color: #5468f2; color: #b8c1fa; }
@media print {
    body * { visibility: hidden; }
    #recommendResults, #recommendResults * { visibility: visible; }
    #recommendResults {
        position: absolute; left: 0; top: 0; width: 100%;
        background: #fff !important; color: #141c28 !important;
        border: none !important; padding: 30px !important;
        font-size: 13px !important; line-height: 1.6 !important;
    }
    #recommendResults h2 { color: #0c21a6 !important; border-bottom: 2px solid #5468f2 !important; }
    #recommendResults h3 { color: #1431ed !important; }
    #recommendResults p, #recommendResults li { color: #1c2430 !important; }
    #recommendResults strong { color: #000 !important; }
    #recommendResults ul li::marker { color: #4255d9 !important; }
    .recommend-print-btn { display: none !important; }
}
