/* MAYA Push Pin System Styles */

.maya-push-pins {
    background: #FFFFFF; /* Clean white background */
    border: 2px solid #667eea; /* Purple border to match theme */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #2c3e50; /* Professional dark text */
}

.maya-push-pins.minimized {
    height: 60px;
    overflow: hidden;
}

.maya-push-pins.minimized .push-pin-list,
.maya-push-pins.minimized .push-pin-controls {
    display: none;
}

/* Header */
.push-pin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Professional purple gradient */
    color: #FFFFFF; /* White text */
    padding: 16px 20px; /* Increased padding */
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 600; /* Bold text */
}

.maya-icon {
    font-size: 18px;
}

.maya-title {
    font-weight: 600;
    flex: 1;
}

.pin-settings-btn,
.pin-minimize-btn {
    background: rgba(255, 255, 255, 0.2); /* Light background */
    color: #FFFFFF; /* White text */
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pin-settings-btn:hover,
.pin-minimize-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Pin List */
.push-pin-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #e1e5e9 transparent;
}

.push-pin-list::-webkit-scrollbar {
    width: 6px;
}

.push-pin-list::-webkit-scrollbar-track {
    background: transparent;
}

.push-pin-list::-webkit-scrollbar-thumb {
    background: #e1e5e9;
    border-radius: 3px;
}

/* Individual Push Pins */
.push-pin {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.push-pin:last-child {
    margin-bottom: 0;
}

.push-pin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pin Types */
.push-pin.pin-compliance {
    border-left: 4px solid #dc3545;
}

.push-pin.pin-style {
    border-left: 4px solid #ffc107;
}

.push-pin.pin-suggestion {
    border-left: 4px solid #28a745;
}

/* Pin Severity */
.push-pin.pin-high {
    background: #ffeaea;
    border-color: #dc3545;
}

.push-pin.pin-medium {
    background: #fff8e1;
    border-color: #ffc107;
}

.push-pin.pin-low {
    background: #e8f5e8;
    border-color: #28a745;
}

/* Pin Header */
.pin-header {
    display: flex;
    align-items: center;
    padding: 10px 12px 6px;
    gap: 8px;
}

.pin-icon {
    font-size: 16px;
}

.pin-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    flex: 1;
}

.pin-severity {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.severity-high {
    background: #dc3545;
}

.severity-medium {
    background: #ffc107;
}

.severity-low {
    background: #28a745;
}

.pin-close {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pin-close:hover {
    background: #e9ecef;
    color: #495057;
}

/* Pin Content */
.pin-content {
    padding: 0 12px 8px;
}

.pin-title {
    font-weight: 500;
    color: #212529;
    margin-bottom: 6px;
    line-height: 1.4;
}

.pin-suggestions {
    margin-bottom: 8px;
}

.pin-suggestion {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 1.3;
}

.pin-suggestion:last-child {
    margin-bottom: 0;
}

.pin-suggestion:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pin-confidence {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

/* Pin Actions */
.pin-actions {
    background: #f1f3f4;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    border-top: 1px solid #e9ecef;
}

.pin-actions button {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pin-apply {
    background: #28a745;
    color: white;
    border-color: #28a745;
    font-weight: 500;
}

.pin-apply:hover {
    background: #218838;
}

.pin-more:hover,
.pin-feedback:hover {
    background: #e9ecef;
}

/* Controls */
.push-pin-controls {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.maya-generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.maya-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.confidence-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confidence-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.confidence-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    transition: all 0.5s ease;
    border-radius: 3px;
}

.confidence-high {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.confidence-medium {
    background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}

.confidence-low {
    background: linear-gradient(90deg, #dc3545 0%, #e83e8c 100%);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.pin-slide-in {
    animation: slideIn 0.3s ease forwards;
}

.pin-slide-out {
    animation: slideOut 0.3s ease forwards;
}

/* Generation Dialog */
.maya-generation-dialog {
    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;
}

.dialog-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dialog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.dialog-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.dialog-body {
    padding: 20px;
}

.dialog-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.dialog-body textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
}

.generation-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.generation-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.dialog-actions {
    padding: 16px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: white;
    color: #6c757d;
    border: 1px solid #ced4da;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Messages */
.maya-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.maya-success {
    background: #d1edcc;
    color: #155724;
    border-left: 4px solid #28a745;
}

.maya-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .maya-push-pins {
        width: calc(100vw - 20px);
        position: fixed;
        bottom: 10px;
        left: 10px;
        right: auto;
        top: auto;
    }
    
    .dialog-content {
        width: 95%;
        margin: 0 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .maya-push-pins {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .push-pin {
        background: #4a5568;
        border-color: #718096;
    }
    
    .pin-suggestion {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .pin-suggestion:hover {
        background: #718096;
    }
    
    .push-pin-controls {
        background: #4a5568;
        border-color: #718096;
    }
    
    .dialog-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .dialog-body textarea {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}