/*file name iei.css*/
/* =================== INDUSTRIES IDEAS EXPLORER STYLES =================== */
/* Prefix: iei_ for all classes */

.iei-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(12px);
    z-index: 80001;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.iei-modal-content {
    background: linear-gradient(145deg, #1f2937, #111827);
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    margin: 20px auto;
}
.iei-modal-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.iei-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.iei-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.iei-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.iei-confirm-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}
.iei-industry-selector {
    transition: all 0.3s ease-out;
    overflow: visible;
}

.iei-industry-selector.collapsed {
    max-height: 0px;
    opacity: 0;
    margin-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.iei-industry-selector.expanded {
    max-height: none;
    opacity: 1;
    margin-bottom: 20px;
}

.iei-selector-label {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.iei-industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns */
    gap: 12px;
}

.iei-industry-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    min-height: 100px; /* Fixed minimum height */
    height: 100%;
}

.iei-industry-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.iei-industry-icon {
    font-size: 28px;
    line-height: 1;
}

.iei-industry-name {
    font-size: 13px;
    line-height: 1.2;
}

/* Show All Industries Button */
.iei-show-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iei-show-all-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.iei-show-all-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* All Industries Grid */
.iei-all-industries {
    margin-top: 12px;
    transition: all 0.4s ease-out;
    overflow: hidden;
}

.iei-all-industries.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.iei-all-industries.expanded {
    max-height: none;
    opacity: 1;
}
/* History Section */
.iei-history-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.iei-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iei-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iei-history-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(4px);
}

.iei-history-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.iei-history-name {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iei-history-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.iei-history-item:hover .iei-history-arrow {
    color: #93c5fd;
    transform: translateX(3px);
}

/* History Pagination */
.iei-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.iei-page-btn-sm {
    padding: 4px 10px !important;
    font-size: 12px !important;
    min-width: 28px !important;
}

/* More Ideas & Share Buttons Container */
.iei-more-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    flex-wrap: nowrap;
}

.iei-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    color: #6ee7b7;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iei-more-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.iei-more-btn i {
    font-size: 16px;
}

/* Share Ideas Button */
.iei-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iei-share-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.3));
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.iei-share-btn.copied {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    border-color: rgba(16, 185, 129, 0.6);
    color: #6ee7b7;
}

.iei-share-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.iei-share-btn.copied i {
    transform: scale(1.2);
}

/* Selected Industry Header */
.iei-selected-industry {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iei-selected-industry.visible {
    display: flex;
}

.iei-selected-industry:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

.iei-selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iei-selected-icon {
    font-size: 24px;
}

.iei-selected-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iei-selected-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iei-selected-name {
    font-size: 15px;
    font-weight: 600;
    color: #93c5fd;
}

.iei-change-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.iei-change-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Results Section */
.iei-results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: all 0.3s ease-in;
    min-height: 0;
}

.iei-results-section.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.iei-results-section.visible {
    opacity: 1;
}

/* Search Bar */
.iei-search-container {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.iei-search-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
}

.iei-search-input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.iei-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.iei-search-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.iei-search-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #bfdbfe;
    transform: translateY(-1px);
}

/* Loading State */
.iei-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: white;
}

.iei-loading.active {
    display: flex;
}

.iei-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-left: 3px solid #3b82f6;
    border-radius: 50%;
    animation: iei-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes iei-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iei-loading-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Results List */
.iei-results-list {
    flex: 1;
    overflow-y: visible;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    min-height: 0;
}

/* Reuse existing styles with new prefix */
.iei-results-list .product_service_idea_item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.iei-results-list .product_service_idea_item:last-child {
    border-bottom: none;
}

/* Pagination - ALWAYS VISIBLE WHEN RESULTS ARE SHOWN */
.iei-pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

/* Show pagination when it has content */
.iei-pagination:not(:empty) {
    display: flex !important;
}

.iei-page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.iei-page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.iei-page-btn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #93c5fd;
    font-weight: 600;
}

.iei-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.iei-page-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    padding: 0 10px;
}

/* Use Idea Button - Hidden */
.iei-use-container {
    display: none !important;
}

.iei-use-container.visible {
    display: block;
}

/* Empty State */
.iei-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.iei-empty-state.visible {
    display: flex;
}

.iei-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.iei-empty-text {
    font-size: 15px;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .iei-modal {
        padding: 0;
        align-items: flex-start;
    }
    
    .iei-modal-content {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .iei-modal-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
        padding: 15px;
        padding-bottom: 100px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    
    .iei-matrix-list {
        max-height: 150px;
    }
    
    .iei-modal-header {
        padding: 12px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .iei-modal-title {
        font-size: 16px;
    }
    
    .iei-industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .iei-industry-btn {
        padding: 12px 8px;
        min-height: 80px;
    }
    
    .iei-industry-icon {
        font-size: 24px;
    }
    
    .iei-industry-name {
        font-size: 11px;
    }
    
    .iei-show-all-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .iei-all-industries.expanded {
        max-height: none;
    }
    
    .iei-history-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .iei-history-item {
        padding: 10px 12px;
    }
    
    .iei-history-icon {
        font-size: 18px;
    }
    
    .iei-history-name {
        font-size: 13px;
    }
    
    .iei-selected-industry {
        padding: 10px 12px;
    }
    
    .iei-selected-icon {
        font-size: 20px;
    }
    
    .iei-selected-name {
        font-size: 14px;
    }
    
    .iei-search-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .iei-search-btn {
        width: 100%;
    }
    
    .iei-results-section {
        overflow: visible;
        flex: none;
    }
    
    .iei-results-list {
        overflow: visible;
        flex: none;
        max-height: none;
    }
    
    .iei-pagination {
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 8px;
        margin-bottom: 30px;
    }
    
    .iei-page-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .iei-more-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    .iei-more-btn,
    .iei-share-btn {
        padding: 10px 12px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
        white-space: nowrap;
    }

    .iei-more-btn i,
    .iei-share-btn i {
        font-size: 14px;
    }
    
    .iei-use-container {
        padding: 8px 15px;
    }
}
/* Custom Scrollbar for History List */
.iei-history-list::-webkit-scrollbar {
    width: 6px;
}

.iei-history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.iei-history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.iei-history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Ensure modal body can scroll when industries expanded */
.iei-modal-body {
    overflow-y: auto;
}

.iei-modal-body::-webkit-scrollbar {
    width: 8px;
}

.iei-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.iei-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.iei-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* =================== MATRIX SECTION STYLES =================== */

.iei-confirm-wrapper {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 25px;
    max-width: 100%;
    max-height: none;
}

.iei-confirm-title {
    color: #93c5fd;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Matrix Section */
.iei-matrix-section {
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.iei-matrix-section.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.iei-matrix-header {
    text-align: center;
    margin-bottom: 15px;
}

.iei-matrix-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.iei-matrix-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.4;
}

.iei-matrix-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.iei-matrix-column {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
}

.iei-matrix-column-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.iei-matrix-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.iei-matrix-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iei-matrix-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.iei-matrix-item.selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.iei-matrix-item input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #3b82f6;
}

.iei-matrix-item-content {
    flex: 1;
    min-width: 0;
}

.iei-matrix-item-name {
    color: white;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.iei-matrix-item-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section Divider */
.iei-section-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.iei-section-divider::before,
.iei-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.iei-section-divider span {
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Custom Section */
.iei-custom-section {
    transition: opacity 0.3s ease;
}

.iei-custom-section.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.iei-custom-header {
    margin-bottom: 12px;
}

.iei-custom-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.iei-custom-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.iei-service-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.iei-service-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.iei-service-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Start Button */
.iei-start-collect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.iei-start-collect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.iei-start-collect-btn:active {
    transform: translateY(0);
}

/* Matrix List Scrollbar */
.iei-matrix-list::-webkit-scrollbar {
    width: 4px;
}

.iei-matrix-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.iei-matrix-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .iei-confirm-wrapper {
        padding: 20px 15px;
    }
    
    .iei-confirm-title {
        font-size: 18px;
    }
    
    .iei-matrix-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .iei-matrix-list {
        max-height: 180px;
    }
    
    .iei-matrix-item {
        padding: 8px 10px;
    }
    
    .iei-matrix-item-name {
        font-size: 12px;
    }
    
    .iei-matrix-item-desc {
        font-size: 10px;
    }
    
    .iei-start-collect-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}


/* =================== TABS STYLES =================== */

.iei-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 4px;
}

.iei-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iei-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.iei-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.iei-tab i {
    font-size: 14px;
}

/* Tab Contents */
.iei-tab-contents {
    min-height: 200px;
}

.iei-tab-content {
    display: none;
    animation: iei-fadeIn 0.3s ease;
}

.iei-tab-content.active {
    display: block;
}

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

/* Matrix Tab Intro */
.iei-matrix-intro {
    text-align: center;
    margin-bottom: 20px;
}

.iei-matrix-intro p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0 0 6px 0;
}

.iei-matrix-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-style: italic;
}

/* Custom Tab Intro */
.iei-custom-intro {
    text-align: center;
    margin-bottom: 20px;
}

.iei-custom-intro p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0 0 6px 0;
}

.iei-custom-intro strong {
    color: #93c5fd;
}

.iei-custom-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Mobile Responsive for Tabs */
@media (max-width: 768px) {
    .iei-tabs {
        margin-bottom: 15px;
    }
    
    .iei-tab {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .iei-tab i {
        font-size: 12px;
    }
    
    .iei-matrix-intro p,
    .iei-custom-intro p {
        font-size: 13px;
    }
}


/* =================== TEMPLATES MODE STYLES =================== */

.iei-templates-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.iei-template-card {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 120px;
}

.iei-template-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.iei-template-thumbnail {
    flex: 0 0 35%;
    max-width: 140px;
    min-width: 100px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iei-template-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 120px;
}

.iei-template-content {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.iei-template-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iei-template-desc {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.iei-template-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.iei-template-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.iei-template-preview-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

.iei-template-preview-btn i {
    font-size: 14px;
}

/* Templates Mode - Hide ideas-specific elements */
.iei-templates-mode .iei-history-section {
    display: none !important;
}

.iei-templates-mode .iei-more-container {
    display: none !important;
}

/* Mobile Responsive for Templates */
@media (max-width: 768px) {
    .iei-templates-grid {
        padding: 8px;
        gap: 10px;
        padding-bottom: 20px;
    }
    
    .iei-template-card {
        min-height: 100px;
    }
    
    .iei-template-thumbnail {
        flex: 0 0 30%;
        min-width: 80px;
        max-width: 110px;
    }
    
    .iei-template-thumbnail img {
        min-height: 100px;
    }
    
    .iei-template-content {
        padding: 10px 12px;
    }
    
    .iei-template-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .iei-template-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }
    
    .iei-template-preview-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .iei-template-preview-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .iei-template-thumbnail {
        flex: 0 0 28%;
        min-width: 70px;
        max-width: 90px;
    }
    
    .iei-template-content {
        padding: 8px 10px;
    }
    
    .iei-template-title {
        font-size: 12px;
    }
    
    .iei-template-desc {
        font-size: 10px;
    }
    
    .iei-page-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }
}


/* =================== LAYER 3 MODAL - IDEAS COLLECTOR =================== */
.ideas-collector-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(12px);
  z-index: 80000; /* Higher than script generator modal (70000) */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ideas-collector-content {
    background: linear-gradient(145deg, #1f2937, #111827);
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 1100px; 
  max-height: 95vh;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ideas-collector-header-content {
  flex: 1;
}
/* Ideas Collector Modal Header - COMPACT VERSION */
.ideas-collector-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 15px 25px; /* Reduced significantly */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ideas-collector-title {
    margin: 0;
    font-size: 18px; /* Reduced from 20px */
    font-weight: 600; /* Reduced from 700 */
    color: white;
}

.ideas-collector-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px; /* Reduced from 36px */
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Reduced from 16px */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.ideas-collector-body {
    padding: 10px 10px 0 10px; /* Giảm từ 30px xuống 20px */
    max-height: 75vh; /* Tăng từ 70vh lên 75vh */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ideas-input-section {
    margin-bottom: 15px;
    padding: 15px; /* Giảm từ 20px xuống 15px */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.ideas-input-label {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.ideas-input-field {
    width: 100%;
    min-height: 50px; /* Reduced height */
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.ideas-input-field:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.ideas-collect-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.ideas-collect-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

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

/* Reset button */
.ideas-reset-container {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.ideas-reset-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.ideas-reset-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

/* =================== PRODUCTION PLAN STYLES =================== */

/* Success Notification */
.iei-success-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: iei-fadeIn 0.3s ease;
}

.iei-success-notification.hiding {
    animation: iei-fadeOut 0.3s ease forwards;
}

@keyframes iei-fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.iei-success-content {
    background: linear-gradient(145deg, #1f2937, #111827);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.iei-success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 15px;
}

.iei-success-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

.iei-success-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.iei-success-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.iei-success-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iei-success-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.iei-success-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.iei-success-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Production Plan Modal */
.iei-plan-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    z-index: 90000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.iei-plan-modal-content {
    background: linear-gradient(145deg, #1f2937, #111827);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 700px;
    max-height: calc(100vh - 20px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    margin: 10px auto;
}

.iei-plan-modal-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.iei-plan-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iei-plan-modal-title i {
    color: #10b981;
}

.iei-plan-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.iei-plan-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.iei-plan-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 80px;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.iei-plan-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    gap: 15px;
}

.iei-plan-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.iei-plan-empty-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.iei-plan-empty-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.iei-plan-empty-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.iei-plan-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 20px;
}

.iei-plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.iei-plan-item:last-child {
    margin-bottom: 0;
}

.iei-plan-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.iei-plan-item.removing {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.iei-plan-item-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.iei-plan-item-text {
    flex: 1;
    min-width: 0;
}

.iei-plan-item-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iei-plan-item-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iei-plan-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.iei-plan-use-btn,
.iei-plan-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    min-width: 70px;
    padding: 0 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iei-plan-use-btn:hover,
.iei-plan-view-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.iei-plan-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #f87171;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iei-plan-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.iei-plan-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

/* =================== IDEA ITEM STYLES (IEI Modal) =================== */

.iei-idea-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.iei-idea-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.iei-idea-item:last-child {
    border-bottom: none;
}

.iei-idea-content {
    flex: 1;
}

.iei-idea-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.iei-idea-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iei-idea-stats {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.iei-idea-actions {
    display: flex;
    gap: 10px;
}

.iei-idea-queue-btn,
.iei-idea-use-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.iei-idea-queue-btn {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.iei-idea-queue-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
}

.iei-idea-queue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.iei-idea-use-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.iei-idea-use-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* =================== IDEAS COLLECTOR MODAL STYLES =================== */

.product_service_idea_actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.idea-queue-btn,
.idea-use-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.idea-queue-btn {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.idea-queue-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
}

.idea-queue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.idea-use-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.idea-use-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* =================== TEMPLATE ACTIONS (Viral Topics) =================== */

.iei-template-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.iei-template-queue-btn,
.iei-template-preview-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.iei-template-queue-btn {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.iei-template-queue-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
}

.iei-template-queue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.iei-template-preview-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.iei-template-preview-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}


/* =================== PRODUCTION PLAN STATUS BADGES =================== */

.iei-plan-item-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.iei-plan-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.iei-plan-badge-new {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.iei-plan-badge-draft {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.iei-plan-badge-progress {
    background: rgba(168, 85, 247, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.iei-plan-badge-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.iei-plan-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    display: flex;
    align-items: center;
}


/* =================== MOBILE RESPONSIVE FOR PRODUCTION PLAN =================== */

@media (max-width: 768px) {
    /* Success notification mobile */
    .iei-success-content {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .iei-success-icon {
        font-size: 40px;
    }
    
    .iei-success-text {
        font-size: 16px;
    }
    
    .iei-success-buttons {
        flex-direction: column;
    }
    
    /* Plan modal mobile */
    .iei-plan-modal {
        padding: 0;
    }
    
    .iei-plan-modal-content {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .iei-plan-modal-body {
        padding: 10px;
        padding-bottom: 120px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    
    .iei-plan-list {
        padding-bottom: 30px;
    }
    
    .iei-plan-item {
        padding: 12px;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .iei-plan-item-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .iei-plan-item-title {
        font-size: 13px;
    }
    
    .iei-plan-item-desc {
        font-size: 11px;
    }
    
    .iei-plan-item-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .iei-plan-use-btn {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .iei-plan-delete-btn {
        width: 100%;
        height: 32px;
    }
    
    /* Ideas Collector Modal mobile */
    .product_service_idea_actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .idea-queue-btn,
    .idea-use-btn {
        width: 100%;
    }
    
    /* IEI Modal Ideas mobile */
    .iei-idea-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .iei-idea-queue-btn,
    .iei-idea-use-btn {
        width: 100%;
    }
    
    /* Templates mobile */
    .iei-template-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .iei-template-queue-btn,
    .iei-template-preview-btn {
        width: 100%;
    }
}