/* Plot Editor Plugin Styles */

/* Auto-save indicator styles */
#plot-autosave-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#plot-autosave-indicator.show {
    opacity: 1;
}

.autosave-icon {
    font-size: 14px;
}

.autosave-text {
    font-weight: 500;
}

/* Modal Styles */
.plot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.plot-modal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    min-width: 300px;
    max-height: 80vh;
    overflow-y: auto;
}

.plot-modal-title {
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
    font-size: 18px;
    font-family: Arial, sans-serif;
}

.plot-modal-info {
    margin: 0 0 20px 0;
    color: #666;
    text-align: center;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.plot-modal-section {
    margin: 15px 0;
}

.plot-modal-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.plot-modal-button:hover:not(:disabled) {
    opacity: 0.8;
    transform: translateY(-1px);
}

.plot-modal-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Indicator */
.plot-loading-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Success Indicator */
.plot-success-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    z-index: 10001;
}

/* Edit Mode Indicator */
.plot-edit-indicator {
    position: fixed;
    top: 120px;
    right: 20px;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    z-index: 10001;
}

/* Mode Indicators */
.plot-mode-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 150, 243, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    z-index: 10001;
    text-align: center;
}

/* File Color Legend */
.plot-file-legend {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px;
    margin: 10px 0;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

.plot-file-legend-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
    color: #495057;
}

.plot-file-legend-item {
    display: flex;
    align-items: center;
    margin: 3px 0;
    padding: 2px 0;
}

.plot-file-color-box {
    width: 14px;
    height: 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.plot-file-name {
    font-family: monospace;
    font-size: 11px;
    color: #495057;
}

/* Color Preview in Settings */
.plot-color-preview {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin-left: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.plot-color-preview:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}