/* Wizard Monitor Portlet Styles */

.wizard-monitor-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(52, 152, 219, 0.1);
    padding: 0;
    margin: 20px 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wizard-monitor-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.wizard-monitor-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-monitor-title .lexicon-icon {
    font-size: 28px;
}

.wizard-monitor-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wizard-monitor-info .badge {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-monitor-info .badge-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wizard-monitor-info .badge-success {
    background: rgba(46, 204, 113, 0.2);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.wizard-monitor-info .badge-warning {
    background: rgba(241, 196, 15, 0.2);
    color: white;
    border: 1px solid rgba(241, 196, 15, 0.4);
}

.wizard-monitor-body {
    padding: 30px;
    background: white;
}

/* Progress Container */
.progress-container {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.progress-bar-wrapper {
    position: relative;
}

.progress {
    height: 30px;
    background: #dee2e6;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    transition: width 0.1s linear;
    height: 100%;
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.progress-label {
    text-align: center;
    margin-top: 12px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

/* Status Log Container */
.status-log-container {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.status-log-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
}

.status-log-header > span {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-log-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.3s ease;
}

.clear-log-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-log-scroll {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

.status-log-scroll::-webkit-scrollbar {
    width: 8px;
}

.status-log-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.status-log-scroll::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
    opacity: 0.6;
}

.status-log-scroll::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
    opacity: 1;
}

/* Status Entries */
.status-entry {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.status-entry.new-entry {
    animation: slideIn 0.4s ease;
    background: #e3f2fd;
}

.status-entry.status-changed {
    border-left-color: #2ecc71;
    background: #e8f8f5;
}

.status-entry.status-unchanged {
    border-left-color: #95a5a6;
    background: #f8f9fa;
}

.status-entry.status-error {
    border-left-color: #e74c3c;
    background: #ffeaa7;
    color: #d63031;
}

.status-entry.initial-entry {
    border-left-color: #f39c12;
    background: #ffedc7;
    font-style: italic;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.status-timestamp {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    min-width: 80px;
}

.status-separator {
    color: #dee2e6;
    font-weight: 300;
}

.status-text {
    flex: 1;
    color: #212529;
    font-size: 14px;
}

.status-error .status-text {
    font-weight: 600;
}

/* Monitor Controls */
.monitor-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.monitor-controls .btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.monitor-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.monitor-controls .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.monitor-controls .btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.monitor-controls .btn-info {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: white;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-monitor-header {
        padding: 20px;
    }

    .wizard-monitor-title {
        font-size: 20px;
    }

    .wizard-monitor-body {
        padding: 20px;
    }

    .status-log-scroll {
        height: 200px;
    }

    .monitor-controls {
        flex-direction: column;
    }

    .monitor-controls .btn {
        width: 100%;
        justify-content: center;
    }

    .wizard-monitor-info {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Hover Effects */
.status-entry:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

/* Status Badge Animation */
.status-badge {
    animation: pulse 2s infinite;
}

/* Print Styles */
@media print {
    .wizard-monitor-container {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .monitor-controls,
    .clear-log-btn {
        display: none;
    }

    .status-log-scroll {
        height: auto;
        max-height: none;
    }
}