/* Feature Preview Cards - For upcoming features */

.feature-preview-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.preview-icon {
    color: var(--primary-color);
    margin-bottom: 24px;
}

.feature-preview-card h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--gray-900);
    margin: 0 0 16px 0;
}

.feature-preview-card > p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    font-size: 15px;
    color: var(--gray-700);
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.quick-access-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.coming-soon-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 12px;
    border: 2px dashed var(--primary-color);
}

.coming-soon-note i {
    color: var(--primary-color);
    font-size: 20px;
}

.coming-soon-note p {
    margin: 0;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .feature-preview-card {
        padding: 32px 24px;
    }
    
    .feature-preview-card h2 {
        font-size: 22px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .quick-access-buttons {
        flex-direction: column;
    }
    
    .quick-access-buttons .btn {
        width: 100%;
    }
}

/* Warehouse Card Styles */
.warehouse-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.warehouse-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.warehouse-card.inactive {
    opacity: 0.7;
}

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

.warehouse-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.warehouse-icon.primary { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); }
.warehouse-icon.secondary { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.warehouse-icon.success { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.warehouse-icon.warning { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }

.warehouse-name {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0 8px 0;
    color: var(--gray-900);
}

.warehouse-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.warehouse-type-badge.primary { background: rgba(79, 70, 229, 0.1); color: #4F46E5; }
.warehouse-type-badge.secondary { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.warehouse-type-badge.success { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.warehouse-type-badge.warning { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }

.warehouse-stats {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin: 16px 0;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.stat-mini i {
    font-size: 20px;
    color: var(--primary-color);
}

.stat-mini strong {
    display: block;
    font-size: 18px;
    color: var(--gray-900);
}

.stat-mini small {
    display: block;
    font-size: 12px;
    color: var(--gray-600);
}

.warehouse-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

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

/* PO Items Container */
.po-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.po-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 40px;
    gap: 12px;
    align-items: center;
}

.po-item-row select,
.po-item-row input {
    width: 100%;
}

.po-total-section {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.total-row strong {
    font-size: 24px;
    color: var(--primary-color);
}

/* PO Details */
.po-details {}

.po-header-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-group label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
}

.info-group span {
    font-size: 15px;
    color: var(--gray-900);
    font-weight: 500;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.mini-table th,
.mini-table td {
    padding: 12px;
    text-align: start;
    border-bottom: 1px solid var(--gray-200);
}

.mini-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
}

.mini-table tfoot td {
    font-weight: 700;
    background: var(--gray-50);
}

.po-notes {
    margin-top: 24px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
}

.po-notes h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--gray-700);
}

.po-notes p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Analytics Showcase */
.analytics-showcase,
.ai-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-header,
.ai-hero {
    text-align: center;
    margin-bottom: 48px;
}

.showcase-header i,
.ai-icon-large {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.ai-icon-large {
    font-size: 80px;
}

.showcase-header h2,
.ai-hero h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--gray-900);
    margin: 0 0 12px 0;
}

.showcase-header p,
.ai-tagline {
    font-size: 16px;
    color: var(--gray-600);
}

.analytics-grid,
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.analytics-feature,
.ai-feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.analytics-feature:hover,
.ai-feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon,
.ai-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.analytics-feature h3,
.ai-feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px 0;
}

.analytics-feature p,
.ai-feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.feature-details {
    list-style: none;
    padding: 16px 0 0 0;
    margin: 0;
    text-align: start;
    border-top: 1px solid var(--gray-200);
}

.feature-details li {
    font-size: 13px;
    color: var(--gray-700);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-details li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: 900;
}

.current-analytics-note,
.ai-current-tools {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.current-analytics-note i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.current-analytics-note h4,
.ai-current-tools h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px 0;
}

.current-analytics-note ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.current-analytics-note li {
    padding: 8px 0;
    color: var(--gray-700);
}

.quick-nav-buttons,
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* AI Specific Styles */
.ai-how-it-works {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 48px 0;
    box-shadow: var(--shadow-sm);
}

.ai-how-it-works h3 {
    text-align: center;
    margin: 0 0 32px 0;
    font-size: 24px;
    color: var(--gray-900);
}

.how-it-works-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h4 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: var(--gray-900);
}

.step p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.step-arrow {
    color: var(--gray-400);
    font-size: 24px;
}

.ai-accuracy-info {
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 48px 0;
}

.accuracy-icon {
    font-size: 64px;
    opacity: 0.9;
}

.accuracy-content h4 {
    font-size: 22px;
    margin: 0 0 12px 0;
}

.accuracy-content p {
    margin: 0 0 24px 0;
    opacity: 0.9;
}

.accuracy-stats {
    display: flex;
    gap: 32px;
}

.accuracy-stats .stat-item {
    text-align: center;
}

.accuracy-stats strong {
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
}

.accuracy-stats span {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
}

.tool-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.tool-item strong {
    display: block;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.tool-item span {
    font-size: 13px;
    color: var(--gray-600);
}

.ai-cta {
    background: white;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin: 48px 0;
}

.cta-content h3 {
    font-size: 28px;
    margin: 0 0 12px 0;
    color: var(--gray-900);
}

.cta-content p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0 0 32px 0;
}

.ai-future-note {
    text-align: center;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ai-future-note i {
    font-size: 24px;
    color: var(--primary-color);
}

.ai-future-note p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-700);
}

/* Warehouse Details */
.warehouse-details {}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}

.detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.detail-header h3 {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: var(--gray-900);
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
}

.detail-item span {
    font-size: 15px;
    color: var(--gray-900);
}

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

.stat-mini-card {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-mini-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.stat-mini-card strong {
    display: block;
    font-size: 24px;
    color: var(--gray-900);
}

.stat-mini-card small {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .po-item-row {
        grid-template-columns: 1fr;
    }
    
    .how-it-works-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .ai-accuracy-info {
        flex-direction: column;
        text-align: center;
    }
    
    .accuracy-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
}
