/* Help & Support Panel Styles */

/* Help Icon - Inline button */
.help-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-left: 10px;
}

.help-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.help-icon i {
    font-size: 18px;
    color: white;
}

/* Panel Backdrop */
.help-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.help-panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-in Panel */
.help-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.help-panel.active {
    right: 0;
}

/* Panel Header */
.help-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.help-panel-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.help-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.help-panel-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    padding-right: 40px;
}

.help-panel-subtitle {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

/* Panel Body */
.help-panel-body {
    padding: 24px;
}

/* Form Elements */
.help-form-group {
    margin-bottom: 20px;
}

.help-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.help-form-select,
.help-form-textarea,
.help-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.help-form-select:focus,
.help-form-textarea:focus,
.help-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.help-form-file-wrapper {
    position: relative;
}

.help-form-file {
    display: none;
}

.help-form-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9f9f9;
}

.help-form-file-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.help-form-file-label i {
    margin-right: 8px;
    color: #667eea;
}

.help-file-name {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* Pre-filled Info */
.help-form-info {
    background: #f0f4ff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
}

/* Form Actions */
.help-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.help-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.help-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.help-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.help-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.help-btn-cancel:hover {
    background: #e0e0e0;
}

/* Loading State */
.help-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.help-loading.active {
    display: block;
}

.help-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.help-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
}

.help-message.active {
    display: block;
}

.help-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.help-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .help-panel {
        width: 100%;
    }
    
    .help-icon {
        top: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .help-icon i {
        font-size: 20px;
    }
    
    .help-icon::after {
        display: none;
    }
    
    .help-panel-body {
        padding: 20px;
    }
}
