.ip-gantt-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 20px;
}

.dark-mode .ip-gantt-wrapper {
    background: linear-gradient(135deg, #1a1d29 0%, #0f1419 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Gantt Controls */
.ip-gantt-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(180deg, #334155 0%, #2d3748 100%);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    flex-wrap: wrap;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.dark-mode .ip-gantt-controls {
    background: linear-gradient(180deg, #1e293b 0%, #1a2332 100%);
    border-bottom-color: rgba(148, 163, 184, 0.3);
}

.ip-current-date-wrapper {
    position: relative;
    display: inline-block;
}

.ip-date-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* invisibile */
    cursor: pointer;
}

.ip-gantt-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    color: #94a3b8;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px dashed rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    margin: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}


.ip-controls-left,
.ip-controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Legend */
.ip-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 8px 16px;
    margin-left: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.dark-mode .ip-legend {
    background: rgba(30, 41, 59, 0.95);
}

.ip-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ip-legend-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark-mode .ip-legend-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ip-legend-color {
    width: 24px;
    height: 16px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.ip-legend-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ip-legend-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.ip-legend-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.ip-legend-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.dark-mode .ip-legend-label {
    color: #cbd5e1;
}

/* Zoom Controls */
.ip-zoom-controls {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.dark-mode .ip-zoom-controls {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

.ip-zoom-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.dark-mode .ip-zoom-btn {
    color: #94a3b8;
}

.ip-zoom-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.dark-mode .ip-zoom-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

.ip-zoom-btn.ip-zoom-active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Date Navigator */
.ip-date-navigator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.dark-mode .ip-date-navigator {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

.ip-nav-btn {
    padding: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.dark-mode .ip-nav-btn {
    color: #94a3b8;
}

.ip-nav-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.dark-mode .ip-nav-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

.ip-today-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 100%;
    font-weight: 500;
    gap: 6px;
}

.ip-current-date {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    padding: 0 12px;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ip-current-date:hover {
    color: #2563eb;
}

.dark-mode .ip-current-date {
    color: #f1f5f9;
}

/* Gantt Actions */
.ip-gantt-actions {
    display: flex;
    gap: 4px;
}

.ip-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 100%;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.ip-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

    .ip-btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .ip-btn-primary:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
        transform: translateY(-2px);
    }

    .ip-btn-primary:hover::before {
        left: 100%;
    }

.ip-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.dark-mode .ip-btn-secondary {
    background: #1e293b;
    color: #94a3b8;
    border-color: #475569;
}

.ip-btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

.dark-mode .ip-btn-secondary:hover {
    background: #334155;
    color: #e2e8f0;
}

.ip-btn-danger {
    background: #ef4444;
    color: white;
}

    .ip-btn-danger:hover {
        background: #dc2626;
    }

/* Gantt Container */
.ip-gantt-container {
    height: 600px;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.dark-mode .ip-gantt-container {
    background: #1e293b;
}

.ip-gantt-chart {
    width: 100%;
    height: 100%;
}

/* Summary Panel */
.ip-summary-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 0 0 16px 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

/* Summary Panel */
.ip-summary-consumption {
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
}

.dark-mode .ip-summary-panel {
    background: linear-gradient(135deg, #1a1d29 0%, #0f1419 100%);
    border-top-color: rgba(148, 163, 184, 0.3);
}

.ip-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ip-summary-content {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.ip-summary-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode .ip-summary-title {
    color: #f1f5f9;
}

.ip-close-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dark-mode .ip-close-btn {
    color: #94a3b8;
}

.ip-close-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.dark-mode .ip-close-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

.ip-summary-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.ip-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ip-stat-label {
    font-size: 100%;
    color: #64748b;
    font-weight: 500;
}

.dark-mode .ip-stat-label {
    color: #94a3b8;
}

.ip-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

/* Modal Styles */
.ip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ip-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0,0,0,0.05);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark-mode .ip-modal {
    background: #334155;
}

.ip-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark-mode .ip-modal-header {
    border-bottom-color: #475569;
}

.ip-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.dark-mode .ip-modal-title {
    color: #f1f5f9;
}

.ip-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dark-mode .ip-modal-close {
    color: #94a3b8;
}

.ip-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.dark-mode .ip-modal-close:hover {
    background: #475569;
    color: #e2e8f0;
}

.ip-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.ip-modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dark-mode .ip-modal-footer {
    border-top-color: #475569;
}

/* Form Styles */
.ip-production-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ip-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ip-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ip-form-label {
    font-size: 100%;
    font-weight: 500;
    color: #374151;
}

.dark-mode .ip-form-label {
    color: #d1d5db;
}

.ip-form-control {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #1f2937;
    font-weight: 500;
}

.dark-mode .ip-form-control {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

.ip-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.ip-textarea {
    resize: vertical;
    min-height: 80px;
}

.ip-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 100%;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ip-gantt-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ip-controls-left,
    .ip-controls-right {
        justify-content: center;
    }

    .ip-legend {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .ip-legend-item {
        font-size: 12px;
    }

    .ip-legend-color {
        width: 20px;
        height: 14px;
    }

    .ip-form-row {
        grid-template-columns: 1fr;
    }

    .ip-modal {
        width: 95%;
        margin: 10px;
    }

    .ip-summary-stats {
        justify-content: center;
        gap: 20px;
    }

    .ip-zoom-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ip-gantt-container {
        height: 400px;
    }

    .ip-modal-body {
        padding: 15px;
    }

    .ip-modal-header,
    .ip-modal-footer {
        padding: 15px;
    }
}

.gantt_task_progress {
    background-color: darkgreen !important; /* blu */
    opacity: 0.8;
}

/* Task icons styling */
.gantt_task_content {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.gantt_task_content i {
    font-size: 14px;
    animation: fadeIn 0.3s ease;
    flex-shrink: 0;
}

.gantt_task_content span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Scrolling animation for long text */
.gantt_task_line:hover .gantt_task_content {
    overflow: visible;
}

.gantt_task_line:hover .gantt_task_content span {
    display: inline-block;
    animation: scrollText 10s linear infinite;
    animation-delay: 0.5s;
    white-space: nowrap;
}

@keyframes scrollText {
    0%, 10% { 
        transform: translateX(0); 
    }
    45%, 55% { 
        transform: translateX(calc(-100% + 150px)); 
    }
    90%, 100% { 
        transform: translateX(0); 
    }
}

/* Style Gantt tooltip */
.gantt_tooltip {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    max-width: 300px !important;
}

.gantt_tooltip b {
    color: #3b82f6 !important;
    font-size: 14px !important;
    display: block;
    margin-bottom: 8px !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.ip-production-details {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dark-mode .ip-production-details {
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    align-items: center;
    margin-bottom: 12px;
}

.ip-prod-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.dark-mode .ip-prod-title {
    color: #f1f5f9;
}

.ip-prod-subtitle {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.dark-mode .ip-prod-subtitle {
    color: #94a3b8;
}

.ip-prod-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ip-prod-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.dark-mode .ip-prod-info {
    background: linear-gradient(135deg, #334155 0%, #2d3748 100%);
    border-color: rgba(71, 85, 105, 0.8);
}

.ip-prod-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.ip-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dark-mode .ip-label {
    color: #94a3b8;
}

.ip-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.dark-mode .ip-value {
    color: #f1f5f9;
}

.ip-prod-notes {
    margin-bottom: 16px;
}

.ip-note-block {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: #1e293b;
}

.dark-mode .ip-note-block {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #f1f5f9;
}

.ip-note-block strong {
    color: #1e293b;
    font-weight: 600;
}

.dark-mode .ip-note-block strong {
    color: #e2e8f0;
}

.ip-note-block:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.ip-prod-consumption h4,
.ip-prod-buyer h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #334155;
}

.dark-mode .ip-prod-consumption h4,
.dark-mode .ip-prod-buyer h4 {
    color: #e2e8f0;
}

.ip-prod-productions {
    margin-top: 20px;
}

.ip-production-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.ip-production-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.ip-prod-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ip-prod-card-title {
    font-weight: 600;
    color: #1e293b;
}

.ip-prod-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
}

    .ip-prod-status.completed {
        background: #dcfce7;
        color: #166534;
    }

    .ip-prod-status.suspended {
        background: #fef9c3;
        color: #92400e;
    }

    .ip-prod-status:not(.completed):not(.suspended) {
        background: #dbeafe;
        color: #1e3a8a;
    }

.ip-prod-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.ip-prod-info .ip-label {
    font-size: 11px;
    color: #64748b;
    display: block;
}

.ip-prod-info .ip-value {
    font-size: 13px;
    font-weight: 500;
}

.ip-theme-toggle {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .ip-theme-toggle .glyphicon-sun {
        color: #f59e0b; /* giallo sole */
    }

    .ip-theme-toggle .glyphicon-moon {
        color: #3b82f6; /* blu luna */
    }

    .ip-theme-toggle:hover {
        background: #e5e7eb; /* grigio hover */
    }

/* Empty Selection State */
.ip-empty-selection {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-radius: 12px;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.ip-empty-selection::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ip-empty-selection-content {
    position: relative;
    z-index: 1;
}

.ip-empty-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), inset 0 2px 4px rgba(255,255,255,0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.ip-empty-icon-wrapper i {
    font-size: 48px;
    color: white;
}

.ip-empty-title {
    font-size: 28px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ip-empty-description {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.ip-empty-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ip-empty-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ip-empty-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.ip-empty-stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ip-empty-stat-icon i {
    font-size: 28px;
    color: #3b82f6;
}

.ip-empty-stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.ip-empty-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1;
    margin-bottom: 4px;
}

.ip-empty-stat-label {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Close Detail Button */
.ip-close-detail-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.ip-close-detail-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}



/* Chart Container */
.ip-chart-container {
    height: 350px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Production Details Header Enhancement */
.ip-prod-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}

/* Improved h4 styling */
.ip-production-details h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark-mode .ip-production-details h4 {
    color: #f1f5f9;
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

.ip-production-details h4 i {
    color: #3b82f6;
}

/* Responsive adjustments for empty state */
@media (max-width: 768px) {
    .ip-empty-selection {
        padding: 40px 24px;
    }
    
    .ip-empty-title {
        font-size: 24px;
    }
    
    .ip-empty-description {
        font-size: 14px;
    }
    
    .ip-empty-stats {
        grid-template-columns: 1fr;
    }
    
    .ip-empty-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .ip-empty-icon-wrapper i {
        font-size: 36px;
    }
}
