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

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

.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.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);
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden; /* Prevent horizontal overflow */
}

.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 Styling */
.content {
    padding: 32px;
    flex: 1;
    overflow: auto; /* Allow both horizontal and vertical scrolling */
    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 */
}

/* Kanban Specific Styles */
:root {
    --primary: #2b8be6;
    --primary-dark: #1a62ad;
    --primary-light: #5aa6ee;
    --secondary: #03dac6;
    --surface: rgba(255, 255, 255, 0.05);
    --background: #19212c;
    --on-surface: #f2f5f9;
    --on-surface-variant: #8c99a8;
    --outline: #697689;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2f8ae5;
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-elevated: 0 4px 16px rgba(0,0,0,0.15);
}

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

.page-header {
    text-align: center;
    color: white;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    color: #8c99a8;
}

.controls-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

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

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--on-surface);
}

.control-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43,139,230,0.4);
}

.btn-secondary {
    background: #657284;
}

.btn-secondary:hover {
    background: #545f6e;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #45a049;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.kanban-board {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on mobile */
    position: relative;
}

.kanban-board::-webkit-scrollbar {
    height: 10px;
}
.kanban-board::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}
.kanban-board::-webkit-scrollbar-thumb {
    background: rgba(84,104,242,0.4);
    border-radius: 5px;
}
.kanban-board::-webkit-scrollbar-thumb:hover {
    background: rgba(84,104,242,0.7);
}

/* Scroll hint fade on right edge */
.kanban-board::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    background: linear-gradient(to left, rgba(11,14,19,0.8), transparent);
    flex-shrink: 0;
    display: block;
    z-index: 2;
}
.kanban-board.scrolled-end::after {
    display: none;
}

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

.wip-indicator {
    background: var(--warning);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.columns-container {
    display: flex;
    gap: 16px;
    min-width: 2100px; /* 7 columns × 300px to ensure horizontal scroll */
    padding-bottom: 20px;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.kanban-column.drag-over {
    border-color: var(--primary);
    background: rgba(43,139,230,0.1);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.column-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--on-surface);
}

.wip-limit {
    background: var(--info);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.wip-limit.exceeded {
    background: var(--error);
}

.card-list {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: grab;
    transition: all 0.3s ease;
    border-left: 4px solid var(--info);
}

.kanban-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--on-surface);
    margin-bottom: 4px;
}

.card-id {
    background: rgba(255, 255, 255, 0.2);
    color: var(--on-surface-variant);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.card-description {
    font-size: 0.8rem;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.priority-expedite { background: var(--error); }
.priority-high { background: var(--warning); }
.priority-standard { background: var(--info); }
.priority-low { background: var(--success); }

.class-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(43,139,230,0.2);
    color: var(--primary);
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    color: var(--on-surface-variant);
}

.card-age {
    background: rgba(255, 243, 224, 0.2);
    color: var(--warning);
    padding: 2px 6px;
    border-radius: 4px;
}

.blocked-indicator {
    background: var(--error);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.add-card-btn {
    width: 100%;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 16px;
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.add-card-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(43,139,230,0.1);
}

.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.form-modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elevated);
    color: white;
}

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

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--on-surface-variant);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--on-surface);
    font-size: 0.9rem;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43,139,230,0.1);
}

.select-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.textarea-field {
    min-height: 80px;
    resize: vertical;
}

.report-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    display: none;
}

.report-panel.active {
    display: block;
}

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

.metric-card {
    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;
    border-left: 4px solid var(--primary);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    font-weight: 500;
}

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

.swimlane {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.swimlane:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.swimlane-header {
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.hidden {
    display: none;
}

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

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

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

    .content {
        padding: 20px;
    }

    .columns-container {
        flex-direction: column;
        min-width: unset;
    }

    .kanban-column {
        min-width: unset;
    }

    .controls-header {
        flex-direction: column;
        align-items: stretch;
    }

    .control-buttons {
        justify-content: center;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .controls-panel, .control-buttons {
        display: none;
    }

    .kanban-board {
        box-shadow: none;
        border: 1px solid #c1cad7;
    }
}

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

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

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

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

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

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

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