/* rationalization.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: #c9d2dc;
    line-height: 1.6;
}

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

/* Sidebar with 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;
}

.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;
}

.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: 10px;
    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.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 Modern Styling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.02);
}

.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    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;
}

@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 */
.content {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
    background: rgba(255,255,255,0.02);
}

/* View Toggle Buttons moved outside container */
.view-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: rgba(23,30,39,0.9);
    color: #a8b5c7;
    border-color: rgba(201,209,220,.14);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
}

.container-header {
    color: #c9d2dc;
    padding: 32px;
    text-align: left;
    position: relative;
    margin-bottom: 10px;
}

.container-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.sample-data-btn {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.sample-data-btn:hover {
    background: linear-gradient(135deg, #45a049, #5bb974);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.sample-data-btn .material-icons {
    font-size: 1.1rem;
}

.main-content-inner {
    padding: 32px;
}

.control-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.add-initiative-form {
    display: flex;
    gap: 16px;
    align-items: end;
    flex: 1;
    min-width: 300px;
}

.form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 500;
    color: #c9d2dc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: #f2f5f9;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #2b8be6;
    box-shadow: 0 0 0 3px rgba(43,139,230,0.1);
    background: rgba(0, 0, 0, 0.4);
}

input[type="text"]::placeholder, textarea::placeholder {
    color: #838f9f;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

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

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

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: #c9d2dc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.scale-legend {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scale-legend h3 {
    margin-bottom: 16px;
    color: #c9d2dc;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-score {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2b8be6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.initiatives-container {
    display: grid;
    gap: 24px;
}

.initiative-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.initiative-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.initiative-header {
    background: linear-gradient(135deg, rgba(43,139,230,0.2), rgba(84,104,242,0.2));
    color: #c9d2dc;
    padding: 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.initiative-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    padding-right: 60px;
}

.initiative-description {
    opacity: 0.9;
    line-height: 1.5;
}

.delete-initiative {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.delete-initiative:hover {
    background: rgba(244, 67, 54, 0.8);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
}

.component-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.component-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.component-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: white;
    font-size: 20px;
}

.sales .component-icon { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }
.marketing .component-icon { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
.customer-experience .component-icon { background: linear-gradient(135deg, #318be5, #96c93d); }
.product-management .component-icon { background: linear-gradient(135deg, #97a4f7, #f5576c); }
.brand .component-icon { background: linear-gradient(135deg, #61a6ec, #00f2fe); }

.component-title {
    font-size: 1rem;
    font-weight: 500;
    color: #c9d2dc;
}

.score-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.score-btn {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9d2dc;
}

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

.score-btn.active {
    background: #2b8be6;
    color: white;
    border-color: #2b8be6;
}

.current-score {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2b8be6;
    margin-bottom: 8px;
}

.score-label {
    font-size: 0.8rem;
    color: #8c99a8;
}

.results-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

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

.results-title {
    display: flex;
    align-items: center;
}

.results-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5d71f3, #112cdc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 16px;
}

.comparison-table {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-header {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr) 1fr;
    gap: 1px;
    padding: 0;
}

.table-header > div {
    padding: 16px 12px;
    font-weight: 500;
    text-align: center;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
}

.table-header > div:first-child {
    text-align: left;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr) 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.table-cell {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9d2dc;
}

.table-cell:first-child {
    text-align: left;
    justify-content: flex-start;
    font-weight: 500;
}

.table-cell:last-child {
    font-weight: 700;
    color: #2b8be6;
    font-size: 1.1rem;
}

.score-cell {
    font-weight: 600;
    font-size: 1.1rem;
}

.score-0 { color: #919cab; }
.score-1 { color: #f44336; }
.score-2 { color: #ff9800; }
.score-3 { color: #ffc107; }
.score-4 { color: #7b889a; }
.score-5 { color: #9edba1; }

.empty-state {
    text-align: center;
    padding: 48px;
    color: #8c99a8;
}

.empty-state .material-icons {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .table-header, .table-row {
        grid-template-columns: 1.5fr repeat(5, 80px) 80px;
    }
}

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

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

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

    .content {
        padding: 20px;
    }

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

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

    .table-header, .table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .table-cell {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .view-toggle {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .toggle-btn {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .chatbot-window {
        width: 320px;
        height: calc(100vh - 190px);
        max-height: calc(100vh - 190px);
    }

    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }

    .issues-tracker-window {
        width: 320px;
        max-height: 85vh;
        min-height: 400px;
        right: 50px;
    }

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

@media print {
    .sidebar {
        display: none;
    }
    .header {
        display: none;
    }
    .button-container {
        display: none;
    }
}

/* 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;
}

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

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

.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;
}

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

.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);
}

.message.bot .message-content.ai-styled .ai-response {
    line-height: 1.7;
    color: #ffffff;
    font-size: 13px;
}

.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;
}

.tutorial-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-color: #10b981;
    color: #10b981;
}
.tutorial-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    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;
    }
}

/* Responsive Design for Chatbot */
@media (max-width: 768px) {
    .chatbot-window {
        width: 320px;
        height: calc(100vh - 190px);
        max-height: calc(100vh - 190px);
        bottom: 80px;
        right: 16px;
    }

    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }
}

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

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

.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: #8c99a8;
    font-size: 14px;
}

/* 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 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 {
    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-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;
}

.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; }
}
